mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
chore: add more scopes to the curated catalog (#20746)
Just noticed when writing docs. These are probably obvious scopes to allow
This commit is contained in:
@@ -43,6 +43,7 @@ var externalLowLevel = map[ScopeName]struct{}{
|
||||
// Users (personal profile only)
|
||||
"user:read_personal": {},
|
||||
"user:update_personal": {},
|
||||
"user.*": {},
|
||||
|
||||
// User secrets
|
||||
"user_secret:read": {},
|
||||
@@ -57,6 +58,12 @@ var externalLowLevel = map[ScopeName]struct{}{
|
||||
"task:update": {},
|
||||
"task:delete": {},
|
||||
"task:*": {},
|
||||
|
||||
// Organizations
|
||||
"organization:read": {},
|
||||
"organization:update": {},
|
||||
"organization:delete": {},
|
||||
"organization:*": {},
|
||||
}
|
||||
|
||||
// Public composite coder:* scopes exposed to users.
|
||||
|
||||
@@ -221,6 +221,10 @@ var PublicAPIKeyScopes = []APIKeyScope{
|
||||
APIKeyScopeFileAll,
|
||||
APIKeyScopeFileCreate,
|
||||
APIKeyScopeFileRead,
|
||||
APIKeyScopeOrganizationAll,
|
||||
APIKeyScopeOrganizationDelete,
|
||||
APIKeyScopeOrganizationRead,
|
||||
APIKeyScopeOrganizationUpdate,
|
||||
APIKeyScopeTaskAll,
|
||||
APIKeyScopeTaskCreate,
|
||||
APIKeyScopeTaskDelete,
|
||||
|
||||
Reference in New Issue
Block a user