istio.io/istio@v0.0.0-20240520182934-d79c90f27776/tests/integration/security/testdata/requestauthn/authn-authz.yaml.tmpl (about)

     1  apiVersion: security.istio.io/v1beta1
     2  kind: RequestAuthentication
     3  metadata:
     4    name: {{ .To.ServiceName }}
     5  spec:
     6    selector:
     7      matchLabels:
     8        app: {{ .To.ServiceName }}
     9    jwtRules:
    10    - issuer: "test-issuer-1@istio.io"
    11      jwksUri: "https://raw.githubusercontent.com/istio/istio/master/tests/common/jwt/jwks.json"
    12  ---
    13  # The following policy enables authorization on workload dst.
    14  apiVersion: security.istio.io/v1beta1
    15  kind: AuthorizationPolicy
    16  metadata:
    17    name: {{ .To.ServiceName }}
    18  spec:
    19    selector:
    20      matchLabels:
    21        app: {{ .To.ServiceName }}
    22    rules:
    23    - to:
    24      - operation:
    25          methods: ["GET"]
    26      from:
    27      - source:
    28          requestPrincipals: ["test-issuer-1@istio.io/sub-1"]