Repository navigation
[OBEZS] feat(auth): name a whole Workspace domain in the access lists, so members need no listing - #88
Merged
den-vasyliev merged 2 commits intoNov 21, 2026
Conversation
…, so members need no listing With --access-admins set, only listed principals sign in, so a deployment could not admit every account of its Google Workspace while naming the admins by address. The only way was listing user hashes in writeAllowedUsers. A new entry, google:*@<domain>, valid in --access-users and --access-admins, names every Google account of --google-domain. In the users list it admits the whole domain as members while the admins stay named; in the admins list it makes every such account an admin. It matches Google sessions only. Without the entry nothing changes.
google:*@<domain> in --access-admins would make the whole domain admin with one entry in the wrong list, so it fails start-up and an admin is only ever named exactly. The entry still admits the whole domain to sign in from --access-users.
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
With the access lists set, only listed principals sign in, so a deployment could not admit its whole Google Workspace while naming its admins by address; the only way was empty lists plus user hashes in
writeAllowedUsers.A new entry,
google:*@<domain>, names every Google account of--google-domainand is valid in either list. In--access-usersit admits the whole domain as members while the admins stay named; in--access-adminsit makes every such account an admin. It matches Google sessions only; another domain, a missing--google-domainor any other use of*fails start-up. Without the entry nothing changes. ADR-066, the spec and the README describe it.TestNewAccessGrants_DomainEntry,TestAccessGrants_DomainEntryAdmitsWorkspaceMembersandTestAccessGrants_DomainEntryInAdminsMakesEveryAccountAdminfail without the change;make lintandgo test -race ./...pass. Running since 2026-11-20 on an instance withACCESS_USERS=google:*@everstake.comand one admin by address: the admin signs in with write access, and an MCP token gets read and write.Fixes #ISSUE.