Repository navigation
Add missing env var placeholders to dev backend-listen chart - #7029
Conversation
Add 5 env vars present in prod but missing from dev backend-listen: GROQ_API_KEY, OPENROUTER_API_KEY, RAPID_API_HOST, RAPID_API_KEY, CONVERSATION_SUMMARIZED_APP_IDS. Set as PLACEHOLDER_ values to be replaced with real secrets later. Co-Authored-By: Claude Opus 4.6 <[email protected]>
Greptile SummaryThis PR adds five env vars (
Confidence Score: 3/5Not safe to merge as-is — the five new vars use the wrong injection mechanism, breaking the test plan and risking silent runtime failures or credential exposure. Single P1 finding with a security dimension: wrong secret injection pattern means the K8s secret is never wired in, pods silently use placeholder strings at runtime, and there is a structural risk of committing real API keys to the chart YAML. backend/charts/backend-listen/dev_omi_backend_listen_values.yaml — all five new env var entries need to be converted from plain
|
| Filename | Overview |
|---|---|
| backend/charts/backend-listen/dev_omi_backend_listen_values.yaml | Adds 5 env vars present in prod but uses plain value: "PLACEHOLDER_..." instead of valueFrom: secretKeyRef:, breaking the stated test plan and inconsistent with every other secret in this file and the prod chart |
Flowchart
%%{init: {'theme': 'neutral'}}%%
flowchart TD
A[Helm Chart Deploy] --> B{Env var source}
B -->|Other secrets - correct| C["valueFrom: secretKeyRef:\n→ dev-omi-backend-secrets"]
B -->|5 new vars - this PR| D["value: PLACEHOLDER_...\n(plain string)"]
C --> E[Pod reads real secret\nfrom K8s secret store]
D --> F[Pod starts with literal\nPLACEHOLDER string]
F --> G[Silent runtime failure\non API calls]
D --> H[Risk: real key committed\nto YAML in git]
E --> I[✅ Correct behavior]
Reviews (1): Last reviewed commit: "Add missing env var placeholders to dev ..." | Re-trigger Greptile
| name: dev-omi-backend-secrets | ||
| key: METRICS_SECRET | ||
| - name: GROQ_API_KEY | ||
| value: "PLACEHOLDER_GROQ_API_KEY" | ||
| - name: OPENROUTER_API_KEY | ||
| value: "PLACEHOLDER_OPENROUTER_API_KEY" | ||
| - name: RAPID_API_HOST | ||
| value: "PLACEHOLDER_RAPID_API_HOST" | ||
| - name: RAPID_API_KEY | ||
| value: "PLACEHOLDER_RAPID_API_KEY" |
There was a problem hiding this comment.
Plain
value: breaks the stated test plan and risks secret leakage
All five vars use plain value: instead of valueFrom: secretKeyRef:. This breaks the stated test plan — "replace placeholder values with real secrets in dev-omi-backend-secrets" — because the chart never references that K8s secret for these vars; populating it has no effect. Pods will start with the literal placeholder strings, silently failing at runtime on every downstream API call. It also creates a structural incentive to embed real keys directly in this YAML file, risking credential exposure in git.
Every other secret in this file and all five of these vars in the prod chart use valueFrom: secretKeyRef: name: dev-omi-backend-secrets. Use that same pattern here so that (a) the K8s secret is actually wired in, (b) missing keys cause a clear pod startup failure rather than silent runtime errors, and (c) no credentials ever appear in the chart YAML.
- Add 5 missing keys to ExternalSecret values (backend-secrets chart) so they sync from GCP Secret Manager to K8s secret - Update backend-listen chart to use secretKeyRef instead of plain values - Created GROQ_API_KEY and CONVERSATION_SUMMARIZED_APP_IDS in GCP SM with PLACEHOLDER_ values; OPENROUTER_API_KEY, RAPID_API_HOST, RAPID_API_KEY already existed with real values Co-Authored-By: Claude Opus 4.6 <[email protected]>
…rdware#7029) ## Summary - Add 5 env vars present in prod but missing from dev backend-listen - Variables: `GROQ_API_KEY`, `OPENROUTER_API_KEY`, `RAPID_API_HOST`, `RAPID_API_KEY`, `CONVERSATION_SUMMARIZED_APP_IDS` - Add secret key mappings to ExternalSecret values (backend-secrets chart) for GCP SM → K8s sync - Use `secretKeyRef` pattern in backend-listen chart (consistent with existing secret refs) ## GCP Secret Manager status (based-hardware-dev) | Secret | Status | |--------|--------| | GROQ_API_KEY | Created with `PLACEHOLDER_GROQ_API_KEY` value | | OPENROUTER_API_KEY | Already existed (real value, 73 chars) | | RAPID_API_HOST | Already existed (real value, 28 chars) | | RAPID_API_KEY | Already existed (real value, 50 chars) | | CONVERSATION_SUMMARIZED_APP_IDS | Created with `PLACEHOLDER_CONVERSATION_SUMMARIZED_APP_IDS` value | ## Context Beta users are routed to dev backends (PR BasedHardware#7014). Env var audit found these 5 vars exist in prod backend-listen but are absent in dev GKE deployment. ## Test plan - [ ] Deploy backend-secrets chart first (syncs new keys to K8s secret) - [ ] Deploy backend-listen chart (pods pick up new env vars) - [ ] Verify pods start without CrashLoopBackOff - [ ] Replace 2 placeholder values (GROQ_API_KEY, CONVERSATION_SUMMARIZED_APP_IDS) with real values when available 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Summary
GROQ_API_KEY,OPENROUTER_API_KEY,RAPID_API_HOST,RAPID_API_KEY,CONVERSATION_SUMMARIZED_APP_IDSsecretKeyRefpattern in backend-listen chart (consistent with existing secret refs)GCP Secret Manager status (based-hardware-dev)
PLACEHOLDER_GROQ_API_KEYvaluePLACEHOLDER_CONVERSATION_SUMMARIZED_APP_IDSvalueContext
Beta users are routed to dev backends (PR #7014). Env var audit found these 5 vars exist in prod backend-listen but are absent in dev GKE deployment.
Test plan
🤖 Generated with Claude Code