Change pathtype to prefix
Due to cve-2022-4886 the default pathType for an ingress should be either "Exact" or "Prefix". This allows for more strict path validation by the admission controller. Change-Id: I1089bd5c893685fe3b2bcd6868da2f2b761e144f
This commit is contained in:
parent
962db46114
commit
906f9a5f15
@ -28,28 +28,28 @@ spec:
|
|||||||
paths:
|
paths:
|
||||||
{{- if .Values.conf.maas.ingress_disable_gui }}
|
{{- if .Values.conf.maas.ingress_disable_gui }}
|
||||||
- path: /MAAS/api
|
- path: /MAAS/api
|
||||||
pathType: ImplementationSpecific
|
pathType: Prefix
|
||||||
backend:
|
backend:
|
||||||
service:
|
service:
|
||||||
name: {{ tuple "maas_region" "internal" . | include "helm-toolkit.endpoints.hostname_short_endpoint_lookup" }}
|
name: {{ tuple "maas_region" "internal" . | include "helm-toolkit.endpoints.hostname_short_endpoint_lookup" }}
|
||||||
port:
|
port:
|
||||||
name: region-api
|
name: region-api
|
||||||
- path: /MAAS/images-stream
|
- path: /MAAS/images-stream
|
||||||
pathType: ImplementationSpecific
|
pathType: Prefix
|
||||||
backend:
|
backend:
|
||||||
service:
|
service:
|
||||||
name: {{ tuple "maas_region" "internal" . | include "helm-toolkit.endpoints.hostname_short_endpoint_lookup" }}
|
name: {{ tuple "maas_region" "internal" . | include "helm-toolkit.endpoints.hostname_short_endpoint_lookup" }}
|
||||||
port:
|
port:
|
||||||
name: region-api
|
name: region-api
|
||||||
- path: /MAAS/metadata
|
- path: /MAAS/metadata
|
||||||
pathType: ImplementationSpecific
|
pathType: Prefix
|
||||||
backend:
|
backend:
|
||||||
service:
|
service:
|
||||||
name: {{ tuple "maas_region" "internal" . | include "helm-toolkit.endpoints.hostname_short_endpoint_lookup" }}
|
name: {{ tuple "maas_region" "internal" . | include "helm-toolkit.endpoints.hostname_short_endpoint_lookup" }}
|
||||||
port:
|
port:
|
||||||
name: region-api
|
name: region-api
|
||||||
- path: /MAAS/rpc
|
- path: /MAAS/rpc
|
||||||
pathType: ImplementationSpecific
|
pathType: Prefix
|
||||||
backend:
|
backend:
|
||||||
service:
|
service:
|
||||||
name: {{ tuple "maas_region" "internal" . | include "helm-toolkit.endpoints.hostname_short_endpoint_lookup" }}
|
name: {{ tuple "maas_region" "internal" . | include "helm-toolkit.endpoints.hostname_short_endpoint_lookup" }}
|
||||||
@ -57,7 +57,7 @@ spec:
|
|||||||
name: region-api
|
name: region-api
|
||||||
{{- else }}
|
{{- else }}
|
||||||
- path: /
|
- path: /
|
||||||
pathType: ImplementationSpecific
|
pathType: Prefix
|
||||||
backend:
|
backend:
|
||||||
service:
|
service:
|
||||||
name: {{ tuple "maas_region" "internal" . | include "helm-toolkit.endpoints.hostname_short_endpoint_lookup" }}
|
name: {{ tuple "maas_region" "internal" . | include "helm-toolkit.endpoints.hostname_short_endpoint_lookup" }}
|
||||||
|
Loading…
Reference in New Issue
Block a user