Files
it_cost_dashboard/helm/templates/server-secret.yaml
T
Tom Chien (IQ-AS)andClaude Opus 4.6 fb8b3fdcfb
CI/CD (dev on branch, prod on tag) / setup (push) Successful in 9s
CI/CD (dev on branch, prod on tag) / build-and-deploy (push) Failing after 28s
Serve the UI over plain HTTP only (POC)
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>
2026-11-17 14:57:56 +08:00

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 }}