flowfi icon indicating copy to clipboard operation
flowfi copied to clipboard

[Security] Broaden .gitignore to cover .env.* variants

Open blurbeast opened this issue 2 weeks ago • 4 comments

Overview & Background

Only a file literally named .env is ignored (.gitignore:4, backend/.gitignore:3), while frontend/.gitignore:35 correctly uses .env* with !.env.example. Verified with git check-ignore: backend/.env.local and backend/.env.production are not ignored by any rule. backend/.env.example documents real secrets to be placed in env files (JWT_SECRET, KEEPER_SECRET_KEY), and docs/DEVELOPMENT.md has contributors copy it to .env. A contributor using the common .env.local / .env.production naming would be able to commit Stellar secret keys and JWT secrets.


Technical Specification & Architecture

  1. Change root and backend/.gitignore to .env* + !.env.example, mirroring frontend/.gitignore:34-35.
  2. Keep the three ignore files consistent.

Target Files

  • .gitignore
  • backend/.gitignore
  • frontend/.gitignore

Acceptance Criteria

  • [ ] git check-ignore backend/.env.local and backend/.env.production report ignored.
  • [ ] .env.example files remain tracked.
  • [ ] All three ignore scopes use the same env pattern.

blurbeast avatar Nov 18 '26 19:11 blurbeast

@oluwasegungeorge52-collab has applied to work on this issue as part of the Stellar Wave Program's 11th wave.

Hi Maintainer, I’ve reviewed the issue details and believe I can develop a clean and effective solution for it.

ℹ️ Repo Maintainers: To accept this application, review their application or assign @oluwasegungeorge52-collab to this issue.

@ademola-star has applied to work on this issue as part of the Stellar Wave Program's 11th wave.

i can solve

ℹ️ Repo Maintainers: To accept this application, review their application or assign @ademola-star to this issue.

ademola-star avatar Nov 21 '26 07:11 ademola-star

Congratulations, @ademola-star! 🎉 Your application was accepted by the repo's maintainers, and the issue is due on November 25, 2026.

🧑‍💻 @ademola-star: Please resolve the issue such that the repo's maintainers have enough time to review your contribution before the due date. You'll earn Points for completing the issue on-time, which will make you eligible for a share of the Stellar Wave Program's reward pool.

[!WARNING] When opening a PR, please link it to this issue to ensure it gets tracked accurately. Points are awarded when this issue is marked as completed by the maintainer.

🤠 Repo maintainers: Please keep an eye on the contributor's progress and review their work before the due date. You can manage this issue, including adjusting its complexity and points, here.

🌊 Happy Wave 🌊

drips-wave[bot] avatar Nov 21 '26 07:11 drips-wave[bot]

This issue has been completed by @ademola-star as part of the Stellar Wave Program's 11th Wave 🥳

😎 @ademola-star: You earned 200 Points for completing this issue! Once the Wave's rewards are finalized, you'll be eligible for a percentage of the Wave's reward pool based on the percentage of total points you've earned. Learn more here. You can also Leave a review to share your experience working on this issue.

🧑‍💻 Repo maintainers: How'd the contributor do? Leave a review to share your experience working with them.

drips-wave[bot] avatar Nov 24 '26 17:11 drips-wave[bot]