Created
March 17, 2020 23:16
-
-
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
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: "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