值为 <code>group1</code> 的声明：</p><pre><code class=language-bash data-expandlinks=false data-repo=istio>$ kubectl apply -f - &lt;&lt;EOF
apiVersion: security.istio.io/v1
kind: AuthorizationPolicy
metadata:
  name: require-jwt
  namespace: foo
spec:
  selector:
    matchLabels:
      app: httpbin
  action: ALLOW
  rules:
  - from:
    - source:
       requestPrincipals: [&#34;testing@secure.istio.io/testing@secure.istio.io&#34;]
    when:
    - key: request.auth.claims[groups]
      values: [&#34;gr