Builds on #30782, which is merged; the branch now merges `main`. Adds `Coder.LatinAbbreviations`, a Vale rule that enforces [Latin abbreviations](https://github.com/coder/coder/blob/main/docs/.style/style-guide/accessibility-and-inclusion.md#latin-abbreviations). - Suggests "for example", "that is", and "and so on" for `e.g.`, `i.e.`, and `etc.`, including `eg.`, `ie.`, and a missing final period (`e.g`). - Severity: `suggestion`. Scope: `docs/**` except `docs/.style/style-guide/**`, limited to paragraphs, lists, headings, and blockquotes. Table cells and code are skipped. - Baseline: 170 findings in 91 files. The brief estimated 148. - Cleanup: 153 findings fixed across 81 hand-written pages, 0 left in linted pages. The count is lower than the original 158 because other PRs on `main` already rewrote or removed some of the lines, and `parameters.md` was deleted on `main`. - `vs.` and `et al.` aren't flagged. Commits: 1. `docs(docs): use English forms of Latin abbreviations` 2. `feat(docs/.style): enable Coder.LatinAbbreviations Vale rule` Generated pages: `.vale.ini` skips `docs/reference/{api,cli}/*.md` and `docs/admin/setup/configuration-reference.md` for this rule, as it does for `Coder.UnitSpacing`. Their prose comes from CLI flag help text and Swagger comments in Go source, and `make gen` rewrites them, so a hand edit fails the `gen` check (an earlier revision of this PR edited `configuration-reference.md` and failed `gen` for that reason). Cleaning them means editing Go and regenerating the help golden files and API docs, which is left for a follow-up. Linear: DOCS-450 <details> <summary>Decision log</summary> - `extends: substitution`, so the message names the replacement: "Consider 'for example' instead of 'e.g.'". - `scope: [paragraph, list, heading, blockquote]`. The single scope `paragraph` skips list items, blockquotes, and headings, so all four are listed. Table cells have their own scope and stay excluded. - Explicit `[Ee]` and `[Ii]` classes with `ignorecase: false`, so sentence-initial `E.g.,` still matches but the browser name `IE.` doesn't. - `eg.` and `ie.` require the trailing period so ordinary words and file extensions stay quiet. - Cleanup rules, applied by script and then reviewed line by line: - `e.g.` and `i.e.` become "for example," and "that is," (capitalized at the start of a sentence), with a comma added when the original had none. - `etc.` becomes "and so on", with the sentence-ending period kept when `etc.` closed the sentence. - Lines inside table rows, fenced blocks, and code spans are untouched, so are the style guide and the generated pages. - Hard-wrapped lines keep their wrapping, and CRLF files keep CRLF. - The rest of the Vale output is unchanged: the per-rule counts for every other rule match the pre-cleanup run. Test cases (fixtures under `/tmp/latin-test/`, not committed), run with LF and CRLF line endings: - Flagged (15 each): `e.g.,` in a paragraph, `i.e.,`, `etc.` at the end of a sentence and before a comma, `eg.`, `ie.`, `e.g` and `i.e` without the final period, `E.g.,`, `I.e.,`, `Etc.`, a blockquote, a list item, a numbered item, and a heading. - Not flagged: a table row with `e.g.,`, `i.e.,`, and `etc.`, code spans, a fenced block, "for example", "that is", "and so on", `IE.`, `genre`, `series`, `egg`, `tie`, `etcetera`, `vs.`, `et al.`. - Known edge case: a path-like token such as `path/i.e/x` outside code matches. It doesn't occur in the corpus. Checks: - `vale --output=line docs/`: 0 `Coder.LatinAbbreviations` findings. - `go run ./scripts/styleclaims` passes. - The pre-commit-light hook passes on both commits. </details> *Generated by [Coder Agents](https://coder.com/docs/ai-coder/agents) on behalf of @nickvigilante.*
5.9 KiB
title
| title |
|---|
| Shared workspaces |
Multiple users can securely connect to a single Coder workspace for programming and debugging.
Features
Workspace sharing is available to all Coder users by default, but platform admins with a Premium subscription can choose to disable sharing within their organizations or for their entire deployment.
Owners of a workspace can grant access to other users or groups with scoped roles.
This is helpful in a number of scenarios, including:
- Developers can do ad-hoc debugging or pair programming.
- A workspace can be owned by a group of users for QA, on-call rotations, or shared staging.
- AI workflows where an agent prepares a workspace and a developer takes over to review or finalize the work (ex. with Coder Agents.)
Get started
Workspaces can be shared through either the Coder CLI or UI.
Before you begin, ensure that you have a version of Coder with workspace sharing enabled and that your account has permission to share workspaces. This is true by default if you are an OSS user, but deployments with Premium licenses may be restricted by admins.
CLI
To share a workspace:
coder sharing share <workspace> --user alice- Shares the workspace with a single user,
alice, withusepermissions
- Shares the workspace with a single user,
coder sharing share <workspace> --user alice:admin,bob- Shares the workspace with two users -
alicewithadminpermissions, andbobwithusepermissions
- Shares the workspace with two users -
coder sharing share <workspace> --group contractor- Shares the workspace with
contractor, which is a group of users
- Shares the workspace with
To remove sharing from a workspace:
coder sharing remove <workspace> --user alice- Workspace is no longer shared with the user
alice.
- Workspace is no longer shared with the user
coder sharing remove <workspace> --group contractor- Workspace is no longer shared with the group
contractor.
- Workspace is no longer shared with the group
Important
The workspace must be restarted for the user or group removal to take effect.
To show who a workspace is shared with:
coder sharing status <workspace>
To list shared workspaces:
coder list --search shared:truecoder list --search shared_with_user:mecoder list --search shared_with_user:<user>coder list --search shared_with_group:<group>
To list the workspaces you own together with the ones shared with you, directly or through a group:
coder list --search user:me
For full command details, see coder sharing.
UI
Share your workspace
-
Open a workspace that you own.
-
Locate and select the 'Share' button.
- Add the users or groups that you want to share the workspace with. For each one, select a role.
useallows for connection via SSH and apps, the ability to start and stop the workspace, view logs and stats, and update on start when required.adminallows for all of the above, as well as the ability to rename the workspace, update at any time, and invite others with theuserole.- Neither role allows for the user to delete the workspace.
- After removing a user/group, a workspace restart is required for the removal to take effect.
Use a shared workspace
Once a workspace is shared, you can find the shared workspace by filtering for "Shared" in the Workspaces page.
Access workspace apps in shared workspaces
Sharing a workspace grants SSH and terminal access to other users. However, workspace apps like code-server may return a 404 page for non-owners depending on how the app is routed.
By default, workspace apps that don't set subdomain = true use path-based routing (for example, coder.example.com/@user/workspace/apps/code-server/).
Path-based apps share the same origin as the Coder dashboard, so Coder blocks non-owners from accessing them to prevent cross-site scripting risks.
This restriction applies even when the user has been granted access through workspace sharing.
To allow other users to access workspace apps, configure subdomain-based access:
-
Set a wildcard access URL on your deployment (for example,
CODER_WILDCARD_ACCESS_URL=*.coder.example.com). -
Set
subdomain = trueon the workspace app. For example, if you use the code-server module:module "code-server" { source = "registry.coder.com/coder/code-server/coder" agent_id = coder_agent.main.id subdomain = true # ... }
Subdomain-based apps run in an isolated browser security context, so Coder allows other users to access them without additional configuration.
Policies
There are several sharing policy levels that can be selected on a per-organization basis.
- Everyone: anybody can share their workspace with any individual or group in the same organization.
- Service Accounts Only: only workspaces owned by service accounts can be shared with any individual or group in the same organization.
- Disabled: workspaces within the organization cannot be shared.
The Disabled policy applies to every workspace in the organization. It overrides the sharing permission of any role held by a member of that organization, including Organization Admin.
The Disabled policy can also be applied to the entire deployment by setting the CODER_DISABLE_WORKSPACE_SHARING environment variable, or by using the corresponding command argument or config value.


