René's URL Explorer Experiment


Title: Scoped tokens can't read or activate dormant workspaces · Issue #32192 · coder/coder · GitHub

Open Graph Title: Scoped tokens can't read or activate dormant workspaces · Issue #32192 · coder/coder

X Title: Scoped tokens can't read or activate dormant workspaces · Issue #32192 · coder/coder

Description: Found while checking the VS Code extension's OAuth scopes against v2.38.0 (coder/vscode-coder#1168). A dormant workspace's RBAC object is workspace_dormant (Workspace.RBACObject in coderd/database/modelmethods.go), but no scope a token c...

Open Graph Description: Found while checking the VS Code extension's OAuth scopes against v2.38.0 (coder/vscode-coder#1168). A dormant workspace's RBAC object is workspace_dormant (Workspace.RBACObject in coderd/database/...

X Description: Found while checking the VS Code extension's OAuth scopes against v2.38.0 (coder/vscode-coder#1168). A dormant workspace's RBAC object is workspace_dormant (Workspace.RBACObject in coderd/d...

Opengraph URL: https://github.com/coder/coder/issues/32192

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Scoped tokens can't read or activate dormant workspaces","articleBody":"Found while checking the VS Code extension's OAuth scopes against v2.38.0 (coder/vscode-coder#1168).\n\nA dormant workspace's RBAC object is `workspace_dormant` (`Workspace.RBACObject` in `coderd/database/modelmethods.go`), but no scope a token can request covers that type:\n\n- The `coder:workspaces.*` composites grant only `workspace` (`compositePerms` in `coderd/rbac/scopes.go`).\n- `workspace_dormant:*` is internal. Requesting it fails with `API key scope \"workspace_dormant:update\" is internal and cannot be requested by a token`.\n\nSo once a workspace is dormant, its owner's scoped token gets 404 for both `GET /api/v2/workspaces/{id}` and `PUT /api/v2/workspaces/{id}/dormant`. Only `coder:all` works. The same user's password session activates the workspace (200), so OAuth clients can't do what the dashboard does.\n\n**Repro**\n\n1. As an admin, mark a member's workspace dormant: `PUT /api/v2/workspaces/{id}/dormant` with `{\"dormant\": true}`.\n2. As the member, create a token with `coder:workspaces.operate coder:workspaces.access workspace:create workspace:update user:read`.\n3. With that token, call `GET /api/v2/workspaces/{id}` and `PUT /api/v2/workspaces/{id}/dormant` with `{\"dormant\": false}`. Both return 404.\n\n**Suggested fix**\n\nGrant the dormant type next to the workspace type in `coder:workspaces.operate`, which already grants `read` and `update` on workspaces:\n\n```go\n\"coder:workspaces.operate\": {\n\tResourceTemplate.Type:           {policy.ActionRead},\n\tResourceWorkspace.Type:          {policy.ActionWorkspaceStop, policy.ActionWorkspaceStart, policy.ActionRead, policy.ActionUpdate},\n\tResourceWorkspaceDormant.Type:   {policy.ActionRead, policy.ActionUpdate},\n\tResourceOrganizationMember.Type: {policy.ActionRead},\n},\n```\n\nAlternatively, add `workspace_dormant:read` and `workspace_dormant:update` to `externalLowLevel` in `coderd/rbac/scopes_catalog.go`.\n","author":{"url":"https://github.com/EhabY","@type":"Person","name":"EhabY"},"datePublished":"2026-11-13T18:48:58Z","url":"https://github.com/coder/coder/issues/32192"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:1c03b2c7-f833-0795-36bd-8be9653f7e69
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idA626:14ECB:B6F115:E9F546:6B00F969
html-safe-nonce8c8c2a50e7c4265642def36626b2b7b25adb1f614a15834079ff64ab3a799c06
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNjI2OjE0RUNCOkI2RjExNTpFOUY1NDY6NkIwMEY5NjkiLCJ2aXNpdG9yX2lkIjoiNTkzNjM4MDg1MDU5MjYxMDY2NSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac8ab5f4310c4bf515c61e6e832b22bea15fbbb2d025c5b1b8515320a286c81928
hovercard-subject-tagissue:6377851355
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/coder/coder/32192/issue_layout
twitter:imagehttps://opengraph.githubassets.com/7b44f0dd7a841fbf3aedaf8e9fe37a1d945d3e34a41fdada315bb6767da4f1a0/coder/coder/issues/32192
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/7b44f0dd7a841fbf3aedaf8e9fe37a1d945d3e34a41fdada315bb6767da4f1a0/coder/coder/issues/32192
og:image:altFound while checking the VS Code extension's OAuth scopes against v2.38.0 (coder/vscode-coder#1168). A dormant workspace's RBAC object is workspace_dormant (Workspace.RBACObject in coderd/database/...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameEhabY
hostnamegithub.com
expected-hostnamegithub.com
Nonee208d86428ec00a57ade75058166297440e8128a01e5287c31a53dc042bbf187
turbo-cache-controlno-preview
go-importgithub.com/coder/coder git https://github.com/coder/coder.git
octolytics-dimension-user_id95932066
octolytics-dimension-user_logincoder
octolytics-dimension-repository_id440752086
octolytics-dimension-repository_nwocoder/coder
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id440752086
octolytics-dimension-repository_network_root_nwocoder/coder
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release7dafd017fb7809a839c443dba08622af38e63c09
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/coder/coder/issues/32192#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcoder%2Fcoder%2Fissues%2F32192
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcoder%2Fcoder%2Fissues%2F32192
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=coder%2Fcoder
Reloadhttps://github.com/coder/coder/issues/32192
Reloadhttps://github.com/coder/coder/issues/32192
Reloadhttps://github.com/coder/coder/issues/32192
coderhttps://github.com/coder
coderhttps://github.com/coder/coder
Codehttps://github.com/coder/coder
Issues320 (320)https://github.com/coder/coder/issues
Pull requests468 (468)https://github.com/coder/coder/pulls
Discussionshttps://github.com/coder/coder/discussions
Actionshttps://github.com/coder/coder/actions
Projectshttps://github.com/coder/coder/projects
Security and quality49 (49)https://github.com/coder/coder/security
Insightshttps://github.com/coder/coder/insights
https://github.com/coder/coder
New issuehttps://github.com/login?return_to=https://github.com/coder/coder/issues/32192
New issuehttps://github.com/login?return_to=https://github.com/coder/coder/issues/32192
Scoped tokens can't read or activate dormant workspaceshttps://github.com/coder/coder/issues/32192#top
https://github.com/EhabY
EhabYhttps://github.com/EhabY
on Nov 13, 2026https://github.com/coder/coder/issues/32192#issue-6377851355
coder/vscode-coder#1168https://github.com/coder/vscode-coder/pull/1168
https://github.com/apps/linear-code
linear-codehttps://github.com/apps/linear-code
on Nov 13, 2026https://github.com/coder/coder/issues/32192#issuecomment-6862014829
Linear Codehttps://linear.app
ENG-3540https://linear.app/codercom/issue/ENG-3540
Sign up for freehttps://github.com/signup?return_to=https://github.com/coder/coder/issues/32192
Sign in to commenthttps://github.com/login?return_to=https://github.com/coder/coder/issues/32192
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.