Skip to content

[OBEZS] feat(auth): name a whole Workspace domain in the access lists, so members need no listing - #88

Merged
den-vasyliev merged 2 commits into
triageagent-dev:mainfrom
obezsmertnyi:feat/access-domain-members
Nov 21, 2026
Merged

den-vasyliev merged 2 commits into
triageagent-dev:mainfrom
obezsmertnyi:feat/access-domain-members

Conversation

@obezsmertnyi

Copy link
Copy Markdown
Collaborator

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-domain and is valid in either list. In --access-users it admits the whole domain as members while the admins stay named; in --access-admins it makes every such account an admin. It matches Google sessions only; another domain, a missing --google-domain or any other use of * fails start-up. Without the entry nothing changes. ADR-066, the spec and the README describe it.

TestNewAccessGrants_DomainEntry, TestAccessGrants_DomainEntryAdmitsWorkspaceMembers and TestAccessGrants_DomainEntryInAdminsMakesEveryAccountAdmin fail without the change; make lint and go test -race ./... pass. Running since 2026-11-20 on an instance with ACCESS_USERS=google:*@everstake.com and one admin by address: the admin signs in with write access, and an MCP token gets read and write.

Fixes #ISSUE.

…, 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.
@den-vasyliev
den-vasyliev merged commit bddeb5a into triageagent-dev:main Nov 21, 2026
6 checks passed
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.

3 participants