mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2025-12-10 17:23:04 +03:00
[PR #957] [MERGED] Domain whitelist cleanup and fixes #3583
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/dani-garcia/vaultwarden/pull/957
Author: @jjlin
Created: 4/9/2020
Status: ✅ Merged
Merged: 4/18/2020
Merged by: @dani-garcia
Base:
master← Head:domain-whitelist📝 Commits (3)
c2a324eClean up domain whitelist logice4d0883Make org owner invitations respect the email domain whitelist86685c1Ensure email domain comparison is case-insensitive📊 Changes
3 files changed (+40 additions, -15 deletions)
View changed files
📝
src/api/core/accounts.rs(+7 -4)📝
src/api/core/organizations.rs(+6 -2)📝
src/config.rs(+27 -9)📄 Description
Make
SIGNUPS_DOMAINS_WHITELISToverride theSIGNUPS_ALLOWEDsetting.Otherwise, a common pitfall is to set
SIGNUPS_DOMAINS_WHITELISTwithoutrealizing that
SIGNUPS_ALLOWED=falsemust also be set.Whitespace is now accepted in
SIGNUPS_DOMAINS_WHITELIST. That is,foo.com, bar.comis now equivalent tofoo.com,bar.com.Add validation on
SIGNUPS_DOMAINS_WHITELIST. For example,foo.com,is rejected as containing an empty token.
Make org owner invitations respect the email domain whitelist.
This closes a loophole where org owners can invite new users from any domain.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.