Skip to content

feat: add multiple API key scopes support with granular permissions#19015

Closed
ThomasK33 wants to merge 1 commit into
thomask33/07-15-fix_oauth2_allow_custom_uri_schemes_without_reverse_domain_notation_for_native_appsfrom
thomask33/07-19-feat_add_multiple_api_key_scopes_support_with_granular_permissions
Closed

feat: add multiple API key scopes support with granular permissions#19015
ThomasK33 wants to merge 1 commit into
thomask33/07-15-fix_oauth2_allow_custom_uri_schemes_without_reverse_domain_notation_for_native_appsfrom
thomask33/07-19-feat_add_multiple_api_key_scopes_support_with_granular_permissions

Conversation

@ThomasK33
Copy link
Copy Markdown
Member

Change-Id: I5857fd833f8114d53f575b9fa48a8e5e7dbfdb2c
Signed-off-by: Thomas Kosiewski tk@coder.com

Comment thread coderd/rbac/scopes.go
Comment on lines +177 to +187
Site: Permissions(map[string][]policy.Action{
ResourceWorkspace.Type: {policy.ActionRead, policy.ActionCreate, policy.ActionUpdate, policy.ActionDelete},
}),
Org: map[string][]Permission{
ResourceWorkspace.Type: {
{ResourceType: ResourceWorkspace.Type, Action: policy.ActionRead},
{ResourceType: ResourceWorkspace.Type, Action: policy.ActionCreate},
{ResourceType: ResourceWorkspace.Type, Action: policy.ActionUpdate},
{ResourceType: ResourceWorkspace.Type, Action: policy.ActionDelete},
},
},
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Org level does not make sense in Scope. Just keep it all at the site level.
Remove the org permissions here and the others

@github-actions github-actions Bot added the stale This issue is like stale bread. label Jul 31, 2025
@github-actions github-actions Bot closed this Aug 3, 2025
Change-Id: I5857fd833f8114d53f575b9fa48a8e5e7dbfdb2c
Signed-off-by: Thomas Kosiewski <tk@coder.com>
@ThomasK33 ThomasK33 removed the stale This issue is like stale bread. label Aug 12, 2025
@ThomasK33 ThomasK33 assigned Emyrk and unassigned ThomasK33 Aug 12, 2025
@ThomasK33 ThomasK33 reopened this Aug 12, 2025
@ThomasK33 ThomasK33 force-pushed the thomask33/07-19-feat_add_multiple_api_key_scopes_support_with_granular_permissions branch from 7d68b72 to f7d7de0 Compare August 12, 2025 16:34
@ThomasK33 ThomasK33 force-pushed the thomask33/07-15-fix_oauth2_allow_custom_uri_schemes_without_reverse_domain_notation_for_native_apps branch from 99e7a7b to c2346ff Compare August 12, 2025 16:34
@github-actions github-actions Bot added the stale This issue is like stale bread. label Aug 20, 2025
@github-actions github-actions Bot closed this Aug 24, 2025
@Emyrk Emyrk reopened this Aug 24, 2025
@github-actions github-actions Bot removed the stale This issue is like stale bread. label Aug 25, 2025
@github-actions github-actions Bot added the stale This issue is like stale bread. label Sep 1, 2025
@github-actions github-actions Bot closed this Sep 5, 2025
@ThomasK33 ThomasK33 deleted the thomask33/07-19-feat_add_multiple_api_key_scopes_support_with_granular_permissions branch September 15, 2025 07:52
@ThomasK33 ThomasK33 restored the thomask33/07-19-feat_add_multiple_api_key_scopes_support_with_granular_permissions branch September 15, 2025 07:53
@Emyrk Emyrk reopened this Oct 6, 2025
@ThomasK33 ThomasK33 closed this Oct 10, 2025
@github-actions github-actions Bot locked and limited conversation to collaborators Oct 10, 2025
@github-actions github-actions Bot deleted the thomask33/07-19-feat_add_multiple_api_key_scopes_support_with_granular_permissions branch February 13, 2026 00:13
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