istio.io/istio@v0.0.0-20240520182934-d79c90f27776/pilot/pkg/security/authz/builder/testdata/http/simple-policy-td-aliases-in.yaml (about) 1 apiVersion: security.istio.io/v1beta1 2 kind: AuthorizationPolicy 3 metadata: 4 name: httpbin 5 namespace: foo 6 spec: 7 selector: 8 matchLabels: 9 app: httpbin 10 version: v1 11 rules: 12 - from: 13 - source: 14 principals: ["cluster.local/ns/rule[0]/sa/from[0]-principal[0]"] 15 - source: 16 principals: ["cluster.local/ns/rule[0]/sa/from[1]-principal[0]", "cluster.local/ns/rule[0]/sa/from[1]-principal[1]"] 17 namespaces: ["rule[0]-from[1]-ns[0]"] 18 to: 19 - operation: 20 methods: ["rule[0]-to[0]-method[0]"] 21 - from: 22 - source: 23 principals: ["cluster.local/ns/rule[1]/sa/from[0]-principal[0]"] 24 to: 25 - operation: 26 methods: ["rule[1]-to[0]-method[0]"]