freeleaps-ops/freeleaps/helm-pkg/centralStorage/templates/central-storage/central-storage-config.yaml
Nicolas 69a2c112d1 feat(centralStorage): migrate alpha environment to use Azure Key Vault for sensitive data
- Add FreeleapsSecret configuration for Azure Key Vault integration
- Move sensitive data (mongodbUri, azureStorageDocumentApiKey, azureStorageDocumentApiEndpoint) from config to secrets
- Update deployment template to read from both config and FreeleapsSecret
- Comment out sensitive fields in central-storage-config.yaml
- Create freeleapssecret.yaml template for secret management
2025-08-18 16:24:11 +08:00

19 lines
1.2 KiB
YAML

apiVersion: v1
kind: Secret
metadata:
name: central-storage-config
namespace: {{ .Release.Namespace }}
type: Opaque
data:
TZ: {{ .Values.centralStorage.configs.tz | b64enc | quote }}
APP_NAME: {{ .Values.centralStorage.configs.appName | b64enc | quote }}
SERVICE_API_ACCESS_HOST: {{ .Values.centralStorage.configs.serviceApiAccessHost | b64enc | quote }}
SERVICE_API_ACCESS_PORT: {{ .Values.centralStorage.configs.serviceApiAccessPort | toString | b64enc }}
MONGODB_NAME: {{ .Values.centralStorage.configs.mongodbName | b64enc | quote }}
MONGODB_PORT: {{ .Values.centralStorage.configs.mongodbPort | toString | b64enc }}
METRICS_ENABLED: {{ .Values.centralStorage.configs.metricsEnabled | default false | toString | b64enc }}
PROBES_ENABLED: {{ .Values.centralStorage.configs.probesEnabled | default false | toString | b64enc }}
DEBUG_MODE: {{ .Values.centralStorage.configs.debugMode | default false | toString | b64enc }}
LOG_BASE_PATH: {{ .Values.logIngest.logPath | b64enc | quote }}
BACKEND_LOG_FILE_NAME: {{ .Values.centralStorage.configs.appName | b64enc | quote }}
APPLICATION_ACTIVITY_LOG: {{ .Values.centralStorage.configs.appName | printf "%s-activity" | b64enc | quote }}