Sovryn-frontend icon indicating copy to clipboard operation
Sovryn-frontend copied to clipboard

Security: exposed Crypto/Blockchain Env Secret credential in .env.mainnet.local

Open molloyzak13 opened this issue 5 months ago • 0 comments

Heads up — found an exposed credential file in .env.mainnet.local.

A Crypto/Blockchain Env Secret is committed to this repository's history and publicly visible.

Rotate this now. The credential in .env.mainnet.local is in git history, so removing the file from HEAD is not enough — it is already exposed. Revoke and regenerate any blockchain keys, RPC auth tokens, or other secrets in that file with the relevant providers.

After rotating:

  • Run git rm --cached .env.mainnet.local to stop tracking the file.
  • Add .env.mainnet.local to .gitignore if it isn't already covered.

Rewriting history (BFG or git filter-repo) reduces the exposure window but is optional once you've rotated. Let me know if I can help with anything.

molloyzak13 avatar Jun 16 '26 02:06 molloyzak13