Title: Simplify identification of orphaned resources with better workspace ID · Issue #3048 · coder/coder · GitHub
Open Graph Title: Simplify identification of orphaned resources with better workspace ID · Issue #3048 · coder/coder
X Title: Simplify identification of orphaned resources with better workspace ID · Issue #3048 · coder/coder
Description: Currently, the workspace ID is generated from a UUID. As an infrastructure admin, occasionally I have a workspace that fails to delete or the state is otherwise corrupted. In such cases, I may want to use a script to delete the orphaned ...
Open Graph Description: Currently, the workspace ID is generated from a UUID. As an infrastructure admin, occasionally I have a workspace that fails to delete or the state is otherwise corrupted. In such cases, I may want...
X Description: Currently, the workspace ID is generated from a UUID. As an infrastructure admin, occasionally I have a workspace that fails to delete or the state is otherwise corrupted. In such cases, I may want...
Opengraph URL: https://github.com/coder/coder/issues/3048
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Simplify identification of orphaned resources with better workspace ID","articleBody":"Currently, the workspace ID is generated from a UUID.\r\n\r\nAs an infrastructure admin, occasionally I have a workspace that fails to delete or the state is otherwise corrupted. In such cases, I may want to use a script to delete the orphaned resources. Since the workspace ID should be used in the persistent resource ID (see https://github.com/coder/coder/issues/3000#issuecomment-1188359307), we should include some identifying information in the workspace ID.\r\n\r\nHere's an example of a possible format:\r\n\r\n- template ID fragment: the first 8 hex characters of the template ID\r\n- user ID fragment: the first 8 hex characters of the user ID\r\n- random: 10 random hexadecimal chars (40 bits of entropy)\r\n\r\nThis leads to an ID that looks like:\r\n\r\n`abababab-cdcdcdcd-efefefefefefefefefefefefef`\r\n\r\nWhich would have a 50% chance of collision if there were 1 million workspaces under the same template and same user.\r\n\r\nWhoever implements this should run the birthday problem calculations as there's only a few bits of entropy in the template ID and user ID. ","author":{"url":"https://github.com/ammario","@type":"Person","name":"ammario"},"datePublished":"2022-07-19T17:57:48Z","url":"https://github.com/coder/coder/issues/3048"}
| react-profiling | 0 |
| react-import-map | react,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-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:1f4031b0-c8a1-56f1-7fc6-7c09e2065749 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D1EA:F7C4C:20D1DE6:2BE93B2:6B018B01 |
| html-safe-nonce | 42218fd3c6b5b30f4a030232dd06b6692daaa032fef2eba4d40da19b4e5f2884 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMUVBOkY3QzRDOjIwRDFERTY6MkJFOTNCMjo2QjAxOEIwMSIsInZpc2l0b3JfaWQiOiI4MDE3MTM4ODQ0NDU5Njk4OTQ1IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 10954739b5f8c8e103500bfced50b3d39b2e7b91c7cbe4fdfdcc348d822550ee |
| hovercard-subject-tag | issue:1309863969 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/coder/coder/3048/issue_layout |
| twitter:image | https://opengraph.githubassets.com/edc6a7c255cd882b0ba47043f01e859fe32e491e85419f118aeb83e3030fde2a/coder/coder/issues/3048 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/edc6a7c255cd882b0ba47043f01e859fe32e491e85419f118aeb83e3030fde2a/coder/coder/issues/3048 |
| og:image:alt | Currently, the workspace ID is generated from a UUID. As an infrastructure admin, occasionally I have a workspace that fails to delete or the state is otherwise corrupted. In such cases, I may want... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | ammario |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| turbo-cache-control | no-preview |
| go-import | github.com/coder/coder git https://github.com/coder/coder.git |
| octolytics-dimension-user_id | 95932066 |
| octolytics-dimension-user_login | coder |
| octolytics-dimension-repository_id | 440752086 |
| octolytics-dimension-repository_nwo | coder/coder |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 440752086 |
| octolytics-dimension-repository_network_root_nwo | coder/coder |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 8c77c9e8439031ad54c75a250694842892f693e1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width