Skip to content

Commit 22f8c13

Browse files
committed
feat: add trusted headers
We can cleanup a file in the k8s-meta package after this release
1 parent d30c0fb commit 22f8c13

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

api/v1/store_env.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,7 @@ func (s *Store) GetEnv() []corev1.EnvVar {
384384
},
385385
},
386386
},
387-
// When using https we need this for header trusting
387+
// deprecated since 6.7
388388
{
389389
Name: "TRUSTED_PROXIES",
390390
Value: "REMOTE_ADDR",
@@ -394,6 +394,10 @@ func (s *Store) GetEnv() []corev1.EnvVar {
394394
Name: "SYMFONY_TRUSTED_PROXIES",
395395
Value: "REMOTE_ADDR",
396396
},
397+
{
398+
Name: "SYMFONY_TRUSTED_HEADERS",
399+
Value: "['x-forwarded-for', 'x-forwarded-host', 'x-forwarded-proto', 'x-forwarded-port']",
400+
},
397401
// Some Shopware best practises
398402
{
399403
Name: "SHOPWARE_DBAL_TIMEZONE_SUPPORT_ENABLED",

0 commit comments

Comments
 (0)