 class=language-bash data-expandlinks=true data-repo=istio>$ kubectl apply -f - &lt;&lt;EOF
apiVersion: security.istio.io/v1
kind: AuthorizationPolicy
metadata:
  name: allow-path-ip
  namespace: foo
spec:
  selector:
    matchLabels:
      app: httpbin
  action: ALLOW
  rules:
  - to:
    - operation:
        paths: [&#34;/ip&#34;]
EOF</code></pre></li><li><p>Verify that <code>GET</code> requests with the HTTP header <code>x-token: guest</code> at path <code>/ip</code> are denied
by the <code>deny-method-g