Skip to content

Commit 468dad1

Browse files
committed
fix(helm): copy-pasteable install commands in copilot + ESO examples
values-copilot.yaml: the install header was missing every required copilot.server.env.* secret (AGENT_API_DB_ENCRYPTION_KEY, INTERNAL_API_SECRET, LICENSE_KEY, SIM_BASE_URL, SIM_AGENT_API_KEY, REDIS_URL, one model key) plus copilot.postgresql.auth.password. Pasting it as-is failed at template render. values-external-secrets.yaml: NEXT_PUBLIC_APP_URL, BETTER_AUTH_URL, etc. were declared under app.env / realtime.env. In ESO mode the chart-managed Secret isn't rendered, so the validator (rightly) rejects keys in app.env that aren't mapped under externalSecrets.remoteRefs. Moved non-secret URL/config to envDefaults, which is inlined and not subject to the ESO mapping rule.
1 parent 17632aa commit 468dad1

2 files changed

Lines changed: 21 additions & 3 deletions

File tree

helm/sim/examples/values-copilot.yaml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,20 @@
1616
# --set app.env.ENCRYPTION_KEY="$ENCRYPTION_KEY" \
1717
# --set app.env.INTERNAL_API_SECRET="$INTERNAL_API_SECRET" \
1818
# --set app.env.CRON_SECRET="$CRON_SECRET" \
19-
# --set postgresql.auth.password="$POSTGRES_PASSWORD"
19+
# --set postgresql.auth.password="$POSTGRES_PASSWORD" \
20+
# --set copilot.postgresql.auth.password="$COPILOT_POSTGRES_PASSWORD" \
21+
# --set copilot.server.env.AGENT_API_DB_ENCRYPTION_KEY="$AGENT_API_DB_ENCRYPTION_KEY" \
22+
# --set copilot.server.env.INTERNAL_API_SECRET="$INTERNAL_API_SECRET" \
23+
# --set copilot.server.env.LICENSE_KEY="$COPILOT_LICENSE_KEY" \
24+
# --set copilot.server.env.SIM_BASE_URL="https://sim.example.com" \
25+
# --set copilot.server.env.SIM_AGENT_API_KEY="$SIM_AGENT_API_KEY" \
26+
# --set copilot.server.env.REDIS_URL="redis://default:password@redis:6379" \
27+
# --set copilot.server.env.OPENAI_API_KEY_1="$OPENAI_API_KEY"
28+
#
29+
# All copilot.server.env.* keys above are required when copilot.enabled=true,
30+
# plus at least one model provider key (OPENAI_API_KEY_1 or ANTHROPIC_API_KEY_1).
31+
# LICENSE_KEY is issued by the Sim team. SIM_AGENT_API_KEY must equal the
32+
# COPILOT_API_KEY value on the main app side. SIM_BASE_URL is the public app URL.
2033

2134
# Enable the copilot service
2235
copilot:

helm/sim/examples/values-external-secrets.yaml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,12 @@ externalSecrets:
4040
app:
4141
enabled: true
4242
replicaCount: 2
43-
env:
43+
# In ESO mode, app.env may only contain keys that are also mapped under
44+
# externalSecrets.remoteRefs.app (the chart-managed Secret is not rendered,
45+
# so any unmapped value would silently go nowhere). Non-secret URL/config
46+
# belongs in envDefaults — those are inlined on the container as `env:`
47+
# and don't flow through the Secret.
48+
envDefaults:
4449
NEXT_PUBLIC_APP_URL: "https://sim.example.com"
4550
BETTER_AUTH_URL: "https://sim.example.com"
4651
NEXT_PUBLIC_SOCKET_URL: "wss://sim-ws.example.com"
@@ -49,7 +54,7 @@ app:
4954
realtime:
5055
enabled: true
5156
replicaCount: 2
52-
env:
57+
envDefaults:
5358
NEXT_PUBLIC_APP_URL: "https://sim.example.com"
5459
BETTER_AUTH_URL: "https://sim.example.com"
5560
ALLOWED_ORIGINS: "https://sim.example.com"

0 commit comments

Comments
 (0)