Skip to content

Add blur protection for .env file contents#225

Merged
BunsDev merged 1 commit into
mainfrom
okcode/blur-env-file-values
Apr 4, 2026
Merged

Add blur protection for .env file contents#225
BunsDev merged 1 commit into
mainfrom
okcode/blur-env-file-values

Conversation

@BunsDev

@BunsDev BunsDev commented Apr 4, 2026

Copy link
Copy Markdown
Member

Summary

  • Show .env files in file tree even when gitignored by scanning the workspace root for .env* files and merging them into the git-based file index
  • Blur file contents by default when viewing .env, .env.local, .env.production, etc. in the code viewer — applies a blur(6px) CSS filter and disables text selection
  • Toggle show/hide via a sticky amber banner with an eye icon button to reveal or re-hide values

Test plan

  • Open a project with .env / .env.local files (including gitignored ones)
  • Verify env files appear in the sidebar file tree
  • Click an env file and verify contents are blurred with "Sensitive file" banner
  • Click "Show values" and verify content becomes readable
  • Click "Hide values" and verify blur re-applies
  • Verify non-env files are unaffected

🤖 Generated with Claude Code

Show .env and .env.local files in the file tree (even when gitignored)
and blur their contents by default with a toggle to reveal values.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@vercel

vercel Bot commented Apr 4, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
okcode-marketing Ready Ready Preview Apr 4, 2026 5:11pm
v0-compute-the-platform-to-build Ready Ready Preview, Open in v0 Apr 4, 2026 5:11pm

@github-actions github-actions Bot added the size:M label Apr 4, 2026
@github-actions github-actions Bot added the vouch:trusted PR author is trusted by repo permissions or the VOUCHED list. label Apr 4, 2026
@BunsDev BunsDev merged commit d0abb4b into main Apr 4, 2026
9 of 10 checks passed
@BunsDev BunsDev deleted the okcode/blur-env-file-values branch April 6, 2026 21:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:M vouch:trusted PR author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant