29 lines
637 B
YAML
29 lines
637 B
YAML
|
{{- if .Values.jaeger.istio.enabled }}
|
||
|
{{- if .Values.jaeger.istio.ipBlocks }}
|
||
|
apiVersion: security.istio.io/v1beta1
|
||
|
kind: AuthorizationPolicy
|
||
|
metadata:
|
||
|
name: jaeger-deny-not-in-ipblocks
|
||
|
namespace: istio-system
|
||
|
labels:
|
||
|
{{- include "kubezero-lib.labels" . | nindent 4 }}
|
||
|
spec:
|
||
|
selector:
|
||
|
matchLabels:
|
||
|
app: istio-ingressgateway
|
||
|
action: DENY
|
||
|
rules:
|
||
|
- from:
|
||
|
- source:
|
||
|
notIpBlocks:
|
||
|
{{- toYaml .Values.jaeger.istio.ipBlocks | nindent 8 }}
|
||
|
to:
|
||
|
- operation:
|
||
|
hosts: [{{ .Values.jaeger.istio.url }}]
|
||
|
when:
|
||
|
- key: connection.sni
|
||
|
values:
|
||
|
- '*'
|
||
|
{{- end }}
|
||
|
{{- end }}
|