Skip to content

Instantly share code, notes, and snippets.

@StevenReitsma
Created January 19, 2021 15:28
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 StevenReitsma/2f672c110425bd1b1bb65f48d1c2fa1c to your computer and use it in GitHub Desktop.
Save StevenReitsma/2f672c110425bd1b1bb65f48d1c2fa1c to your computer and use it in GitHub Desktop.
kind: AuthorizationPolicy
apiVersion: security.istio.io/v1beta1
metadata:
name: allow-to-example-model
namespace: example-model
spec:
action: ALLOW
rules:
- when:
- key: "request.auth.claims[email]"
values:
- person_a@company.com
- person_b@company.com
- service_account_a@company.com
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment