Skip to content

Instantly share code, notes, and snippets.

@cfryanr
Last active March 17, 2020 23:17
Show Gist options
  • Save cfryanr/559c63cdeb12c830616f466b5b57ead5 to your computer and use it in GitHub Desktop.
Save cfryanr/559c63cdeb12c830616f466b5b57ead5 to your computer and use it in GitHub Desktop.
Sketch of enhancing Istio authn policy to allow configuration of any ext_authz filter
apiVersion: "authentication.istio.io/v1alpha1"
kind: "Policy"
metadata:
name: "authcode-sample-app-authn-policy"
spec:
targets:
- name: authcode-sample-app
principalBinding: USE_ORIGIN
origins:
- jwt:
issuer: https://oidc-provider.yourcompany.com/oauth/token
jwksUri: https://oidc-provider.yourcompany.com/token_keys
# This is the new part, which would add an envoy ext_authz filter
authService:
address: 127.0.0.1
port_value: 10003
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment