You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by zh...@apache.org on 2023/06/25 01:23:38 UTC
[apisix-helm-chart] branch master updated: feat: adding fallback_sni to apisix conf (#546)
This is an automated email from the ASF dual-hosted git repository.
zhangjintao pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/apisix-helm-chart.git
The following commit(s) were added to refs/heads/master by this push:
new e7a79ff feat: adding fallback_sni to apisix conf (#546)
e7a79ff is described below
commit e7a79ffeb6d060fd08687e9f6d90f01ac909b673
Author: apalapal <98...@users.noreply.github.com>
AuthorDate: Sun Jun 25 02:23:33 2023 +0100
feat: adding fallback_sni to apisix conf (#546)
Co-authored-by: AP <ap...@ap.pt>
---
charts/apisix/README.md | 3 ++-
charts/apisix/templates/configmap.yaml | 3 +++
charts/apisix/values.yaml | 2 ++
3 files changed, 7 insertions(+), 1 deletion(-)
diff --git a/charts/apisix/README.md b/charts/apisix/README.md
index 78dedd5..b7c862b 100644
--- a/charts/apisix/README.md
+++ b/charts/apisix/README.md
@@ -169,10 +169,11 @@ The command removes all the Kubernetes components associated with the chart and
| gateway.ingress.annotations | object | `{}` | Ingress annotations |
| gateway.labelsOverride | object | `{}` | Override default labels assigned to Apache APISIX gateway resources |
| gateway.stream | object | `{"enabled":false,"only":false,"tcp":[],"udp":[]}` | Apache APISIX service settings for stream. L4 proxy (TCP/UDP) |
-| gateway.tls | object | `{"additionalContainerPorts":[],"certCAFilename":"","containerPort":9443,"enabled":false,"existingCASecret":"","http2":{"enabled":true},"servicePort":443,"sslProtocols":"TLSv1.2 TLSv1.3"}` | Apache APISIX service settings for tls |
+| gateway.tls | object | `{"additionalContainerPorts":[],"certCAFilename":"","containerPort":9443,"enabled":false,"existingCASecret":"","fallbackSNI":"","http2":{"enabled":true},"servicePort":443,"sslProtocols":"TLSv1.2 TLSv1.3"}` | Apache APISIX service settings for tls |
| gateway.tls.additionalContainerPorts | list | `[]` | Support multiple https ports, See [Configuration](https://github.com/apache/apisix/blob/0bc65ea9acd726f79f80ae0abd8f50b7eb172e3d/conf/config-default.yaml#L99) |
| gateway.tls.certCAFilename | string | `""` | Filename be used in the gateway.tls.existingCASecret |
| gateway.tls.existingCASecret | string | `""` | Specifies the name of Secret contains trusted CA certificates in the PEM format used to verify the certificate when APISIX needs to do SSL/TLS handshaking with external services (e.g. etcd) |
+| gateway.tls.fallbackSNI | string | `""` | Define SNI to fallback if none is presented by client |
| gateway.tls.sslProtocols | string | `"TLSv1.2 TLSv1.3"` | TLS protocols allowed to use. |
| gateway.type | string | `"NodePort"` | Apache APISIX service type for user access itself |
| global.imagePullSecrets | list | `[]` | Global Docker registry secret names as an array |
diff --git a/charts/apisix/templates/configmap.yaml b/charts/apisix/templates/configmap.yaml
index 3f13b21..6cb25a9 100644
--- a/charts/apisix/templates/configmap.yaml
+++ b/charts/apisix/templates/configmap.yaml
@@ -149,6 +149,9 @@ data:
{{- if and .Values.gateway.tls.enabled .Values.gateway.tls.existingCASecret }}
ssl_trusted_certificate: "/usr/local/apisix/conf/ssl/{{ .Values.gateway.tls.certCAFilename }}"
{{- end }}
+ {{- if and .Values.gateway.tls.enabled .Values.gateway.tls.fallbackSNI }}
+ fallback_sni: {{ .Values.gateway.tls.fallbackSNI | quote }}
+ {{- end }}
nginx_config: # config for render the template to genarate nginx.conf
error_log: "{{ .Values.logs.errorLog }}"
diff --git a/charts/apisix/values.yaml b/charts/apisix/values.yaml
index 272d358..8b9aa9f 100644
--- a/charts/apisix/values.yaml
+++ b/charts/apisix/values.yaml
@@ -268,6 +268,8 @@ gateway:
enabled: true
# -- TLS protocols allowed to use.
sslProtocols: "TLSv1.2 TLSv1.3"
+ # -- Define SNI to fallback if none is presented by client
+ fallbackSNI: ""
# -- Apache APISIX service settings for stream. L4 proxy (TCP/UDP)
stream:
enabled: false