istio.io/istio@v0.0.0-20240520182934-d79c90f27776/pilot/pkg/security/authz/builder/testdata/tcp/allow-only-http-in.yaml (about)

     1  apiVersion: security.istio.io/v1beta1
     2  kind: AuthorizationPolicy
     3  metadata:
     4    name: httpbin-deny
     5    namespace: foo
     6  spec:
     7    action: ALLOW
     8    rules:
     9    - from:
    10      - source:
    11          requestPrincipals: ["id-1"]
    12      to:
    13      - operation:
    14          methods: ["GET"]
    15    - from:
    16      - source:
    17          namespaces: ["ns-1"]
    18      to:
    19      - operation:
    20          hosts: ["example.com"]