Skip to content

fix(security): remove committed .env.test and use a git-ignored template - #1728

Open
GOE001 wants to merge 1 commit into
LabsCrypt:mainfrom
GOE001:fix/remove-committed-env-test
Open

fix(security): remove committed .env.test and use a git-ignored template#1728
GOE001 wants to merge 1 commit into
LabsCrypt:mainfrom
GOE001:fix/remove-committed-env-test

Conversation

@GOE001

@GOE001 GOE001 commented Aug 31, 2026

Copy link
Copy Markdown

Closes #1512

backend/.env.test was checked into the repo with placeholder secret values. While the values were not real credentials, committing any env file sets a bad precedent and risks a future edit accidentally introducing a real secret.

Changes:

  • Remove backend/.env.test from version control
  • Add backend/.env.test.example with placeholder comments as a template
  • Add .env.test to backend/.gitignore
  • Configure jest.setup.js to load .env.test via dotenv before each test run
  • Document the test environment setup in backend/README.md

🤖 Generated with Codebuff

Pull Request Checklist

Please ensure your PR follows these steps, mirroring our CONTRIBUTING.md guidelines.

  • I have read the CONTRIBUTING.md document.
  • My code follows the code style of this project.
  • I have added tests to cover my changes.
  • All new and existing tests passed.
  • I have updated the documentation accordingly.
  • I have verified the changes locally.

Closes LabsCrypt#1512

backend/.env.test was checked into the repo with placeholder secret values.
While the values were not real credentials, committing any env file sets a
bad precedent and risks a future edit accidentally introducing a real
secret.

Changes:
- Remove backend/.env.test from version control
- Add backend/.env.test.example with placeholder comments as a template
- Add .env.test to backend/.gitignore
- Configure jest.setup.js to load .env.test via dotenv before each test run
- Document the test environment setup in backend/README.md

🤖 Generated with Codebuff
Co-Authored-By: Codebuff <noreply@codebuff.com>
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.

[Backend] backend/.env.test is committed with real looking secrets format

1 participant