Title: Document recommended approach to secrets + change templates · Issue #1967 · coder/coder · GitHub
Open Graph Title: Document recommended approach to secrets + change templates · Issue #1967 · coder/coder
X Title: Document recommended approach to secrets + change templates · Issue #1967 · coder/coder
Description: What is your suggestion? Our example Terraform templates for Google and AWS are designed so that cloud provider credentials are passed in via parameters. In contrast, the standard practice for Terraform is that the execution environment ...
Open Graph Description: What is your suggestion? Our example Terraform templates for Google and AWS are designed so that cloud provider credentials are passed in via parameters. In contrast, the standard practice for Terr...
X Description: What is your suggestion? Our example Terraform templates for Google and AWS are designed so that cloud provider credentials are passed in via parameters. In contrast, the standard practice for Terr...
Opengraph URL: https://github.com/coder/coder/issues/1967
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Document recommended approach to secrets + change templates","articleBody":"## What is your suggestion?\r\n\r\nOur example Terraform templates for Google and AWS are designed so that cloud provider credentials are passed in via parameters. In contrast, the standard practice for Terraform is that the execution environment itself is authenticated with the cloud and Terraform grabs the credentials it needs from well-known locations (environment variables, files in the user directory).\r\n\r\nWe should re-align our Terraform examples and documents to follow this pattern.\r\n\r\nIn Coder v2 parlance, the _terraform provisioner_ needs to be executed in an authenticated environment. Since we run provisionerd/provisioners in-process with coderd today, this amounts running coderd in an authenticated environment.\r\n\r\nE.g., users need to run `gcloud auth login` before they run `coder server` if they are executing locally. If they run coder in a cloud VM for managing infra in the same cloud, they don't have to do anything when starting coderd and it will use the VM's service account.\r\n\r\n## Why do you want this feature?\r\n\r\nOur current implementation results in authorization credentials for cloud infra being stored in the coder database, which means it is a high value target for attackers. It's better for us to know less and encourage end users to manage credentials in a way that doesn't introduce coder as an attack point. In particular, if you run the provisioner on a cloud-managed VM, Terraform can natively authenticate with that cloud.\r\n\r\nSecondly, some users are getting surprised they are being prompted for service account credentials when they are running `coder server` after already having authenticated. Most other software that interacts with the cloud doesn't prompt and just uses local credentials if they exist.\r\n\r\n## Are there any workarounds to get this functionality today?\r\n\r\nWrite your own template\r\n\r\n## Are you interested in submitting a PR for this?\r\n\r\nYes\r\n\r\ncc @kylecarbs \r\n","author":{"url":"https://github.com/spikecurtis","@type":"Person","name":"spikecurtis"},"datePublished":"2022-06-01T19:55:23Z","url":"https://github.com/coder/coder/issues/1967"}
| 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:4ef8c99f-0be5-8719-d36f-3c4461ed338d |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | AA96:76F02:22C363F:2C74428:6B0176A3 |
| html-safe-nonce | 956c8893dbcdb8bcb6f5dfb845cef5291ee13672db2c1a46a9e9aacb52b2855c |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBQTk2Ojc2RjAyOjIyQzM2M0Y6MkM3NDQyODo2QjAxNzZBMyIsInZpc2l0b3JfaWQiOiI3ODM2NDY1ODc4MzA3Nzk2NjQzIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 708d8773ca87ba3439bd4b219aeac2f63102d2464179441f55baf86f940ec789 |
| hovercard-subject-tag | issue:1256901487 |
| 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/1967/issue_layout |
| twitter:image | https://opengraph.githubassets.com/54f23bb1b652b47a4f9ec4094a9e6f19ff6c6c1e8b28ff4ce017ec3b9b51c58c/coder/coder/issues/1967 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/54f23bb1b652b47a4f9ec4094a9e6f19ff6c6c1e8b28ff4ce017ec3b9b51c58c/coder/coder/issues/1967 |
| og:image:alt | What is your suggestion? Our example Terraform templates for Google and AWS are designed so that cloud provider credentials are passed in via parameters. In contrast, the standard practice for Terr... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | spikecurtis |
| 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