Repository navigation
Say in .env that it is tracked on purpose and holds no real secrets - #2063
Conversation
GT-3111 flagged that the tracked .env has secret-named keys. Every value in it was checked and all are fake or empty, in this version and in every past version of the file. The file stays tracked so it lists every env var the app reads. The new header says so, says real secrets never go here, and notes that deployed envs never read it: dotenv-rails is only in the development and test groups, and .dockerignore keeps /.env* out of the image. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
🤖 agent-review · ✅ no blockers · risk LOW BLOCKERS: fix or dismiss to pass✅ No blockers. OTHER FINDINGS (16)
🔧 Fix suggestions (0)No automated fixes for this review. 📦 Dependency impactIndex disabled in config.yml, so no dependency impact was computed. 📊 Review detail & statsGenerated: 2026-11-18 · Day: Wednesday · Files changed: 1 (+2 -3 lines in this pass; +3 -0 for the whole PR) Risk factors detected: Findings #1, #3, #6 and #8 describe header lines that c446c0c replaced. They stay open in the ledger because only Deterministic evidence:
Agent summary for this pass (bands: Critical 9-10 · High 7-8 · Important 5-6 · Suggestions 3-4):
Four more findings from this pass scored 2/10, below the Suggestions band. Two of this pass's findings matched earlier entries (#5 and #9) and got no new number. Per-agent perspectives on blockers: none, there are no blockers. Engine: code-review (from config) · effort xhigh (from config) · model opus (from config) Review quality:
💬 How to act on this reviewEvery finding above is numbered. Severity ≥ 7 findings carry a checkbox and must each be fixed or |
The first header said the file lists every env var the app reads, but the app reads 19 vars that are not here (GOOGLE_ANALYTICS_VIEW_ID, AWS_S3_CONFIG_BUCKET, ROLLBAR_ENV and more). It also said every value is fake, but a few are real and public, such as APPLE_CLIENT_ID. The new header claims only what holds: values are for local dev and test, and none is a real secret. The third line explained why tracking the file is safe. That is rationale, not a constraint, so it lives here instead: dotenv-rails is only in the development and test groups, and .dockerignore keeps /.env* out of the image, so deployed envs never read this file. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
agent-review: the bot took back its approval of 142c206 because the PR changed beyond merging in the default branch. Run /agent-review:re-review (or /agent-review:review) and post the report. The bot approves again when the report passes for the new head.
|
I see you added the "On Staging" label, I'll get this merged to the staging branch! |
Jira: GT-3111
Why
A scan flagged that the tracked
.envhas secret-named keys (Crowdin, Rollbar, Sidekiq, Facebook, Apple, Salesforce, JWT and more). The file stays tracked on purpose. This PR adds a two-line header that says so, says the values are for local dev and test only and none is a real secret, and says never to commit one.What was checked
.envon master is a real secret. Secret-named keys are fake or empty, for examplefake_secret_key_base,abcdef,client_secret,localdevsecret. A few other values are real but public, such asAPPLE_CLIENT_ID=org.cru.godtools.bd20ebe8) briefly held what look like a real Apple Key ID and Team ID (they match Apple's ID format). Those are IDs, not secrets, and the Apple private key in that commit was the fakeprivate_key. No rotation is needed.dotenv-railsis only in the development and test groups, and.dockerignorekeeps/.env*out of the image.Dotenv.parsegives the same 43 keys and values before and after the header.Change
Two comment lines and a blank line at the top of
.env. Nothing else. (A first draft claimed the file lists every env var the app reads and that every value is fake; review showed both overclaim, so the second commit narrows the header to what holds.)🤖 Generated with Claude Code