Created
April 21, 2022 13:35
-
-
Save adamstrawson/1901d6475dec93a92eb2dbbe81494e83 to your computer and use it in GitHub Desktop.
Ory Oathkeeper
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
apiVersion: networking.istio.io/v1alpha3 | |
kind: EnvoyFilter | |
metadata: | |
name: oathkeeper | |
namespace: istio-ingress | |
spec: | |
workloadSelector: | |
labels: | |
istio: ingressgateway | |
configPatches: | |
- applyTo: HTTP_FILTER | |
match: | |
context: GATEWAY | |
listener: | |
filterChain: | |
filter: | |
name: envoy.filters.network.http_connection_manager | |
subFilter: | |
name: envoy.filters.http.router | |
patch: | |
operation: INSERT_BEFORE | |
value: | |
name: envoy.filters.http.ext_authz | |
typed_config: | |
'@type': type.googleapis.com/envoy.extensions.filters.http.ext_authz.v3.ExtAuthz | |
failure_mode_allow: false | |
http_service: | |
path_prefix: /decisions | |
server_uri: | |
uri: http://oathkeeper-api.auth.svc.cluster.local:4456 | |
cluster: outbound|4456||oathkeeper-api.auth.svc.cluster.local | |
timeout: 10s | |
authorization_request: | |
allowed_headers: | |
patterns: | |
- exact: accept | |
- exact: authorization | |
- exact: cookie | |
- exact: content-type | |
- exact: x-forwarded-for | |
- exact: x-forwarded-proto | |
- exact: x-forwarded-host | |
authorization_response: | |
allowed_upstream_headers: | |
patterns: | |
- exact: authorization |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment