Created
December 9, 2021 20:11
-
-
Save rafaeldalsenter/5d88551c6677b43f013e8a33228769d1 to your computer and use it in GitHub Desktop.
Keycloak and Istio authentication
This file contains hidden or 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
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