Skip to content

Instantly share code, notes, and snippets.

@fai555
Created May 9, 2020 19:39
Show Gist options
  • Select an option

  • Save fai555/af346e807134fc748e5f77a2d2b1a803 to your computer and use it in GitHub Desktop.

Select an option

Save fai555/af346e807134fc748e5f77a2d2b1a803 to your computer and use it in GitHub Desktop.
kubectl apply -f - <<EOF
apiVersion: "security.istio.io/v1beta1"
kind: "RequestAuthentication"
metadata:
name: "jwt-example"
namespace: istio-system
spec:
selector:
matchLabels:
istio: ingressgateway
jwtRules:
- issuer: "testing@secure.istio.io"
jwksUri: "https://raw.githubusercontent.com/istio/istio/release-1.5/security/tools/jwt/samples/jwks.json"
EOF
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment