Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

865 B
Raw Blame
apiVersion: v1
kind: Secret
metadata:
  name: {{ include "infisical.fullname" . }}-secrets
  labels:
    {{- include "infisical.labels" . | nindent 4 }}
type: Opaque
stringData:
  ENCRYPTION_KEY: {{ include "infisical.encryptionKey" . | quote }}
  AUTH_SECRET: {{ include "infisical.authSecret" . | quote }}
  {{- if .Values.redis.enabled }}
  {{- $redisPassword := include "infisical.redisPassword" . }}
  REDIS_PASSWORD: {{ $redisPassword | quote }}
  REDIS_URL: {{ printf "redis://:%s@%s-redis:%v" $redisPassword (include "infisical.fullname" .) .Values.redis.port | quote }}
  {{- else }}
  REDIS_URL: {{ .Values.secrets.redisUrl | quote }}
  {{- end }}
  {{- if not .Values.postgres.cnpg.enabled }}
  # Only used when CNPG is disabled and an external Postgres is provided.
  DB_CONNECTION_URI: {{ .Values.postgres.externalConnectionUri | quote }}
  {{- end }}