Skip to content

Instantly share code, notes, and snippets.

@seifrajhi
Created January 24, 2024 06:38
Show Gist options
  • Save seifrajhi/4063c807e6c05817477037eac5684e50 to your computer and use it in GitHub Desktop.
Save seifrajhi/4063c807e6c05817477037eac5684e50 to your computer and use it in GitHub Desktop.
Istio authorization policy
apiVersion: security.istio.io/v1beta1
kind: AuthorizationPolicy
metadata:
name: oauth-policy
namespace: istio-system
spec:
selector:
matchLabels:
istio: ingressgateway
action: CUSTOM
provider:
name: "oauth2-proxy"
rules:
- to:
- operation:
hosts:
- <INTERNAL APPLICATION HOST>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment