fix: correct user:* scope typo (#26049)

The wildcard entry in `externalLowLevel` was `"user.*"` (period) instead
of `"user:*"` (colon). Every other entry uses the `resource:action`
colon convention, and `parseLowLevelScope` rejects the period form, so
the wildcard was silently dropped from `ExternalScopeNames()` and could
not be requested via `coder tokens create --scope=user:*`.

Closes https://github.com/coder/coder/issues/25623
This commit is contained in:
Ethan
2026-06-05 01:14:20 +10:00
committed by GitHub
parent b075db51e8
commit 6366c380fe
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -44,7 +44,7 @@ var externalLowLevel = map[ScopeName]struct{}{
"user:read": {},
"user:read_personal": {},
"user:update_personal": {},
"user.*": {},
"user:*": {},
// User secrets
"user_secret:read": {},