-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Support custom CA certificates in Helm #2984
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -64,6 +64,9 @@ spec: | |||||
secret: | ||||||
secretName: {{ $sec.secret }} | ||||||
{{- end }} | ||||||
{{- if .Values.caBundleSecretName }} | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. As mentioned in #2984 (comment) by another user, this does not work for me too but need to be this:
Suggested change
|
||||||
{{ include "gitpod.caBundleVolume" . | indent 6 }} | ||||||
{{- end }} | ||||||
containers: | ||||||
- name: dind | ||||||
image: {{ $comp.dindImage | default "docker:19.03-dind" }} | ||||||
|
@@ -78,6 +81,9 @@ spec: | |||||
{{- range $idx, $sec := $comp.registryCerts }} | ||||||
- mountPath: /etc/docker/certs.d/{{- if eq $sec.name "builtin" -}}{{ template "gitpod.builtinRegistry.name" $this.root }}{{ else }}{{ $sec.name }}{{ end }} | ||||||
name: docker-tls-certs-{{ $idx }} | ||||||
{{- if .Values.caBundleSecretName }} | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same here (#2984 (comment))
Suggested change
|
||||||
{{ include "gitpod.caBundleVolumeMount" . | indent 8 }} | ||||||
{{- end }} | ||||||
{{- end }} | ||||||
{{- if $comp.dindResources }} | ||||||
resources: | ||||||
|
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -81,6 +81,9 @@ spec: | |||||
{{- if $comp.serverContainer.volumeMounts }} | ||||||
{{ toYaml $comp.serverContainer.volumeMounts | indent 8 }} | ||||||
{{- end }} | ||||||
{{- if .Values.caBundleSecretName }} | ||||||
{{ include "gitpod.caBundleVolumeMount" . | indent 8 }} | ||||||
{{- end }} | ||||||
{{ include "gitpod.container.defaultEnv" $this | indent 8 }} | ||||||
{{ include "gitpod.container.dbEnv" $this | indent 8 }} | ||||||
{{ include "gitpod.container.tracingEnv" $this | indent 8 }} | ||||||
|
@@ -213,6 +216,10 @@ spec: | |||||
value: {{ $comp.garbageCollection.disabled | default "false" | quote }} | ||||||
{{- if $comp.serverContainer.env }} | ||||||
{{ toYaml $comp.serverContainer.env | indent 8 }} | ||||||
{{- end }} | ||||||
{{- if .Values.caBundleSecretName }} | ||||||
- name: NODE_EXTRA_CA_CERTS | ||||||
value: /etc/ssl/certs/ca-certificates.crt | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If we change the cert name in the
Suggested change
|
||||||
{{- end }} | ||||||
volumes: | ||||||
{{- if $comp.storage.secretName }} | ||||||
|
@@ -228,5 +235,8 @@ spec: | |||||
{{- if $comp.volumes }} | ||||||
{{ toYaml $comp.volumes | indent 6 }} | ||||||
{{- end }} | ||||||
{{- if .Values.caBundleSecretName }} | ||||||
{{ include "gitpod.caBundleVolume" . | indent 6 }} | ||||||
{{- end }} | ||||||
{{ toYaml .Values.defaults | indent 6 }} | ||||||
{{ end }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What do you think about mounting just the root CA with a unique name (e.g.
ca-cert-gitpod.crt
) in the folder/etc/ssl/certs/
instead of the fullca-certificates.crt
(addresses the comments #2984 (comment) and #2984 (comment))?Then, you don't need to run
update-ca-certificates
on a local Linux and can add your root CA directly. In my tests, that works pretty fine.