Repository navigation
feat: implement composite API key scopes for workspaces and templates #19945
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| -- No-op: keep enum values to avoid dependency churn. | ||
| -- If strict removal is required, create a new enum type without these values, | ||
| -- cast columns, drop the old type, and rename. |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| -- Add high-level composite coder:* API key scopes | ||
| -- These values are persisted so that tokens can store coder:* names directly. | ||
| ALTER TYPE api_key_scope ADD VALUE IF NOT EXISTS 'coder:workspaces.create'; | ||
| ALTER TYPE api_key_scope ADD VALUE IF NOT EXISTS 'coder:workspaces.operate'; | ||
| ALTER TYPE api_key_scope ADD VALUE IF NOT EXISTS 'coder:workspaces.delete'; | ||
| ALTER TYPE api_key_scope ADD VALUE IF NOT EXISTS 'coder:workspaces.access'; | ||
| ALTER TYPE api_key_scope ADD VALUE IF NOT EXISTS 'coder:templates.build'; | ||
| ALTER TYPE api_key_scope ADD VALUE IF NOT EXISTS 'coder:templates.author'; | ||
| ALTER TYPE api_key_scope ADD VALUE IF NOT EXISTS 'coder:apikeys.manage_self'; |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Uh oh!
There was an error while loading. Please reload this page.