Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save chechuironman/1b89517405a5a8344fc73f95dea9b84a to your computer and use it in GitHub Desktop.
Save chechuironman/1b89517405a5a8344fc73f95dea9b84a to your computer and use it in GitHub Desktop.
kind: Policy
apiVersion: authentication.istio.io/v1alpha1
metadata:
name: jwt-auth-apigw-policy
namespace: cloud-lab
spec:
targets:
- name: apigw
peers:
- mtls: {}
origins:
- jwt:
audiences:
- apigw-cloud-lab
issuer: chechu
jwksUri: >-
https://gist.githubusercontent.com/chechuironman/716dbfdbdf113899f924fe62229fa96/raw/f7a6dc317e65a99ac129cdb39038c3df0a7e/jwt.json
trigger_rules:
- excluded_paths:
- exact: /api/users/login
- exact: /api/users/register
principalBinding: USE_ORIGIN
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment