istio-authzpolicy.yaml 423 Bytes
Newer Older
Anuj Gupta's avatar
Anuj Gupta committed
1
2
3
4
5
apiVersion: security.istio.io/v1beta1
kind: AuthorizationPolicy
metadata:
  name: {{ .Values.conf.appName }}-authz-policy
spec:
Anuj Gupta's avatar
Anuj Gupta committed
6
7
8
  selector:
    matchLabels:
      {{- include "ibm-partition-deploy.selectorLabels" . | nindent 6 }}
Anuj Gupta's avatar
Anuj Gupta committed
9
10
11
12
13
14
15
16
17
18
19
  action: DENY
  rules:
  - from:
    - source:
        notRequestPrincipals:
        - '*'
    to:
    - operation:
        notPaths:
        - '*/v2/api-docs'
        - /api/partition/v1/info