-
Notifications
You must be signed in to change notification settings - Fork 3
feat: add trusted headers #137
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -384,7 +384,7 @@ func (s *Store) GetEnv() []corev1.EnvVar { | |
| }, | ||
| }, | ||
| }, | ||
| // When using https we need this for header trusting | ||
| // deprecated since 6.7 | ||
| { | ||
| Name: "TRUSTED_PROXIES", | ||
| Value: "REMOTE_ADDR", | ||
|
|
@@ -394,6 +394,10 @@ func (s *Store) GetEnv() []corev1.EnvVar { | |
| Name: "SYMFONY_TRUSTED_PROXIES", | ||
| Value: "REMOTE_ADDR", | ||
| }, | ||
| { | ||
| Name: "SYMFONY_TRUSTED_HEADERS", | ||
| Value: "['x-forwarded-for', 'x-forwarded-host', 'x-forwarded-proto', 'x-forwarded-port']", | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. we should test this before (I could imagine that they are just comma seperated) and allow also allow overwriting it by the user
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I didn't found any documentation about this tbh, so I will test this later with my branch. Also add the possibility to change this. |
||
| }, | ||
| // Some Shopware best practises | ||
| { | ||
| Name: "SHOPWARE_DBAL_TIMEZONE_SUPPORT_ENABLED", | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.