Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 1 commit into
base: thomask33/07-15-fix_oauth2_allow_custom_uri_schemes_without_reverse_domain_notation_for_native_apps
Choose a base branch
from

Conversation

ThomasK33
Copy link
Member

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

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
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants