Commit 515bfd7
committed
refactor: add wildcard scope entries for API key scopes
Added resource:* wildcard entries to api_key_scope enum for all RBAC
resources, ensuring each resource has a complete set of action-specific
scopes plus a wildcard. Updated code generation scripts to synthesize
wildcards from policy.RBACPermissions and include all built-in and
composite scope names. This change ensures the database enum supports
the full set of scope names required by the RBAC system, improving
consistency between RBAC permissions and API key scopes.1 parent b48e367 commit 515bfd7
12 files changed
Lines changed: 1551 additions & 141 deletions
File tree
- coderd
- apidoc
- database
- migrations
- codersdk
- docs/reference/api
- scripts
- apikeyscopesgen
- check-scopes
- generate_api_key_scope_enum
- site/src/api
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments