Skip to content

Commit c2ff178

Browse files
authored
fix(helm): reject placeholder secrets and stop shipping them in example values (#10052)
* fix(helm): reject placeholder secrets and stop shipping them in example values The production example values files filled BETTER_AUTH_SECRET, ENCRYPTION_KEY, INTERNAL_API_SECRET, CRON_SECRET, API_ENCRYPTION_KEY and the Postgres password with fixed 'your-...' strings. sim.validateSecrets only rejected empty values and exact 'CHANGE-ME-...' literals, so an install that omitted one --set override rendered cleanly with a publicly known secret. - Blank those keys in the production/aws/gcp/azure/whitelabeled examples so the existing required-key checks fail the install - Replace the exact-literal comparisons with sim.rejectPlaceholderSecret, a shape check for change-me/your- values, applied to every app, realtime, copilot and database secret - Add CRON_SECRET to the README install snippet and update the self-hosting docs callout * fix(helm): skip copilot placeholder check when ESO supplies the secrets * chore(helm): bump chart to 1.11.20 * fix(helm): only check the realtime placeholder when realtime is enabled
1 parent 30afb73 commit c2ff178

12 files changed

Lines changed: 181 additions & 61 deletions

File tree

‎apps/docs/content/docs/platform/self-hosting/reference-architectures.mdx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ resource "helm_release" "sim" {
174174
```
175175

176176
<Callout type="warn">
177-
The example values files ship literal placeholders such as `your-secure-production-auth-secret-here`. That includes `postgresql.auth.password`. The chart only rejects empty values and its own `CHANGE-ME` strings, so a deployment that inherits those placeholders installs cleanly with a publicly known session-signing secret and database password. Override every secret, or use External Secrets and set none of them inline.
177+
The example values files leave every secret empty, and the chart refuses to install while a required secret is empty or still holds a placeholder such as `your-...` or `CHANGE-ME-...`. Examples from chart versions before `1.11.20` shipped literal placeholders that passed this check, so if you installed from one of them, rotate any secret you did not override.
178178
</Callout>
179179

180180
Pin `version` above. Empty image tags use the selected chart's `appVersion`, so a pinned chart also selects that default app version. Explicit image tags or digests override it; pin them separately when you need that control, and keep app, realtime, and migrations aligned. Chart `1.11.8` was published with app version `v0.9.17`; local checkout metadata can differ. See [Upgrades](/platform/self-hosting/upgrades).

‎helm/sim/Chart.yaml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: v2
22
name: sim
33
description: A Helm chart for Sim - the open-source AI workspace where teams build, deploy, and manage AI agents
44
type: application
5-
version: 1.11.19
5+
version: 1.11.20
66
appVersion: "v0.8.26"
77
kubeVersion: ">=1.25.0-0"
88
home: https://sim.ai

‎helm/sim/README.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -283,6 +283,7 @@ helm install sim oci://ghcr.io/simstudioai/charts/sim \
283283
--set app.env.BETTER_AUTH_SECRET="$BETTER_AUTH_SECRET" \
284284
--set app.env.ENCRYPTION_KEY="$ENCRYPTION_KEY" \
285285
--set app.env.INTERNAL_API_SECRET="$INTERNAL_API_SECRET" \
286+
--set app.env.CRON_SECRET="$CRON_SECRET" \
286287
--set postgresql.auth.password="$POSTGRES_PASSWORD"
287288
```
288289

‎helm/sim/examples/values-aws.yaml‎

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -74,16 +74,16 @@ app:
7474
# SOCKET_SERVER_URL is auto-detected (uses internal service http://sim-realtime:3002)
7575
NEXT_PUBLIC_SOCKET_URL: "https://simstudio-ws.acme.com" # Public WebSocket URL for browsers
7676

77-
# Security settings (REQUIRED - replace with your own secure secrets)
78-
# Generate using: openssl rand -hex 32
79-
BETTER_AUTH_SECRET: "your-secure-production-auth-secret-here"
80-
ENCRYPTION_KEY: "your-secure-production-encryption-key-here"
81-
INTERNAL_API_SECRET: "your-secure-production-internal-api-secret-here"
82-
CRON_SECRET: "your-secure-production-cron-secret-here"
77+
# Security settings (REQUIRED - pass with --set or an external secret manager;
78+
# the install fails while any is empty). Generate using: openssl rand -hex 32
79+
BETTER_AUTH_SECRET: ""
80+
ENCRYPTION_KEY: ""
81+
INTERNAL_API_SECRET: ""
82+
CRON_SECRET: ""
8383

8484
# Optional: API Key Encryption (RECOMMENDED for production)
8585
# Generate 64-character hex string using: openssl rand -hex 32
86-
API_ENCRYPTION_KEY: "your-64-char-hex-api-encryption-key-here" # Optional but recommended
86+
API_ENCRYPTION_KEY: "" # Optional but recommended
8787

8888
NODE_ENV: "production"
8989
NEXT_TELEMETRY_DISABLED: "1"
@@ -134,7 +134,7 @@ realtime:
134134
env:
135135
NEXT_PUBLIC_APP_URL: "https://simstudio.acme.com"
136136
BETTER_AUTH_URL: "https://simstudio.acme.com"
137-
BETTER_AUTH_SECRET: "your-secure-production-auth-secret-here"
137+
BETTER_AUTH_SECRET: "" # Inherits app.env.BETTER_AUTH_SECRET when empty
138138
ALLOWED_ORIGINS: "https://simstudio.acme.com"
139139
NODE_ENV: "production"
140140

@@ -162,7 +162,7 @@ postgresql:
162162
# Database authentication (REQUIRED - set secure credentials)
163163
auth:
164164
username: postgres
165-
password: "your-secure-postgres-password"
165+
password: "" # Set via --set flag or external secret manager
166166
database: simstudio
167167

168168
# Resource allocation optimized for AWS EKS

‎helm/sim/examples/values-azure.yaml‎

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -74,16 +74,16 @@ app:
7474
# SOCKET_SERVER_URL is auto-detected (uses internal service http://sim-realtime:3002)
7575
NEXT_PUBLIC_SOCKET_URL: "https://simstudio-ws.acme.com" # Public WebSocket URL for browsers
7676

77-
# Security settings (REQUIRED - replace with your own secure secrets)
78-
# Generate using: openssl rand -hex 32
79-
BETTER_AUTH_SECRET: "your-secure-production-auth-secret-here"
80-
ENCRYPTION_KEY: "your-secure-production-encryption-key-here"
81-
INTERNAL_API_SECRET: "your-secure-production-internal-api-secret-here"
82-
CRON_SECRET: "your-secure-production-cron-secret-here"
77+
# Security settings (REQUIRED - pass with --set or an external secret manager;
78+
# the install fails while any is empty). Generate using: openssl rand -hex 32
79+
BETTER_AUTH_SECRET: ""
80+
ENCRYPTION_KEY: ""
81+
INTERNAL_API_SECRET: ""
82+
CRON_SECRET: ""
8383

8484
# Optional: API Key Encryption (RECOMMENDED for production)
8585
# Generate 64-character hex string using: openssl rand -hex 32
86-
API_ENCRYPTION_KEY: "your-64-char-hex-api-encryption-key-here" # Optional but recommended
86+
API_ENCRYPTION_KEY: "" # Optional but recommended
8787

8888
NODE_ENV: "production"
8989
NEXT_TELEMETRY_DISABLED: "1"
@@ -148,7 +148,7 @@ realtime:
148148
env:
149149
NEXT_PUBLIC_APP_URL: "https://simstudio.acme.com"
150150
BETTER_AUTH_URL: "https://simstudio.acme.com"
151-
BETTER_AUTH_SECRET: "your-secure-production-auth-secret-here"
151+
BETTER_AUTH_SECRET: "" # Inherits app.env.BETTER_AUTH_SECRET when empty
152152
ALLOWED_ORIGINS: "https://simstudio.acme.com"
153153
NODE_ENV: "production"
154154

@@ -168,7 +168,7 @@ postgresql:
168168
# Database authentication (REQUIRED - set secure credentials)
169169
auth:
170170
username: postgres
171-
password: "your-secure-postgres-password"
171+
password: "" # Set via --set flag or external secret manager
172172
database: simstudio
173173

174174
# Resource allocation for production workloads

‎helm/sim/examples/values-gcp.yaml‎

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -72,16 +72,16 @@ app:
7272
# SOCKET_SERVER_URL is auto-detected (uses internal service http://sim-realtime:3002)
7373
NEXT_PUBLIC_SOCKET_URL: "https://simstudio-ws.acme.com" # Public WebSocket URL for browsers
7474

75-
# Security settings (REQUIRED - replace with your own secure secrets)
76-
# Generate using: openssl rand -hex 32
77-
BETTER_AUTH_SECRET: "your-secure-production-auth-secret-here"
78-
ENCRYPTION_KEY: "your-secure-production-encryption-key-here"
79-
INTERNAL_API_SECRET: "your-secure-production-internal-api-secret-here"
80-
CRON_SECRET: "your-secure-production-cron-secret-here"
75+
# Security settings (REQUIRED - pass with --set or an external secret manager;
76+
# the install fails while any is empty). Generate using: openssl rand -hex 32
77+
BETTER_AUTH_SECRET: ""
78+
ENCRYPTION_KEY: ""
79+
INTERNAL_API_SECRET: ""
80+
CRON_SECRET: ""
8181

8282
# Optional: API Key Encryption (RECOMMENDED for production)
8383
# Generate 64-character hex string using: openssl rand -hex 32
84-
API_ENCRYPTION_KEY: "your-64-char-hex-api-encryption-key-here" # Optional but recommended
84+
API_ENCRYPTION_KEY: "" # Optional but recommended
8585

8686
NODE_ENV: "production"
8787
NEXT_TELEMETRY_DISABLED: "1"
@@ -135,7 +135,7 @@ realtime:
135135
env:
136136
NEXT_PUBLIC_APP_URL: "https://simstudio.acme.com"
137137
BETTER_AUTH_URL: "https://simstudio.acme.com"
138-
BETTER_AUTH_SECRET: "your-secure-production-auth-secret-here"
138+
BETTER_AUTH_SECRET: "" # Inherits app.env.BETTER_AUTH_SECRET when empty
139139
ALLOWED_ORIGINS: "https://simstudio.acme.com"
140140
NODE_ENV: "production"
141141

@@ -163,7 +163,7 @@ postgresql:
163163
# Database authentication (REQUIRED - set secure credentials)
164164
auth:
165165
username: postgres
166-
password: "your-secure-postgres-password"
166+
password: "" # Set via --set flag or external secret manager
167167
database: simstudio
168168

169169
# Resource allocation optimized for GKE

‎helm/sim/examples/values-production.yaml‎

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -49,24 +49,24 @@ app:
4949
BETTER_AUTH_URL: "https://sim.acme.ai"
5050
NEXT_PUBLIC_SOCKET_URL: "https://sim-ws.acme.ai"
5151

52-
# Security settings (REQUIRED - replace with your own secure secrets)
53-
# Generate using: openssl rand -hex 32
54-
BETTER_AUTH_SECRET: "your-production-auth-secret-here"
55-
ENCRYPTION_KEY: "your-production-encryption-key-here"
56-
INTERNAL_API_SECRET: "your-production-internal-api-secret-here"
57-
CRON_SECRET: "your-production-cron-secret-here"
52+
# Security settings (REQUIRED - pass with --set or an external secret manager;
53+
# the install fails while any is empty). Generate using: openssl rand -hex 32
54+
BETTER_AUTH_SECRET: ""
55+
ENCRYPTION_KEY: ""
56+
INTERNAL_API_SECRET: ""
57+
CRON_SECRET: ""
5858

5959
# Optional: API Key Encryption (RECOMMENDED for production)
6060
# Generate 64-character hex string using: openssl rand -hex 32
61-
API_ENCRYPTION_KEY: "your-64-char-hex-api-encryption-key-here" # Optional but recommended
61+
API_ENCRYPTION_KEY: "" # Optional but recommended
6262

6363
# Email verification (set to true if you want to require email verification)
6464
EMAIL_VERIFICATION_ENABLED: "false"
6565

6666
# Optional third-party service integrations (configure as needed)
67-
RESEND_API_KEY: "your-resend-api-key"
68-
GOOGLE_CLIENT_ID: "your-google-client-id"
69-
GOOGLE_CLIENT_SECRET: "your-google-client-secret"
67+
RESEND_API_KEY: ""
68+
GOOGLE_CLIENT_ID: ""
69+
GOOGLE_CLIENT_SECRET: ""
7070
# DISABLE_GOOGLE_AUTH: "true" # Uncomment to hide Google OAuth login
7171
# DISABLE_GITHUB_AUTH: "true" # Uncomment to hide GitHub OAuth login
7272

@@ -91,7 +91,7 @@ realtime:
9191
env:
9292
NEXT_PUBLIC_APP_URL: "https://sim.acme.ai"
9393
BETTER_AUTH_URL: "https://sim.acme.ai"
94-
BETTER_AUTH_SECRET: "your-production-auth-secret-here"
94+
BETTER_AUTH_SECRET: "" # Inherits app.env.BETTER_AUTH_SECRET when empty
9595
ALLOWED_ORIGINS: "https://sim.acme.ai"
9696

9797
# Database migrations
@@ -112,7 +112,7 @@ postgresql:
112112
# Database authentication (REQUIRED - set secure credentials)
113113
auth:
114114
username: postgres
115-
password: "your-secure-postgres-password"
115+
password: "" # Set via --set flag or external secret manager
116116
database: simstudio
117117

118118
# Resource allocation for production workloads

‎helm/sim/examples/values-whitelabeled.yaml‎

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -33,16 +33,16 @@ app:
3333
BETTER_AUTH_URL: "https://sim.acme.ai"
3434
NEXT_PUBLIC_SOCKET_URL: "https://sim-ws.acme.ai"
3535

36-
# Security settings (REQUIRED)
37-
# Generate using: openssl rand -hex 32
38-
BETTER_AUTH_SECRET: "your-production-auth-secret-here"
39-
ENCRYPTION_KEY: "your-production-encryption-key-here"
40-
INTERNAL_API_SECRET: "your-production-internal-api-secret-here"
41-
CRON_SECRET: "your-production-cron-secret-here"
36+
# Security settings (REQUIRED - pass with --set or an external secret manager;
37+
# the install fails while any is empty). Generate using: openssl rand -hex 32
38+
BETTER_AUTH_SECRET: ""
39+
ENCRYPTION_KEY: ""
40+
INTERNAL_API_SECRET: ""
41+
CRON_SECRET: ""
4242

4343
# Optional: API Key Encryption (RECOMMENDED for production)
4444
# Generate 64-character hex string using: openssl rand -hex 32
45-
API_ENCRYPTION_KEY: "your-64-char-hex-api-encryption-key-here" # Optional but recommended
45+
API_ENCRYPTION_KEY: "" # Optional but recommended
4646

4747
# UI Branding & Whitelabeling Configuration
4848
NEXT_PUBLIC_BRAND_NAME: "Acme AI Studio"
@@ -61,14 +61,14 @@ realtime:
6161
env:
6262
NEXT_PUBLIC_APP_URL: "https://sim.acme.ai"
6363
BETTER_AUTH_URL: "https://sim.acme.ai"
64-
BETTER_AUTH_SECRET: "your-production-auth-secret-here"
64+
BETTER_AUTH_SECRET: "" # Inherits app.env.BETTER_AUTH_SECRET when empty
6565
ALLOWED_ORIGINS: "https://sim.acme.ai"
6666

6767
# PostgreSQL database
6868
postgresql:
6969
enabled: true
7070
auth:
71-
password: "your-secure-db-password-here"
71+
password: "" # Set via --set flag or external secret manager
7272
persistence:
7373
enabled: true
7474
size: 20Gi

‎helm/sim/templates/_helpers.tpl‎

Lines changed: 26 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -254,6 +254,18 @@ Database URL for internal PostgreSQL
254254
{{- end }}
255255
{{- end }}
256256

257+
{{/*
258+
Fail when a secret still holds a documentation placeholder ("CHANGE-ME-...",
259+
"your-...") instead of a generated value. A shape check rather than a list of
260+
exact strings, so a placeholder reworded in an example is still rejected.
261+
Usage: include "sim.rejectPlaceholderSecret" (list "<values path>" <value>)
262+
*/}}
263+
{{- define "sim.rejectPlaceholderSecret" -}}
264+
{{- if regexMatch "(?i)^(change[-_ ]?me|your[-_ ])" (toString (index . 1)) }}
265+
{{- fail (printf "%s must not use a placeholder value. Generate a secure value with: openssl rand -hex 32" (index . 0)) }}
266+
{{- end }}
267+
{{- end }}
268+
257269
{{/*
258270
Validate required secrets and reject default placeholder values
259271
Skip validation when using existing secrets or External Secrets Operator
@@ -268,20 +280,17 @@ Skip validation when using existing secrets or External Secrets Operator
268280
{{- if and .Values.app.enabled (not .Values.app.env.BETTER_AUTH_SECRET) }}
269281
{{- fail "app.env.BETTER_AUTH_SECRET is required for production deployment" }}
270282
{{- end }}
271-
{{- if and .Values.app.enabled (eq .Values.app.env.BETTER_AUTH_SECRET "CHANGE-ME-32-CHAR-SECRET-FOR-PRODUCTION-USE") }}
272-
{{- fail "app.env.BETTER_AUTH_SECRET must not use the default placeholder value. Generate a secure secret with: openssl rand -hex 32" }}
273-
{{- end }}
274283
{{- if and .Values.app.enabled (not .Values.app.env.ENCRYPTION_KEY) }}
275284
{{- fail "app.env.ENCRYPTION_KEY is required for production deployment" }}
276285
{{- end }}
277-
{{- if and .Values.app.enabled (eq .Values.app.env.ENCRYPTION_KEY "CHANGE-ME-32-CHAR-ENCRYPTION-KEY-FOR-PROD") }}
278-
{{- fail "app.env.ENCRYPTION_KEY must not use the default placeholder value. Generate a secure key with: openssl rand -hex 32" }}
279-
{{- end }}
280286
{{- if and .Values.app.enabled (not .Values.app.env.INTERNAL_API_SECRET) }}
281287
{{- fail "app.env.INTERNAL_API_SECRET is required for production deployment (shared auth between sim-app and sim-realtime pods). Generate one with: openssl rand -hex 32" }}
282288
{{- end }}
283-
{{- if and .Values.realtime.enabled (eq .Values.realtime.env.BETTER_AUTH_SECRET "CHANGE-ME-32-CHAR-SECRET-FOR-PRODUCTION-USE") }}
284-
{{- fail "realtime.env.BETTER_AUTH_SECRET must not use the default placeholder value. Generate a secure secret with: openssl rand -hex 32" }}
289+
{{- range $key := list "BETTER_AUTH_SECRET" "ENCRYPTION_KEY" "INTERNAL_API_SECRET" "CRON_SECRET" "API_ENCRYPTION_KEY" }}
290+
{{- include "sim.rejectPlaceholderSecret" (list (printf "app.env.%s" $key) (index $.Values.app.env $key)) }}
291+
{{- end }}
292+
{{- if .Values.realtime.enabled }}
293+
{{- include "sim.rejectPlaceholderSecret" (list "realtime.env.BETTER_AUTH_SECRET" .Values.realtime.env.BETTER_AUTH_SECRET) }}
285294
{{- end }}
286295
{{- /* CRON_SECRET is required when cronjobs are enabled — pods reference it via secretKeyRef and would fail to start if the key is missing from the Secret. */ -}}
287296
{{- if and .Values.cronjobs.enabled (not .Values.app.env.CRON_SECRET) }}
@@ -293,8 +302,8 @@ Skip validation when using existing secrets or External Secrets Operator
293302
{{- if and .Values.postgresql.enabled (not .Values.postgresql.auth.password) }}
294303
{{- fail "postgresql.auth.password is required when using internal PostgreSQL" }}
295304
{{- end }}
296-
{{- if and .Values.postgresql.enabled (eq .Values.postgresql.auth.password "CHANGE-ME-SECURE-PASSWORD") }}
297-
{{- fail "postgresql.auth.password must not use the default placeholder value. Set a secure password for production" }}
305+
{{- if .Values.postgresql.enabled }}
306+
{{- include "sim.rejectPlaceholderSecret" (list "postgresql.auth.password" .Values.postgresql.auth.password) }}
298307
{{- end }}
299308
{{- if and .Values.postgresql.enabled .Values.postgresql.auth.password (not (regexMatch "^[a-zA-Z0-9._-]+$" .Values.postgresql.auth.password)) }}
300309
{{- fail "postgresql.auth.password must only contain alphanumeric characters, hyphens, underscores, or periods to ensure DATABASE_URL compatibility. Generate with: openssl rand -base64 16 | tr -d '/+='" }}
@@ -305,6 +314,9 @@ Skip validation when using existing secrets or External Secrets Operator
305314
{{- if and .Values.externalDatabase.enabled (not .Values.externalDatabase.password) }}
306315
{{- fail "externalDatabase.password is required when using external database" }}
307316
{{- end }}
317+
{{- if .Values.externalDatabase.enabled }}
318+
{{- include "sim.rejectPlaceholderSecret" (list "externalDatabase.password" .Values.externalDatabase.password) }}
319+
{{- end }}
308320
{{- if and .Values.externalDatabase.enabled .Values.externalDatabase.password (not (regexMatch "^[a-zA-Z0-9._-]+$" .Values.externalDatabase.password)) }}
309321
{{- fail "externalDatabase.password must only contain alphanumeric characters, hyphens, underscores, or periods to ensure DATABASE_URL compatibility." }}
310322
{{- end }}
@@ -656,6 +668,9 @@ Validate Copilot configuration
656668
{{- fail (printf "copilot.server.env.%s is required when copilot is enabled" $key) -}}
657669
{{- end -}}
658670
{{- end -}}
671+
{{- if not $useExternalSecrets -}}
672+
{{- include "sim.rejectPlaceholderSecret" (list (printf "copilot.server.env.%s" $key) (index (default dict $env) $key)) -}}
673+
{{- end -}}
659674
{{- end -}}
660675
{{- if $useExternalSecrets -}}
661676
{{- range $key, $value := $env -}}
@@ -676,6 +691,7 @@ Validate Copilot configuration
676691
{{- if or (not .Values.copilot.postgresql.auth.password) (eq .Values.copilot.postgresql.auth.password "") -}}
677692
{{- fail "copilot.postgresql.auth.password is required when copilot.postgresql.enabled=true" -}}
678693
{{- end -}}
694+
{{- include "sim.rejectPlaceholderSecret" (list "copilot.postgresql.auth.password" .Values.copilot.postgresql.auth.password) -}}
679695
{{- else -}}
680696
{{- if and (or (not .Values.copilot.database.existingSecretName) (eq .Values.copilot.database.existingSecretName "")) (or (not .Values.copilot.database.url) (eq .Values.copilot.database.url "")) -}}
681697
{{- fail "Provide copilot.database.existingSecretName or copilot.database.url when copilot.postgresql.enabled=false" -}}

‎helm/sim/tests/copilot-secret-modes_test.yaml‎

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -347,3 +347,57 @@ tests:
347347
asserts:
348348
- failedTemplate:
349349
errorPattern: "Set at least one of copilot.server.env.OPENAI_API_KEY_1 or copilot.server.env.ANTHROPIC_API_KEY_1"
350+
351+
- it: rejects a placeholder copilot secret
352+
template: deployment-copilot.yaml
353+
set:
354+
app.env.BETTER_AUTH_SECRET: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
355+
app.env.ENCRYPTION_KEY: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
356+
app.env.INTERNAL_API_SECRET: x
357+
app.env.CRON_SECRET: x
358+
postgresql.auth.password: xxxxxxxx
359+
copilot.enabled: true
360+
copilot.postgresql.auth.password: xxxxxxxx
361+
copilot.server.env.AGENT_API_DB_ENCRYPTION_KEY: x
362+
copilot.server.env.INTERNAL_API_SECRET: x
363+
copilot.server.env.LICENSE_KEY: your-license-key
364+
copilot.server.env.SIM_BASE_URL: https://sim.example.com
365+
copilot.server.env.SIM_AGENT_API_KEY: x
366+
copilot.server.env.REDIS_URL: redis://redis:6379
367+
copilot.server.env.OPENAI_API_KEY_1: x
368+
asserts:
369+
- failedTemplate:
370+
errorPattern: "copilot.server.env.LICENSE_KEY must not use a placeholder value"
371+
372+
- it: ignores an unused inline copilot placeholder when ESO maps the key
373+
template: deployment-copilot.yaml
374+
documentSelector:
375+
path: kind
376+
value: Deployment
377+
set:
378+
app.env.BETTER_AUTH_SECRET: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
379+
app.env.ENCRYPTION_KEY: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
380+
app.env.INTERNAL_API_SECRET: x
381+
app.env.CRON_SECRET: x
382+
postgresql.auth.password: xxxxxxxx
383+
copilot.enabled: true
384+
copilot.postgresql.enabled: false
385+
copilot.database.url: "postgresql://x:x@x:5432/x"
386+
copilot.server.env.LICENSE_KEY: your-license-key
387+
externalSecrets.enabled: true
388+
externalSecrets.secretStoreRef.name: sim-store
389+
externalSecrets.remoteRefs.app.BETTER_AUTH_SECRET: path/to/auth
390+
externalSecrets.remoteRefs.app.ENCRYPTION_KEY: path/to/enc
391+
externalSecrets.remoteRefs.app.INTERNAL_API_SECRET: path/to/iapi
392+
externalSecrets.remoteRefs.app.CRON_SECRET: path/to/cron
393+
externalSecrets.remoteRefs.postgresql.password: path/to/pgpw
394+
externalSecrets.remoteRefs.copilot.AGENT_API_DB_ENCRYPTION_KEY: path/to/agentdbkey
395+
externalSecrets.remoteRefs.copilot.INTERNAL_API_SECRET: path/to/iapi
396+
externalSecrets.remoteRefs.copilot.LICENSE_KEY: path/to/license
397+
externalSecrets.remoteRefs.copilot.SIM_BASE_URL: path/to/baseurl
398+
externalSecrets.remoteRefs.copilot.SIM_AGENT_API_KEY: path/to/agentkey
399+
externalSecrets.remoteRefs.copilot.REDIS_URL: path/to/redis
400+
externalSecrets.remoteRefs.copilot.OPENAI_API_KEY_1: path/to/openai
401+
asserts:
402+
- isKind:
403+
of: Deployment

0 commit comments

Comments
 (0)