Skip to content

Instantly share code, notes, and snippets.

@emedina
Created September 21, 2019 17:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save emedina/4dfc85e6a66f35378fe4b84810ea12f3 to your computer and use it in GitHub Desktop.
Save emedina/4dfc85e6a66f35378fe4b84810ea12f3 to your computer and use it in GitHub Desktop.
JWT Policy
apiVersion: authentication.istio.io/v1alpha1
kind: Policy
metadata:
name: jwt-example
namespace: foo
spec:
origins:
- jwt:
issuer: testing@secure.istio.io
jwksUri: https://raw.githubusercontent.com/istio/istio/release-1.3/security/tools/jwt/samples/jwks.json
peers:
- mtls: {}
principalBinding: USE_ORIGIN
targets:
- name: httpbin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment