MCPcopy Index your code
hub / github.com/coder/coder / APIKeyScopeSet

Struct APIKeyScopeSet

coderd/database/modelmethods.go:336–339  ·  view source on GitHub ↗

APIKeyScopeSet merges expanded scopes with the API key's DB allow_list. If the DB allow_list is a wildcard or empty, the merged scope's allow list is unchanged. Otherwise, the DB allow_list overrides the merged AllowIDList to enforce the token's resource scoping consistently across all permissions.

Source from the content-addressed store, hash-verified

334// unchanged. Otherwise, the DB allow_list overrides the merged AllowIDList to
335// enforce the token's resource scoping consistently across all permissions.
336type APIKeyScopeSet struct {
337 Scopes APIKeyScopes
338 AllowList AllowList
339}
340
341var _ rbac.ExpandableScope = APIKeyScopeSet{}
342

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected