Created
August 19, 2020 10:29
-
-
Save chechuironman/1b89517405a5a8344fc73f95dea9b84a to your computer and use it in GitHub Desktop.
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
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