Skip to content

Instantly share code, notes, and snippets.

@rafaeldalsenter
Created December 9, 2021 20:11
Show Gist options
  • Save rafaeldalsenter/5d88551c6677b43f013e8a33228769d1 to your computer and use it in GitHub Desktop.
Save rafaeldalsenter/5d88551c6677b43f013e8a33228769d1 to your computer and use it in GitHub Desktop.
Keycloak and Istio authentication
apiVersion: security.istio.io/v1beta1
kind: RequestAuthentication
metadata:
name: auth
namespace: istio-system
spec:
selector:
matchLabels:
app: istio-ingressgateway
jwtRules:
- issuer: <link_issuer>
jwksUri: <link_jws>
---
apiVersion: security.istio.io/v1beta1
kind: AuthorizationPolicy
metadata:
name: policy-deny
namespace: istio-system
spec:
selector:
matchLabels:
app: istio-ingressgateway
action: ALLOW
rules:
- from:
- source:
principals: ["*"]
- source:
requestPrincipals: ["*"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment