Skip to content

Commit

Permalink
Provide more TLS names which will be valid for the TLS cert
Browse files Browse the repository at this point in the history
The names are:
`localhost`
`{{ .Release.Name }}`
`{{ .Release.Name }}.{{ .Release.Namespace }}`
`{{ .Release.Name }}.{{ .Release.Namespace }}.svc`
`{{ .Release.Name }}.{{ .Release.Namespace }}.svc.cluster.local`
  • Loading branch information
JonTheNiceGuy authored Nov 28, 2024
1 parent cccbc3f commit bf6b1fe
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion templates/internal/auto-tls.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
{{- if and .Values.internalTLS.enabled (eq .Values.internalTLS.certSource "auto") }}
{{- $ca := genCA "harbor-internal-ca" 365 }}
{{- $coreCN := (include "harbor.core" .) }}
{{- $coreCrt := genSignedCert $coreCN (list "127.0.0.1") (list "localhost" $coreCN) 365 $ca }}
{{- $coreCNPlusNS := printf "%s.%s" $coreCN .Release.Namespace }}
{{- $coreCNPlusNSsvc := printf "%s.svc" $coreCNPlusNS }}
{{- $coreCNPlusNSsvcCluster := printf "%s.cluster.local" $coreCNPlusNSsvc }}
{{- $coreCrt := genSignedCert $coreCN (list "127.0.0.1") (list "localhost" $coreCN $coreCNPlusNS $coreCNPlusNSsvc $coreCNPlusNSsvcCluster) 365 $ca }}
{{- $jsCN := (include "harbor.jobservice" .) }}
{{- $jsCrt := genSignedCert $jsCN nil (list $jsCN) 365 $ca }}
{{- $regCN := (include "harbor.registry" .) }}
Expand Down

0 comments on commit bf6b1fe

Please sign in to comment.