blob: de9ee252de36036f2631ccfdea6ec5522e9dfdbe [file] [log] [blame]
# For server side workload:
# * Allow GET requests at path with prefix "/public".
# * Deny any other requests by default.
apiVersion: security.istio.io/v1beta1
kind: AuthorizationPolicy
metadata:
name: policy-{{ .a }}-path
namespace: "{{ .Namespace }}"
spec:
selector:
matchLabels:
"app": "{{ .a }}"
rules:
- to:
- operation:
paths: ["/public*"]
methods: ["GET"]
---