Title: Share `coder_app`s and ports with specific users and groups (consolidate with workspace sharing) · Issue #13361 · coder/coder · GitHub
Open Graph Title: Share `coder_app`s and ports with specific users and groups (consolidate with workspace sharing) · Issue #13361 · coder/coder
X Title: Share `coder_app`s and ports with specific users and groups (consolidate with workspace sharing) · Issue #13361 · coder/coder
Description: Currently, coder_apps can be shared with either all authenticated users on a deployment or publicly. This allows users to expose services or demo work across teams, but does not provide sufficient RBAC control for most scenarios. Resourc...
Open Graph Description: Currently, coder_apps can be shared with either all authenticated users on a deployment or publicly. This allows users to expose services or demo work across teams, but does not provide sufficient ...
X Description: Currently, coder_apps can be shared with either all authenticated users on a deployment or publicly. This allows users to expose services or demo work across teams, but does not provide sufficient ...
Opengraph URL: https://github.com/coder/coder/issues/13361
X: @github
Domain: github.com
IPv4 address: 140.82.114.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Share `coder_app`s and ports with specific users and groups (consolidate with workspace sharing)","articleBody":"Currently, [`coder_app`](\u003chttps://registry.terraform.io/providers/coder/coder/latest/docs/resources/app>)s can be [shared](\u003chttps://registry.terraform.io/providers/coder/coder/latest/docs/resources/app#share>) with either all authenticated users on a deployment or publicly. This allows users to expose services or demo work across teams, but does not provide sufficient RBAC control for most scenarios.\n\nResource separation is team-based in most deployments, and exposing ports widely across the deployment supersedes this isolation pattern. For example, a data science team will want to share Jupyter notebooks with teammates, but not expose the sensitive data to all users. This challenge is especially apparent as customers scale to multiple templates, groups and organizations.\n\nTo remedy this, we should add new sharing scope (e.g. `group`, `template`, `organization`) to `coder_app`s and sharable ports.\n\n~~User-to-user sharing is not in the scope of this work as it further convoludes resource access. For that discussion, see our [Shared workspaces thread](\u003chttps://github.com/coder/coder/issues/2425>).~~ See the update below.\n\n## Update (Nov 2026): consolidate with workspace sharing\n\nSince this was filed, [workspace sharing](\u003chttps://coder.com/docs/user-guides/shared-workspaces>) shipped (#2425) and `organization` was added as a port share level (#18251). That leaves us with two sharing models and two UIs:\n\n* **Workspace sharing**: share the whole workspace with specific users and groups. This gives SSH, terminal, and full workspace access.\n* **Port and app sharing**: fixed levels only (`owner`, `organization`, `authenticated`, `public`).\n\nThe most common ask is in between: share one port or app with specific users or groups, without giving access to the whole workspace. Today you have to share too widely (`organization`/`authenticated`) or give too much access (workspace sharing). Security teams push back on both.\n\nWe should combine these into one sharing interface instead of building a second, separate group picker:\n\n* Use the workspace sharing user and group picker for ports and apps too.\n* Let a user share one port or app with specific users and/or groups, without SSH, terminal, or other workspace access.\n* Keep the current share levels as options in the same UI.\n* Store these grants in the database like workspace ACLs, not in Terraform, so renaming or deleting a group does not break templates.\n\nThis also covers \"app-only\" workspace sharing requests, such as letting PR reviewers open a running app without full workspace access.\n\nOpen question: access for people who are **not** Coder users, gated by an external IdP and not using a seat. That is bigger than this issue. It may be covered by usage-based licensing or tracked as a follow-up.\n\n## Related\n\n* #29740: policies that limit which groups a user can share workspaces with. The same policies should apply to port and app sharing once this lands.\n\n*Updated by Coder Agents on behalf of @bpmct.*","author":{"url":"https://github.com/stirby","@type":"Person","name":"stirby"},"datePublished":"2024-05-24T16:00:50Z","url":"https://github.com/coder/coder/issues/13361"}
| 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:69f33771-1fa5-c079-ddab-ea9baf8a2223 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C116:22033E:6E2FEA:94ED78:6B04445D |
| html-safe-nonce | 59a6026b6de350859dacd6d0fbd62dd0ecc608c60a36c4bfe50908c7bcc39302 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMTE2OjIyMDMzRTo2RTJGRUE6OTRFRDc4OjZCMDQ0NDVEIiwidmlzaXRvcl9pZCI6IjQwNTg5Njg2Njc0NzA0NDc3MDkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | b0573f3ee9896e57dacac66343bca9ca75e9bc75bb84bd78109952a395952c65 |
| hovercard-subject-tag | issue:2315746280 |
| 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/13361/issue_layout |
| twitter:image | https://opengraph.githubassets.com/6d432d7f18f9f778a93bd1a4c32d2d709695cdcdb8d74c17ac12168f60f9d4da/coder/coder/issues/13361 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/6d432d7f18f9f778a93bd1a4c32d2d709695cdcdb8d74c17ac12168f60f9d4da/coder/coder/issues/13361 |
| og:image:alt | Currently, coder_apps can be shared with either all authenticated users on a deployment or publicly. This allows users to expose services or demo work across teams, but does not provide sufficient ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | stirby |
| hostname | github.com |
| expected-hostname | github.com |
| None | d4495c3631faba668036f176d1f5946901c5172efd73a6edb984029e7d4f8e46 |
| 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 | 9ac4337fb7c6a5846cdfdb1a04f154d3c33ebc77 |
| 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