Skip to content

Commit 7f678ce

Browse files
pushpinderbalcodex
andcommitted
fix(docs): simplify Istio auth headers
Co-Authored-By: Codex <codex@users.noreply.github.com>
1 parent 4f53c3c commit 7f678ce

1 file changed

Lines changed: 2 additions & 16 deletions

File tree

‎src/content/docs/docs/community/kubernetes.mdx‎

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -79,14 +79,7 @@ extensionProviders:
7979
service: "tinyauth.tinyauth.svc.cluster.local"
8080
port: "3000"
8181
pathPrefix: "/api/auth/envoy?path="
82-
includeRequestHeadersInCheck: ["cookie", "x-forwarded-for", "x-forwarded-proto", "x-forwarded-host", "accept", "user-agent"]
83-
includeAdditionalHeadersInCheck:
84-
"x-forwarded-for": "%DOWNSTREAM_REMOTE_ADDRESS_WITHOUT_PORT%"
85-
"x-real-ip": "%DOWNSTREAM_REMOTE_ADDRESS_WITHOUT_PORT%"
86-
"x-forwarded-proto": "%REQ(:SCHEME)%"
87-
"x-forwarded-host": "%REQ(:AUTHORITY)%"
88-
"x-forwarded-uri": "%REQ(:PATH)%"
89-
"x-forwarded-method": "%REQ(:METHOD)%"
82+
includeRequestHeadersInCheck: ["cookie", "x-forwarded-for", "x-forwarded-proto", "user-agent"]
9083
headersToDownstreamOnAllow: ["set-cookie"]
9184
headersToDownstreamOnDeny: ["content-type", "set-cookie"]
9285
```
@@ -111,14 +104,7 @@ meshConfig:
111104
service: "tinyauth.tinyauth.svc.cluster.local"
112105
port: "3000"
113106
pathPrefix: "/api/auth/envoy?path="
114-
includeRequestHeadersInCheck: ["cookie", "x-forwarded-for", "x-forwarded-proto", "x-forwarded-host", "accept", "user-agent"]
115-
includeAdditionalHeadersInCheck:
116-
"x-forwarded-for": "%DOWNSTREAM_REMOTE_ADDRESS_WITHOUT_PORT%"
117-
"x-real-ip": "%DOWNSTREAM_REMOTE_ADDRESS_WITHOUT_PORT%"
118-
"x-forwarded-proto": "%REQ(:SCHEME)%"
119-
"x-forwarded-host": "%REQ(:AUTHORITY)%"
120-
"x-forwarded-uri": "%REQ(:PATH)%"
121-
"x-forwarded-method": "%REQ(:METHOD)%"
107+
includeRequestHeadersInCheck: ["cookie", "x-forwarded-for", "x-forwarded-proto", "user-agent"]
122108
headersToDownstreamOnAllow: ["set-cookie"]
123109
headersToDownstreamOnDeny: ["content-type", "set-cookie"]
124110
```

0 commit comments

Comments
 (0)