Title: feat: option to assign user secrets to specific templates · Issue #32177 · coder/coder · GitHub
Open Graph Title: feat: option to assign user secrets to specific templates · Issue #32177 · coder/coder
X Title: feat: option to assign user secrets to specific templates · Issue #32177 · coder/coder
Description: Version: v2.39.1 Right now user secrets are applied to all workspaces by default. It would be really useful to have an option when creating or editing a secret to choose which template(s) it should be used on. Why this is needed: Differe...
Open Graph Description: Version: v2.39.1 Right now user secrets are applied to all workspaces by default. It would be really useful to have an option when creating or editing a secret to choose which template(s) it should...
X Description: Version: v2.39.1 Right now user secrets are applied to all workspaces by default. It would be really useful to have an option when creating or editing a secret to choose which template(s) it should...
Opengraph URL: https://github.com/coder/coder/issues/32177
X: @github
Domain: github.com
IPv4 address: 140.82.113.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"feat: option to assign user secrets to specific templates","articleBody":"Version: [`v2.39.1`](https://github.com/coder/coder/commit/6e6ab2259ed4ecf42d69b24b5776317bb9ada3b9)\n\n**Right now user secrets are applied to all workspaces by default. It would be really useful to have an option when creating or editing a secret to choose which template(s) it should be used on.**\n\n### Why this is needed:\n\n- Different templates have different environments and paths. For example, for Windows based templates the file paths will be completely different compared to Linux or Docker templates, so having the same secret injected everywhere doesn't always work.\n- In general, it gives better flexibility and security to choose which workspaces get a specific secret based on the template instead of exposing every secret to all workspaces.\n\n### Expected behavior:\n**When adding/editing a secret in the UI or CLI, add a selector to either apply it to All templates (default) or pick specific templates where the secret should be injected.**","author":{"url":"https://github.com/faragm","@type":"Person","name":"faragm"},"datePublished":"2026-11-13T16:38:01Z","url":"https://github.com/coder/coder/issues/32177"}
| 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:54a985d6-024b-79a0-7efc-d8841e7728f2 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E6A4:224B43:A5B5F6:E7AC7E:6B043122 |
| html-safe-nonce | 4b1d5d77e78d7fa896613f6c394231fb1182623bc53466cce31e280ec55dc251 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNkE0OjIyNEI0MzpBNUI1RjY6RTdBQzdFOjZCMDQzMTIyIiwidmlzaXRvcl9pZCI6IjkxMDk5Mjk4MjMzNzUyMDg3MzgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | b6645d562cdf68d6ba2f0a124981555bb8e616d87ad5e24332d55d8d3588f953 |
| hovercard-subject-tag | issue:6375676474 |
| 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/32177/issue_layout |
| twitter:image | https://opengraph.githubassets.com/a6f040544c392a6041e2db05a56a6d1007a58c383f936adeea3c762a2b80840d/coder/coder/issues/32177 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/a6f040544c392a6041e2db05a56a6d1007a58c383f936adeea3c762a2b80840d/coder/coder/issues/32177 |
| og:image:alt | Version: v2.39.1 Right now user secrets are applied to all workspaces by default. It would be really useful to have an option when creating or editing a secret to choose which template(s) it should... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | faragm |
| hostname | github.com |
| expected-hostname | github.com |
| None | b7a1d2b9101496921b08579fbee988d014345aef2f5bd660d1f8c7332d81560e |
| 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 | c3dd496c3da6ea6b77e69c09279d2b81604654f1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width