Title: allow sharing a coder app or a port with specfic coder users · Issue #11201 · coder/coder · GitHub
Open Graph Title: allow sharing a coder app or a port with specfic coder users · Issue #11201 · coder/coder
X Title: allow sharing a coder app or a port with specfic coder users · Issue #11201 · coder/coder
Description: Context Currently, we have three options for sharing a coder_app. share (String) Determines the "level" which the application is shared at. Valid levels are "owner" (default), "authenticated" and "public". Level "owner" disables sharing ...
Open Graph Description: Context Currently, we have three options for sharing a coder_app. share (String) Determines the "level" which the application is shared at. Valid levels are "owner" (default), "authenticated" and "...
X Description: Context Currently, we have three options for sharing a coder_app. share (String) Determines the "level" which the application is shared at. Valid levels are "owner" (default), &...
Opengraph URL: https://github.com/coder/coder/issues/11201
X: @github
Domain: github.com
IPv4 address: 140.82.114.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"allow sharing a coder app or a port with specfic coder users","articleBody":"## Context\r\n\r\nCurrently, we have three options for sharing a [`coder_app`](https://registry.terraform.io/providers/coder/coder/latest/docs/resources/app).\r\n\r\n> [`share`](https://registry.terraform.io/providers/coder/coder/latest/docs/resources/app#share) (String) Determines the \"level\" which the application is shared at. Valid levels are \"owner\" (default), \"authenticated\" and \"public\". Level \"owner\" disables sharing on the app, so only the workspace owner can access it. Level \"authenticated\" shares the app with all authenticated users. Level \"public\" shares it with any user, including unauthenticated users. Permitted application sharing levels can be configured site-wide via a flag on coder server (Enterprise only).\r\n\r\nI think the authenticated permission is too broad, and most users would not wish to expose their workspace to everyone in the organization. \r\n\r\n## Suggestion\r\n\r\nAllow exposing apps to a single user by specifying the target `username`.\r\n\r\n### Proposal 1\r\n\r\nThis can be achieved by setting `share = \"matifali\"` in the [`coder_app`](https://registry.terraform.io/providers/coder/coder/latest/docs/resources/app) resource.\r\n\r\nA template admin can configure it as a [`coder_parameter`](https://registry.terraform.io/providers/coder/coder/latest/docs/data-sources/parameter), and the user can configure it while creating or updating their workspace.\r\n\r\n```hcl\r\ndata \"coder_parameter\" \"share_code_server\" {\r\n name = \"share_code_server\"\r\n display_name = \"Share code-server\"\r\n description = \"Sharing code-server with user: e.g matifali, bpmct\"\r\n type = \"string\"\r\n mutable = true\r\n default = \"\"\r\n}\r\n\r\nresource \"coder_app\" \"code-server\" {\r\n count = local.code-server-count\r\n agent_id = coder_agent.main.id\r\n display_name = \"VS Code Web\"\r\n slug = \"code-server\"\r\n url = \"http://localhost:13337\"\r\n icon = \"/icon/code.svg\"\r\n subdomain = true\r\n share = data.coder_parameter.share_code_server.value == \"\" ? \"owner\" : data.coder_parameter.share_code_server.value\r\n}\r\n```\r\nThis should then share this coder_app with the username specified for the `share` property. \r\n\r\n---\r\n### Proposal 2\r\n\r\nAllow doing this from the workspace page without any template admins, and it could be disabled/enabled deployment-wide using a flag e.g., `CODER_DISBALE_SHARING_CODER_APPS=false/true`\r\nThis could be done along with #10908 \r\n\r\ncc: @sharkymark and @coder/pms for commnets","author":{"url":"https://github.com/matifali","@type":"Person","name":"matifali"},"datePublished":"2023-12-14T09:13:56Z","url":"https://github.com/coder/coder/issues/11201"}
| 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:4fd8beec-776d-c038-9b86-5b2641401356 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DC42:1F60EA:21BD42:2F4513:6B0437B9 |
| html-safe-nonce | 71340f58a75d821ae186a3aad5ca0dfe9bff74975eb33cb90e4e9fd20c6046ae |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEQzQyOjFGNjBFQToyMUJENDI6MkY0NTEzOjZCMDQzN0I5IiwidmlzaXRvcl9pZCI6IjQzNzE4NzE5MDg0NTU3OTA1MjIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | e1c7a299b15cc996889cdd1d6bc8bb9d19f9463184b351d0f1cd188cfd494bc5 |
| hovercard-subject-tag | issue:2041267372 |
| 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/11201/issue_layout |
| twitter:image | https://opengraph.githubassets.com/dcf3532f736ed3b2aa3d80784ad42d7b4ba4894ebe1863823f63a2e7061d0717/coder/coder/issues/11201 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/dcf3532f736ed3b2aa3d80784ad42d7b4ba4894ebe1863823f63a2e7061d0717/coder/coder/issues/11201 |
| og:image:alt | Context Currently, we have three options for sharing a coder_app. share (String) Determines the "level" which the application is shared at. Valid levels are "owner" (default), "authenticated" and "... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | matifali |
| 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