Skip to content

Instantly share code, notes, and snippets.

@OlegGorj
Created September 24, 2019 19:55
Show Gist options
  • Save OlegGorj/45e35e98b701164c4d73ba08eaf96d60 to your computer and use it in GitHub Desktop.
Save OlegGorj/45e35e98b701164c4d73ba08eaf96d60 to your computer and use it in GitHub Desktop.
apiVersion: authentication.istio.io/v1alpha1
kind: Policy
metadata:
name: ingressgateway
namespace: istio-system
spec:
targets:
- name: istio-ingressgateway
peers:
- mtls: {}
origins:
- jwt:
audiences:
- "https://api.demo.com/"
issuer: "https://demo.auth0.com/"
jwksUri: "https://demo.auth0.com/.well-known/jwks.json"
principalBinding: USE_ORIGIN
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment