istio: allow to change tls cipher suites and headers
Signed-off-by: Pascal Sthamer <10992664+P4sca1@users.noreply.github.com>
This commit is contained in:
@@ -539,8 +539,11 @@ SHUFFLE_ENCRYPTION_MODIFIER: "MyShuffleEncryptionModifier"
|
|||||||
| `istio.gateway.http.httpsRedirect` | If set to true, a 301 redirect is send for all HTTP connections | `false` |
|
| `istio.gateway.http.httpsRedirect` | If set to true, a 301 redirect is send for all HTTP connections | `false` |
|
||||||
| `istio.gateway.https.enabled` | Enable HTTPS server on port 443 | `false` |
|
| `istio.gateway.https.enabled` | Enable HTTPS server on port 443 | `false` |
|
||||||
| `istio.gateway.https.tlsCredentialName` | The name of the secret that holds the TLS certs including the CA certificates. | `""` |
|
| `istio.gateway.https.tlsCredentialName` | The name of the secret that holds the TLS certs including the CA certificates. | `""` |
|
||||||
|
| `istio.gateway.https.tlsCipherSuites` | If specified, only support the specified cipher list. | `[]` |
|
||||||
| `istio.gateway.extraServers` | Additional servers for the Gateway resource | `[]` |
|
| `istio.gateway.extraServers` | Additional servers for the Gateway resource | `[]` |
|
||||||
| `istio.virtualService.annotations` | Additional annotations for the VirtualService resource. | `{}` |
|
| `istio.virtualService.annotations` | Additional annotations for the VirtualService resource. | `{}` |
|
||||||
|
| `istio.virtualService.backendHeaders` | Header manipulation rules for backend traffic | `{}` |
|
||||||
|
| `istio.virtualService.frontendHeaders` | Header manipulation rules for frontend traffic | `{}` |
|
||||||
|
|
||||||
### Persistence Parameters
|
### Persistence Parameters
|
||||||
|
|
||||||
@@ -596,3 +599,5 @@ SHUFFLE_ENCRYPTION_MODIFIER: "MyShuffleEncryptionModifier"
|
|||||||
| `vault.secrets` | A list of VaultSecrets to create | `[]` |
|
| `vault.secrets` | A list of VaultSecrets to create | `[]` |
|
||||||
|
|
||||||
### Other Parameters
|
### Other Parameters
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -32,6 +32,9 @@ spec:
|
|||||||
tls:
|
tls:
|
||||||
credentialName: {{ .Values.istio.gateway.https.tlsCredentialName }}
|
credentialName: {{ .Values.istio.gateway.https.tlsCredentialName }}
|
||||||
mode: SIMPLE
|
mode: SIMPLE
|
||||||
|
{{- with .Values.istio.gateway.https.tlsCipherSuites }}
|
||||||
|
cipherSuites: {{- include "common.tplvalues.render" ( dict "value" . "context" $ ) | nindent 10 }}
|
||||||
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if .Values.istio.gateway.extraServers }}
|
{{- if .Values.istio.gateway.extraServers }}
|
||||||
{{- include "common.tplvalues.render" (dict "value" .Values.istio.gateway.extraServers "context" $) | nindent 4 }}
|
{{- include "common.tplvalues.render" (dict "value" .Values.istio.gateway.extraServers "context" $) | nindent 4 }}
|
||||||
|
|||||||
@@ -14,7 +14,8 @@ spec:
|
|||||||
gateways:
|
gateways:
|
||||||
- {{ include "common.names.fullname" . }}
|
- {{ include "common.names.fullname" . }}
|
||||||
http:
|
http:
|
||||||
- match:
|
- name: backend
|
||||||
|
match:
|
||||||
- uri:
|
- uri:
|
||||||
prefix: /api
|
prefix: /api
|
||||||
route:
|
route:
|
||||||
@@ -22,9 +23,16 @@ spec:
|
|||||||
host: {{ include "shuffle.backend.name" . }}
|
host: {{ include "shuffle.backend.name" . }}
|
||||||
port:
|
port:
|
||||||
number: {{ .Values.backend.containerPorts.http }}
|
number: {{ .Values.backend.containerPorts.http }}
|
||||||
- route:
|
{{- with .Values.istio.virtualService.backendHeaders }}
|
||||||
|
headers: {{- include "common.tplvalues.render" ( dict "value" . "context" $ ) | nindent 8 }}
|
||||||
|
{{- end }}
|
||||||
|
- name: frontend
|
||||||
|
route:
|
||||||
- destination:
|
- destination:
|
||||||
host: {{ include "shuffle.frontend.name" . }}
|
host: {{ include "shuffle.frontend.name" . }}
|
||||||
port:
|
port:
|
||||||
number: {{ .Values.frontend.containerPorts.http }}
|
number: {{ .Values.frontend.containerPorts.http }}
|
||||||
|
{{- with .Values.istio.virtualService.frontendHeaders }}
|
||||||
|
headers: {{- include "common.tplvalues.render" ( dict "value" . "context" $ ) | nindent 8 }}
|
||||||
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|||||||
@@ -2366,6 +2366,12 @@
|
|||||||
"type": "string",
|
"type": "string",
|
||||||
"description": "The name of the secret that holds the TLS certs including the CA certificates.",
|
"description": "The name of the secret that holds the TLS certs including the CA certificates.",
|
||||||
"default": ""
|
"default": ""
|
||||||
|
},
|
||||||
|
"tlsCipherSuites": {
|
||||||
|
"type": "array",
|
||||||
|
"description": "If specified, only support the specified cipher list.",
|
||||||
|
"default": [],
|
||||||
|
"items": {}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -2384,6 +2390,16 @@
|
|||||||
"type": "object",
|
"type": "object",
|
||||||
"description": "Additional annotations for the VirtualService resource.",
|
"description": "Additional annotations for the VirtualService resource.",
|
||||||
"default": {}
|
"default": {}
|
||||||
|
},
|
||||||
|
"backendHeaders": {
|
||||||
|
"type": "object",
|
||||||
|
"description": "Header manipulation rules for backend traffic",
|
||||||
|
"default": {}
|
||||||
|
},
|
||||||
|
"frontendHeaders": {
|
||||||
|
"type": "object",
|
||||||
|
"description": "Header manipulation rules for frontend traffic",
|
||||||
|
"default": {}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1632,18 +1632,30 @@ istio:
|
|||||||
httpsRedirect: false
|
httpsRedirect: false
|
||||||
## @param istio.gateway.https.enabled Enable HTTPS server on port 443
|
## @param istio.gateway.https.enabled Enable HTTPS server on port 443
|
||||||
## @param istio.gateway.https.tlsCredentialName The name of the secret that holds the TLS certs including the CA certificates.
|
## @param istio.gateway.https.tlsCredentialName The name of the secret that holds the TLS certs including the CA certificates.
|
||||||
|
## @param istio.gateway.https.tlsCipherSuites If specified, only support the specified cipher list.
|
||||||
## NOTE: The secret must exist in the namespace of the istio gateway pod
|
## NOTE: The secret must exist in the namespace of the istio gateway pod
|
||||||
|
##
|
||||||
https:
|
https:
|
||||||
enabled: false
|
enabled: false
|
||||||
tlsCredentialName: ""
|
tlsCredentialName: ""
|
||||||
|
tlsCipherSuites: []
|
||||||
## @param istio.gateway.extraServers Additional servers for the Gateway resource
|
## @param istio.gateway.extraServers Additional servers for the Gateway resource
|
||||||
## ref: https://istio.io/latest/docs/reference/config/networking/gateway/#Server
|
## ref: https://istio.io/latest/docs/reference/config/networking/gateway/#Server
|
||||||
|
##
|
||||||
extraServers: []
|
extraServers: []
|
||||||
|
|
||||||
virtualService:
|
virtualService:
|
||||||
## @param istio.virtualService.annotations Additional annotations for the VirtualService resource.
|
## @param istio.virtualService.annotations Additional annotations for the VirtualService resource.
|
||||||
##
|
##
|
||||||
annotations: {}
|
annotations: {}
|
||||||
|
## @param istio.virtualService.backendHeaders Header manipulation rules for backend traffic
|
||||||
|
## ref: https://istio.io/latest/docs/reference/config/networking/virtual-service/#Headers
|
||||||
|
##
|
||||||
|
backendHeaders: {}
|
||||||
|
## @param istio.virtualService.frontendHeaders Header manipulation rules for frontend traffic
|
||||||
|
## ref: https://istio.io/latest/docs/reference/config/networking/virtual-service/#Headers
|
||||||
|
##
|
||||||
|
frontendHeaders: {}
|
||||||
|
|
||||||
## @section Persistence Parameters
|
## @section Persistence Parameters
|
||||||
##
|
##
|
||||||
|
|||||||
Reference in New Issue
Block a user