Skip to content

Instantly share code, notes, and snippets.

@cfryanr
Created March 17, 2020 23:16
Show Gist options
  • Save cfryanr/cdf66dc564fc2a975b68c6f1a1d5be5f to your computer and use it in GitHub Desktop.
Save cfryanr/cdf66dc564fc2a975b68c6f1a1d5be5f to your computer and use it in GitHub Desktop.
Sketch of enhancing Istio authn policy to allow configuration of the istio-ecosystem/authservice
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: configure the settings of the istio-ecosystem/authservice
# container(s) which will be deployed and configured by pilot
authService:
oidcProvider: https://oidc-provider.yourcompany.com/.well-known/openid-configuration
oauthClient:
secretName: istio.authServiceClientSecret
scopes:
- productpage.read
- reviews.read
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment