Skip to content

feat: scope allow_list to include resource_type#19748

Merged
Emyrk merged 6 commits into
mainfrom
stevenmasley/better_allow_list
Sep 17, 2025
Merged

feat: scope allow_list to include resource_type#19748
Emyrk merged 6 commits into
mainfrom
stevenmasley/better_allow_list

Conversation

@Emyrk

@Emyrk Emyrk commented Sep 9, 2025

Copy link
Copy Markdown
Member

This feature allows the allow_list in the scopes to specify the type of a resource as well. So this is now possible:

allowList = [
  // Only access to this specific workspace
  {"type":"workspace", "id":"<uuid>"},
  // But all templates
  {"type":"template", "id":"*"},
]

This was added in support of custom scopes, primarily for AI agents. There is a need to add a scope that restricts an API key to accessing a specific workspace. With this, we can exhaustively enumerate the other resources required for functionality.

Example:


allowList = [
  // Only access to this specific workspace
  {"type":"workspace", "id":"<uuid>"},
  // Leave the rest of the permissions
  {"type":"template", "id":"*"},
  {"type":"user", "id":"*"},
  {"type":"organization", "id":"*"}, 
  {"type":"group", "id":"*"},
  // ... etc 
]

This is unfortunate that the list has to be exhaustive.

@github-actions github-actions Bot added the stale This issue is like stale bread. label Sep 17, 2025
@Emyrk Emyrk marked this pull request as ready for review September 17, 2025 13:26
@Emyrk Emyrk merged commit 679179f into main Sep 17, 2025
31 checks passed
@Emyrk Emyrk deleted the stevenmasley/better_allow_list branch September 17, 2025 13:32
@github-actions github-actions Bot locked and limited conversation to collaborators Sep 17, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

stale This issue is like stale bread.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants