Skip to content

Commit c41359c

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

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
@@ -350,7 +350,7 @@ func (s *Store) GetEnv() []corev1.EnvVar {
350350
},
351351
},
352352
},
353-
// When using https we need this for header trusting
353+
// deprecated since 6.7
354354
{
355355
Name: "TRUSTED_PROXIES",
356356
Value: "REMOTE_ADDR",
@@ -360,6 +360,10 @@ func (s *Store) GetEnv() []corev1.EnvVar {
360360
Name: "SYMFONY_TRUSTED_PROXIES",
361361
Value: "REMOTE_ADDR",
362362
},
363+
{
364+
Name: "SYMFONY_TRUSTED_HEADERS",
365+
Value: "['x-forwarded-for', 'x-forwarded-host', 'x-forwarded-proto', 'x-forwarded-port']",
366+
},
363367
// Some Shopware best practises
364368
{
365369
Name: "SHOPWARE_DBAL_TIMEZONE_SUPPORT_ENABLED",

0 commit comments

Comments
 (0)