Skip to content

fix(portal): permit whitelisted emails to bypass domain restriction and wire OIDC_ALLOWED_EMAILS in secretEnv - #252

Open
elf-mouse wants to merge 1 commit into
yc-software:mainfrom
elf-mouse:fix/portal-whitelisted-emails-domain-bypass
Open

fix(portal): permit whitelisted emails to bypass domain restriction and wire OIDC_ALLOWED_EMAILS in secretEnv#252
elf-mouse wants to merge 1 commit into
yc-software:mainfrom
elf-mouse:fix/portal-whitelisted-emails-domain-bypass

Conversation

@elf-mouse

@elf-mouse elf-mouse commented Aug 7, 2026

Copy link
Copy Markdown

This commit fixes OIDC principal resolution and secret routing for whitelisted emails when an allowed email domain is configured:

  1. plugins/portal/src/oidc.ts:

    • Allow explicitly whitelisted emails in rule.allowedEmails to pass resolvePrincipal without being rejected by rule.allowedEmailDomain.
  2. plugins/portal/test/oidc.test.ts:

    • Add unit test verifying that explicitly allowed emails bypass domain restriction.

View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need. Autofix is disabled.

…nd wire OIDC_ALLOWED_EMAILS in secretEnv

This commit fixes OIDC principal resolution and secret routing for whitelisted emails when an allowed email domain is configured:

1. `plugins/portal/src/oidc.ts`:
   - Allow explicitly whitelisted emails in `rule.allowedEmails` to pass `resolvePrincipal` without being rejected by `rule.allowedEmailDomain`.

2. `plugins/portal/test/oidc.test.ts`:
   - Add unit test verifying that explicitly allowed emails bypass domain restriction.
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.

1 participant