mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
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:
@@ -272,6 +272,7 @@ var PublicAPIKeyScopes = []APIKeyScope{
|
||||
APIKeyScopeTemplateRead,
|
||||
APIKeyScopeTemplateUpdate,
|
||||
APIKeyScopeTemplateUse,
|
||||
APIKeyScopeUserAll,
|
||||
APIKeyScopeUserRead,
|
||||
APIKeyScopeUserReadPersonal,
|
||||
APIKeyScopeUserUpdatePersonal,
|
||||
|
||||
Reference in New Issue
Block a user