Skip to content

chore: stop tracking .env (hygiene) - #112

Merged
groupthinking merged 1 commit into
masterfrom
claude/repo-architecture-review-12ukT
Jun 4, 2026
Merged

chore: stop tracking .env (hygiene)#112
groupthinking merged 1 commit into
masterfrom
claude/repo-architecture-review-12ukT

Conversation

@groupthinking

@groupthinking groupthinking commented Jun 4, 2026

Copy link
Copy Markdown
Owner

Stop tracking .env

Follow-up to the architecture review (#110), which flagged the committed .env. The file was committed before .gitignore covered it (.gitignore already lists .env at lines 198/338/419), so the ignore rules never took effect.

Correction from the original review

The review described this as a "live secret leak." On inspection of the actual values, they are development placeholders, not real credentials:

Key Committed value
DWAVE_API_TOKEN development-mode
JWT_SECRET_KEY dev-jwt-secret-key-minimum-32-characters-long
API_SECRET_KEY dev-api-secret-key-minimum-32-characters-long
ENCRYPTION_KEY dev-encryption-key-for-local-development-only

So no credential rotation is required, and there is nothing sensitive to purge from git history.

Why still do this

Tracking .env is an anti-pattern regardless of the current values: the next contributor who drops real secrets into their local .env would commit them by default. This change removes .env from tracking (local working copy preserved); .gitignore keeps it out going forward. Pure hygiene — scope is a single file, 29 deletions.

https://claude.ai/code/session_01AGrYSaaxGvpbp4Wzy3o2mi

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request removes the tracked .env file containing development configuration and secrets, and introduces a comprehensive ARCHITECTURE_REVIEW.md document. The new document provides a critical red-team architectural assessment of the self-correcting-executor repository, detailing core structural failures, non-functional self-correction mechanisms, missing backend endpoints, and recommending a complete clean rebuild. There are no review comments to address.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

.env was committed before .gitignore covered it. The committed values are
development placeholders (e.g. DWAVE_API_TOKEN=development-mode,
JWT_SECRET_KEY=dev-jwt-secret-key-...), not live credentials, so no rotation
is required. Untracking it keeps real local values from being committed
later; .gitignore already ignores .env. Local copy preserved.

https://claude.ai/code/session_01AGrYSaaxGvpbp4Wzy3o2mi
@groupthinking
groupthinking force-pushed the claude/repo-architecture-review-12ukT branch from fc089ec to 8dc4265 Compare June 4, 2026 05:30
@groupthinking groupthinking changed the title security: stop tracking committed .env chore: stop tracking .env (hygiene) Jun 4, 2026
@groupthinking
groupthinking marked this pull request as ready for review June 4, 2026 05:34
@groupthinking
groupthinking merged commit c40e34f into master Jun 4, 2026
8 checks passed
@groupthinking
groupthinking deleted the claude/repo-architecture-review-12ukT branch June 4, 2026 05:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants