Skip to content
This repository has been archived by the owner on Mar 27, 2023. It is now read-only.

Commit

Permalink
Added Authorization policy scoped to a port
Browse files Browse the repository at this point in the history
  • Loading branch information
Neeraj Poddar committed Sep 9, 2020
1 parent 0200964 commit 892c1b1
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions section_4/authorization-policy-audience-path-port-deny.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
apiVersion: "security.istio.io/v1beta1"
kind: "AuthorizationPolicy"
metadata:
name: online-boutique
namespace: istio-system
spec:
selector:
matchLabels:
istio: ingressgateway
action: DENY
rules:
- when:
- key: "request.auth.audiences"
notValues: ["boutiquestore.com"]
to:
- operation:
paths: ["/cart"]
ports: [ "443" ]
---

0 comments on commit 892c1b1

Please sign in to comment.