blob: 8db6a66ebdeab3e14f8153d7b289bffec67aa864 [file] [log] [blame]
apiVersion: security.istio.io/v1beta1
kind: AuthorizationPolicy
metadata:
name: httpbin-deny
namespace: foo
spec:
action: ALLOW
rules:
- from:
- source:
requestPrincipals: ["id-1"]
to:
- operation:
methods: ["GET"]
- from:
- source:
namespaces: ["ns-1"]
to:
- operation:
ports: ["80"]