Skip to content

fix: load InternalAuth allowlist from env instead of hardcoding - #1169

Merged
harshhsahu merged 1 commit into
Walkover-Web-Solution:mainfrom
kabir74705:corrected_internal_auth
Aug 24, 2026
Merged

harshhsahu merged 1 commit into
Walkover-Web-Solution:mainfrom
kabir74705:corrected_internal_auth

Conversation

@kabir74705

Copy link
Copy Markdown
Contributor

Description
InternalAuth previously allowed only a hardcoded list of emails in source. That exposed privileged emails in the repo and made updates require a code change.

This change reads the allowlist from INTERNAL_ALLOWED_EMAILS (comma-separated) at startup into a Set, so:

emails stay out of source control
no DB call is needed
allowlist can be updated via env/secrets without redeploying code changes for the list itself
Also documents the variable in .env.example.

Co-authored-by: Cursor <cursoragent@cursor.com>
@windsurf-bot

windsurf-bot Bot commented Jul 16, 2026

Copy link
Copy Markdown
Contributor

PR review rate limit exceeded

@claude claude 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.

Claude Code Review

This pull request is from a fork — automated review is disabled. A repository maintainer can comment @claude review to run a one-time review.

@harshhsahu
harshhsahu merged commit 7626b97 into Walkover-Web-Solution:main Aug 24, 2026
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