Drop the ingress TLS block and cert-manager annotation, disable the nginx ssl-redirect, and hardcode AUTH_URL to http://<ingress.host>. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
25 lines
1.3 KiB
YAML
25 lines
1.3 KiB
YAML
apiVersion: v1
|
|
kind: Secret
|
|
metadata:
|
|
name: {{ include "it-cost-dashboard.fullname" . }}-server-secret
|
|
labels:
|
|
{{- include "it-cost-dashboard.componentLabels" (dict "ctx" . "component" "server") | nindent 4 }}
|
|
type: Opaque
|
|
stringData:
|
|
# Built in-template from the db root password + the db ClusterIP Service name.
|
|
# TRAP: Helm has no URL-encode function, so secrets.dbRootPassword must avoid
|
|
# URL-reserved characters (@ : / # ? % + & and space) — keep it [A-Za-z0-9-].
|
|
DATABASE_URL: "mysql://root:{{ required "secrets.dbRootPassword is required" .Values.secrets.dbRootPassword }}@{{ include "it-cost-dashboard.dbServiceName" . }}:{{ .Values.db.port }}/{{ .Values.db.database }}"
|
|
|
|
# Auth.js JWT signing key.
|
|
AUTH_SECRET: {{ required "secrets.authSecret is required" .Values.secrets.authSecret | quote }}
|
|
AUTH_TRUST_HOST: "true"
|
|
|
|
# Local admin login. Empty disables login entirely (src/auth.ts fails
|
|
# closed); required loudly here since it is now the only sign-in path.
|
|
LOCAL_ADMIN_PASSWORD: {{ required "secrets.localAdminPassword is required" .Values.secrets.localAdminPassword | quote }}
|
|
|
|
# Derived from the ingress host so Auth.js builds correct absolute redirect
|
|
# URLs. POC UI is plain HTTP only (no TLS anywhere).
|
|
AUTH_URL: {{ printf "http://%s" (required "ingress.host is required" .Values.ingress.host) | quote }}
|