-
-
Notifications
You must be signed in to change notification settings - Fork 495
Update security.yaml: Simplifying regex (#2) #1395
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
ThomasLandauer
wants to merge
6
commits into
symfony:main
Choose a base branch
from
ThomasLandauer:simplifying-regex
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
c44f7bb
simplifying-regex
ThomasLandauer 7a5a211
fixing indentation
ThomasLandauer b930566
Update symfony/security-bundle/7.3/config/packages/security.yaml
ThomasLandauer d068087
Update security.yaml
ThomasLandauer ea75df8
Update security.yaml
ThomasLandauer b0e209e
Update security.yaml
ThomasLandauer File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
security: | ||
# https://symfony.com/doc/current/security.html#registering-the-user-hashing-passwords | ||
password_hashers: | ||
Symfony\Component\Security\Core\User\PasswordAuthenticatedUserInterface: 'auto' | ||
|
||
# https://symfony.com/doc/current/security.html#loading-the-user-the-user-provider | ||
providers: | ||
users_in_memory: { memory: null } | ||
|
||
firewalls: | ||
# Disable security for dev tools and static assets (only needed if access_control is broad): | ||
dev: | ||
# 'assets/' is for AssetMapper, 'build/' for Webpack Encore. | ||
# (Note: no regex delimiters needed; Symfony adds `{}` automatically.) | ||
pattern: ^/(_profiler|_wdt|assets|build)/ | ||
security: false | ||
main: | ||
lazy: true | ||
provider: users_in_memory | ||
|
||
# Activate different ways to authenticate: | ||
# https://symfony.com/doc/current/security.html#the-firewall | ||
|
||
# https://symfony.com/doc/current/security/impersonating_user.html | ||
# switch_user: true | ||
|
||
# Controls access to different sections of the application. | ||
# Only the *first* matching rule is applied. | ||
access_control: | ||
# - { path: ^/admin, roles: ROLE_ADMIN } | ||
# - { path: ^/profile, roles: ROLE_USER } | ||
|
||
when@test: | ||
security: | ||
password_hashers: | ||
# Password hashers are resource-intensive by design to ensure security. | ||
# In tests, it's safe to reduce their cost to improve performance. | ||
Symfony\Component\Security\Core\User\PasswordAuthenticatedUserInterface: | ||
algorithm: auto | ||
cost: 4 # Lowest possible value for bcrypt | ||
time_cost: 3 # Lowest possible value for argon | ||
memory_cost: 10 # Lowest possible value for argon |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
_security_logout: | ||
resource: security.route_loader.logout | ||
type: service |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"bundles": { | ||
"Symfony\\Bundle\\SecurityBundle\\SecurityBundle": ["all"] | ||
}, | ||
"copy-from-recipe": { | ||
"config/": "%CONFIG_DIR%/" | ||
}, | ||
"aliases": ["security"], | ||
"conflict": { | ||
"symfony/framework-bundle": "<5.3" | ||
} | ||
} |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.