Skip to content

Conversation

@ThomasK33
Copy link
Member

@ThomasK33 ThomasK33 commented Sep 30, 2025

Add API Key Scope Wildcards

This PR adds wildcard API key scopes (resource:*) for all RBAC resources to ensure every resource has a matching wildcard value. It also adds all individual resource:action​ scopes to the API documentation and TypeScript definitions.

The changes include:

  • Adding a new database migration (000377) that adds wildcard API key scopes
  • Updating the API documentation to include all available scopes
  • Enhancing the scope generation scripts to include all resource wildcards
  • Updating the TypeScript definitions to match the expanded scope list

These changes make creating API keys with comprehensive permissions for specific resource types easier.

Copy link
Member Author

ThomasK33 commented Sep 30, 2025

@ThomasK33 ThomasK33 force-pushed the thomask33/09-30-add_wildcard_scope_entries_for_api_keys branch 7 times, most recently from bf0f8e8 to 515bfd7 Compare October 3, 2025 17:59
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.
@ThomasK33 ThomasK33 force-pushed the thomask33/09-30-add_wildcard_scope_entries_for_api_keys branch from 515bfd7 to 5884dbd Compare October 6, 2025 09:42
@ThomasK33 ThomasK33 merged commit b60ae0a into main Oct 6, 2025
31 checks passed
@ThomasK33 ThomasK33 deleted the thomask33/09-30-add_wildcard_scope_entries_for_api_keys branch October 6, 2025 10:08
@github-actions github-actions bot locked and limited conversation to collaborators Oct 6, 2025
@Emyrk Emyrk self-assigned this Oct 6, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants