GitHub grants package write access to a whole repository, not to a workflow, branch or environment. Today `ghcr.io/coder/coder`, `coder-base` and the OCI charts list coder/coder with Write, so any workflow on any branch here can request `packages: write` and overwrite a release tag with this repository's `GITHUB_TOKEN`. The `release` environment and the tag rulesets don't stop that. GHCR accepts neither App tokens nor OIDC, so the repository boundary is the only way to separate who publishes. With this change, releases push to `*-staging` packages and trigger **coder/ghcr-publisher**, a locked repository that will be the only one with Write on the public packages. Before copying a digest, it verifies three things: - this `release.yaml` attested it, - on `release/X.Y` (or `main` for an RC), with the signer being `release.yaml` at that same ref, - built from the commit the `vX.Y.Z` tag points to. It copies by digest and never moves an existing version tag. It moves `latest` only to the highest stable version. ### Changes - **release.yaml** - Images, the base image and the OCI charts are pushed to `coder-staging`, `coder-base-staging` and `chart-staging/*`. - The charts get attestations for their OCI manifest digests. The existing `.tgz` attestations don't cover those digests. - The base and image attestations no longer `continue-on-error`, because promotion depends on them. - The final image is built on the fresh base image **by digest**. - A `repository_dispatch` is sent with a `coder-ghcr-dispatch` token (`contents: write` on `ghcr-publisher` only). - The job waits until every public tag serves the expected digest, before the GitHub release is published. - `latest` is no longer built here. The separate latest SBOM asset is dropped; it described the same image. - **docker-base.yaml** - Only checks, on PRs that touch them, that `Dockerfile.base` builds for every platform. It no longer publishes, and no longer needs `packages: write`. - Non-release and local builds keep using `ghcr.io/coder/coder-base:latest`. coder/ghcr-publisher moves it to the base of each new highest stable release (roughly weekly for 2.39), instead of the Monday/Wednesday/Friday rebuild. So preview images and the `coder-preview:main` scan see Alpine updates about weekly, and a `Dockerfile.base` change reaches preview images at the next stable release. Release images always build a fresh base. - **verify-releases.md** - Releases since 2026-11-16 (#32212) are built on `release/X.Y`, so the documented `--source-ref refs/tags/vX.Y.Z` and cosign identity fail for current releases. - Checked: `gh attestation verify` on v2.39.4 fails with the tag ref and passes with `refs/heads/release/2.39`. v2.39.1 still passes with its tag. Cosign verifies v2.39.4 with the new identity. ### Review fixes (second commit set) Two independent reviews (one functional, one adversarial) found the following, now fixed: - **A writer could get a real release to attest their image.** The index was built from, and its digest read back from, mutable staging tags. A writer moving `coder-staging:vX` mid-release could get their image attested. Now every digest comes from the registry's response to our own push (`docker push`, `docker manifest push`, depot, `helm push`), the index is built from per-arch **digests**, and syft and cosign run on `image@digest`. Tested against a local registry with Docker 29: each parsed digest matches what the registry stores, and the index contains exactly the pushed children. - **Commit binding.** The provenance commit field is the dispatched branch head, not the released commit (which differs whenever an older commit is released). Each artifact now gets a release attestation (`https://coder.com/attestations/release/v1`) stating version, commit and target package, and the publisher requires it, plus an approved `release` environment on the run. - **Re-runs:** a tag an earlier attempt promoted is accepted, and the publisher keeps that build. - **Tokens:** the tagging and promotion App tokens are revoked right after use. - **Docs:** `SOURCE_REF` is now correct for RCs (checked in bash and PowerShell). Image *provenance* attestations are best-effort again, as before; the publisher relies on the release attestations instead. ### Prerequisites (all done 2026-11-22) 1. coder/ghcr-publisher#1 and coder/ghcr-publisher#2 merged (#2 checks the release attestations this PR now produces). 2. The staging packages exist (created 2026-11-20), with coder/coder **Write** and `ghcr-publisher` **Read** set under Manage Actions access: `coder-staging`, `coder-base-staging`, `chart-staging/coder`, `chart-staging/coder-provisioner`, `chart-staging/coder-ai-gateway`. 3. The `coder-ghcr-dispatch` App exists and is installed on `ghcr-publisher` only (coder/gcp#472, coder/github-org-terraform#206), and `CODER_GHCR_DISPATCH_APP_ID` and `CODER_GHCR_DISPATCH_APP_KMS_KEY` are set in the `release` environment. `coder-release-publisher` is uninstalled from `ghcr-publisher`. ### After merge - Backport to release/2.39, 2.38, 2.37, 2.34 and 2.29. Each branch runs its own `release.yaml`. - After one real release promotes successfully, switch the five public packages to coder/coder **Read** and ghcr-publisher **Write**. Only then is the overwrite path closed. Tested: - The publisher's checks against the real v2.39.4 attestations: pass on the right ref, fail on a wrong ref, wrong commit or wrong signer. - The anonymous digest lookup against live image, base and chart tags (matches crane). - actionlint and zizmor are clean. - No release has run with this yet. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
title, markdown_url
| title | markdown_url |
|---|---|
| Home | /docs.md |
Coder Workspaces
Coder Workspaces are cloud development environments defined with Terraform, connected through a secure Wireguard tunnel, and automatically shut down when not in use. Agents and developers share the same workspace infrastructure.
- Defined in Terraform: Templates describe the infrastructure for each workspace, from Amazon Elastic Compute Cloud (EC2) VMs and Kubernetes Pods to Docker containers.
- Any architecture and OS: Support ARM and x86-64 across Windows, Linux, and macOS from a single deployment.
- Managed by admins: Platform teams create and maintain templates that enforce approved images, resource limits, and security policies.
- Accessed from any IDE: Connect through VS Code, JetBrains, Cursor, a web terminal, remote desktop, or SSH.
- Automatic shutdown: Idle workspaces stop automatically to reduce cloud spend, and restart in seconds when needed.
Coder Agents
Coder Agents is a native AI coding agent built into Coder. The agent loop runs in the Coder control plane on your infrastructure, not in the workspace and not in a vendor's cloud. Developers interact with agents through the web UI or the Representational State Transfer (REST) API for programmatic and continuous integration (CI)-driven workflows.
- Self-hosted agent loop: The control plane handles planning, model calls, and tool dispatch. Workspaces have zero AI awareness.
- No API keys in workspaces: large language model (LLM) credentials stay in the control plane.
- Any model: Anthropic, OpenAI, Google, Bedrock, or self-hosted endpoints. Switching is a configuration change.
- Governance and cost controls: Centralized model approval, per-user spend limits, and audit logging.
- Open source and inspectable: The full platform is available to audit and extend.
IDE support
You can use:
-
Any Web IDE, such as
- code-server
- JetBrains Projector
- Jupyter
- And others
-
Your existing remote development environment:
-
A file sync such as Mutagen
Why remote development
Provisioning consistent development environments for a large engineering team is difficult. Each developer has preferences for operating systems, editors, and toolchains, and providing a reliable build environment across all of them is a maintenance burden. A missed step during onboarding or an unsupported local configuration can cost hours of debugging.
Remote development solves this by moving the environment off the developer's machine and into managed infrastructure. The developer's laptop becomes a portal into the actual compute where work happens. If a device is lost or replaced, access is simply revoked. No source code or credentials are stored locally.
This approach provides:
- Speed: Server-grade hardware accelerates builds, tests, and large workloads without requiring expensive local machines.
- Consistency: Infrastructure tools such as Terraform, nix, Docker, and Dev Containers produce identical environments for every developer.
- Security: Source code stays on private servers. Users and groups are managed through single sign-on (SSO) and role-based access control (RBAC).
- Compatibility: Workspaces share infrastructure configurations with staging and production, reducing configuration drift.
- Accessibility: Browser-based IDEs and remote IDE extensions let developers work from any device, including lightweight laptops, Chromebooks, and tablets.
Read more on the Coder blog, the Slack engineering blog, or from Alex Ellis at OpenFaaS.
Why Coder
The key difference between Coder and other platforms is that the entire system, agent loop, control plane, model routing, and workspace provisioning, runs on infrastructure you control.
For agents, this means platform teams can:
- Run the entire agent loop on their infrastructure, with no SaaS dependency for orchestration.
- Define Model Context Protocol (MCP) servers, skills, and system prompts centrally so every agent session starts with the same tools, policies, and context.
- Keep LLM credentials out of workspaces entirely.
- Tie every agent action to an authenticated user identity.
- Support air-gapped and restricted-network deployments with self-hosted models.
For workspaces, this means admins can:
- Support any architecture (ARM, x86-64) and operating system (Windows, Linux, macOS).
- Modify pod/container specs, such as adding disks, managing network policies, or setting/updating environment variables.
- Use VM or dedicated workspaces, developing with Kernel features (no container knowledge required).
- Enable persistent workspaces, which are like local machines, but faster and hosted by a cloud service.
Pricing
Coder is free and open source under the GNU Affero General Public License v3.0. All developer productivity features are included in the open source version. A Premium license is available for enhanced support and custom deployments.
How Coder works
Coder workspaces are represented with Terraform, but you do not need to know Terraform to get started. The Coder Registry provides production-ready templates for AWS EC2, Azure, Google Cloud, Kubernetes, and other providers.
Providers and compute environments
Workspaces can include more than just compute. Terraform can add storage buckets, secrets, sidecars, and other resources.
See the templates documentation for details.
What Coder is not
-
Coder is not an infrastructure as code (IaC) platform.
- Terraform is the first IaC provisioner in Coder, allowing Coder admins to define Terraform resources as Coder workspaces.
-
Coder is not a DevOps/CI platform.
- Coder workspaces can be configured to follow best practices for cloud-service-based workloads, but Coder is not responsible for how you define or deploy the software you write.
-
Coder is not an online IDE.
- Coder supports common editors, such as VS Code, vim, and JetBrains, all over HTTPS or SSH.
-
Coder is not a collaboration platform.
- You can use Git with your favorite Git platform and dedicated IDE extensions for pull requests, code reviews, and pair programming.
-
Coder is not a SaaS/fully-managed offering.
- Coder is a self-hosted solution. You must host Coder in a private data center or on a cloud service, such as AWS, Azure, or GCP.

