Skip to content

Instantly share code, notes, and snippets.

@fai555
Created May 3, 2020 10:11
Show Gist options
  • Select an option

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

Select an option

Save fai555/578d86d00899e6695649273ac9789dc5 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: "ISSUER"
jwks: |
{ "keys":[{"e":"AQAB","kty":"RSA","n":"3LlzeRY6gbIVwGO7AxO1bN3-CgWwIpWOT8m485AzkOdhxgCWc2F-3OqAigDyyDMqXtH1ovCaZnEIf3ZkJin7Y_zC48TNQwlKnuM29CrTjnYR1c_w30ZT4PNIisEwLKuEX5uRHuIrKYBxwwVf4eqoFmtpZbrmwDPCA1ZMFox0v40q1m_SecCB286alE42Ohb6j0ZuntjO5rg2ZyQt3EmxEDPE2Iuh737gYhXLuFhTiYH5S_kFokX1Yv0RdUyiGcmaxXgGaF3iglnsOHv9209uwlzrcDAouOD7PYbLjCoqpWydVLyxcJGqjF5i7CK36q_SVmpGHbIsdOlZQLWNA97AgQ"}]}
EOF
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment