diff --git a/ci/helm-chart/config/config.yaml.tpl b/ci/helm-chart/config/config.yaml.tpl index 1574e3b2..7d165d1f 100644 --- a/ci/helm-chart/config/config.yaml.tpl +++ b/ci/helm-chart/config/config.yaml.tpl @@ -21,7 +21,7 @@ lcp: # replace this dsn if you're not using SQLite database: "{{ .Values.lcp.database }}" # authentication file of the License Server. Here we use the same file for the License Server and Status Server - auth_file: "/app/htpasswd" + auth_file: "/app/.htpasswd" {{- if .Values.storage.enabled }} storage: filesystem: diff --git a/ci/helm-chart/templates/deployment-lcp.yaml b/ci/helm-chart/templates/deployment-lcp.yaml index 1eab35c9..a36fb4b3 100644 --- a/ci/helm-chart/templates/deployment-lcp.yaml +++ b/ci/helm-chart/templates/deployment-lcp.yaml @@ -29,9 +29,9 @@ spec: name: lcp-config readOnly: true subPath: config.yaml - - mountPath: /app/htpasswd + - mountPath: /app/.htpasswd name: lcp-config - subPath: htpasswd + subPath: .htpasswd readOnly: true {{- if .Values.edrlab.prodCertSecretName }} - mountPath: /app/cert diff --git a/ci/helm-chart/templates/deployment-lsd.yaml b/ci/helm-chart/templates/deployment-lsd.yaml index 6a340a84..19ae22ee 100644 --- a/ci/helm-chart/templates/deployment-lsd.yaml +++ b/ci/helm-chart/templates/deployment-lsd.yaml @@ -34,9 +34,9 @@ spec: name: lcp-prod-certs readOnly: true {{- end }} - - mountPath: /app/htpasswd + - mountPath: /app/.htpasswd name: lcp-config - subPath: htpasswd + subPath: .htpasswd - mountPath: /data/db name: lcp-data subPath: db diff --git a/ci/helm-chart/templates/secret-lcp-config.yaml b/ci/helm-chart/templates/secret-lcp-config.yaml index f509eb2b..47669c46 100644 --- a/ci/helm-chart/templates/secret-lcp-config.yaml +++ b/ci/helm-chart/templates/secret-lcp-config.yaml @@ -5,5 +5,5 @@ metadata: namespace: {{ .Release.Namespace }} type: Opaque data: - htpasswd: {{ htpasswd .Values.auth.username .Values.auth.password | b64enc }} + .htpasswd: {{ htpasswd .Values.auth.username .Values.auth.password | b64enc }} config.yaml: {{ tpl (.Files.Get "config/config.yaml.tpl") . | b64enc }}