Skip to content

Commit

Permalink
feat: add oauth2 proxy configuration to istio
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Fornaro <[email protected]>
  • Loading branch information
xunholy committed Apr 9, 2021
1 parent cf2eb28 commit b6a3ee3
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions k8s/core/base/applications/istio/istio-1.9.2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,21 @@ spec:
enabled: true
hub: docker.io/querycapistio
meshConfig:
extensionProviders:
- name: oauth2-proxy
envoyExtAuthzHttp:
service: oauth2-proxy.network.svc.cluster.local
port: 80
includeHeadersInCheck: ['authorization', 'cookie']
headersToUpstreamOnAllow:
[
'authorization',
'path',
'x-auth-request-user',
'x-auth-request-email',
'x-auth-request-access-token',
]
headersToDownstreamOnDeny: ['content-type', 'set-cookie']
accessLogFile: /dev/stdout
defaultConfig:
proxyMetadata: {}
Expand Down

0 comments on commit b6a3ee3

Please sign in to comment.