## Summary Addresses 106 of the 113 conflicts between the docs and the code that the November audit of `main` found: 102 are fixed and 4 have an interim docs fix. Every finding was re-checked against the code before it was fixed. Most fixes are docs-only. Three are small code fixes where the docs described the intended behavior and the code was wrong, each in its own commits so it can be split out. No change in this PR alters template build or agent behavior. ## Changes Fixes by area (finding counts): templates 28, install 13, integrations and monitoring 13, auth and security 12, networking 11, Coder Agents 9, AI governance 7, reference 7, workspaces 6. Code fixes. Each needs a look from the code owner. If an owner prefers not to take one, drop its commits and I will change the docs to describe the current behavior instead. | Commits | Change | Risk to check | |---------|--------|---------------| | `fix: keep built-in listener defaults in packaged coder.env`, and three follow-up commits | `coder.env` comments out `CODER_HTTP_ADDRESS=` and the three `CODER_TLS_*` lines, so an untouched package install listens on `127.0.0.1:3000` as the docs say. Only the `CODER_HTTP_ADDRESS=` line changed behavior. The TLS options default to empty, so commenting them out is for consistency. The Lima examples rewrite the commented line and fail if the line is not found. A test compares every option that the file sets against the built-in defaults. | The deb and RPM packages were not built or installed. Every released package through v2.39.0 ships the empty line, and upgrades keep an existing file (`config\|noreplace`), so the upgrade pages now say how to fix it. | | `fix(cli/clilog): accept log sinks that are all disabled`, and three follow-up commits | `--log-human=/dev/null` with no other log location no longer fails with "no loggers provided". It is the documented way to disable logging. An empty location still fails with that error when no other sink is set, as before. | Behavior change: with `/dev/null`, the server and the provisioner daemon can start with no log output. | | `fix(cli): detect CODER_PROC_PRIO_MGMT by presence`, and a comment follow-up | Log line only. With the variable set to an empty value, the agent now logs that process priority management is enabled, which is what `agentexec` already does. No detection or behavior change. | Low. | Two option descriptions in `codersdk/deployment.go` are corrected, with the CLI reference, configuration reference, and golden files regenerated: the default quiet hours schedule (the max deadline is the quiet hours window on the next day that the template's autostop requirement applies) and `--experiments` (`*` opts in to the experiments marked safe, also in `enterprise/cli/provisionerdaemonstart.go`). ### Code fixes that were reverted after review Two code fixes from the first version of this PR are reverted in the branch. The net diff has no change under `agent/` or `coderd/`. The docs now describe what the code does, and both issues stay open for the owner. - **`error` merge strategy for `coder_env` (DOCS-1669).** The fix made `merge_strategy = "error"` fail whenever a name was set twice, whatever the resource order. Existing template versions that pair an `error` entry with a later `replace` or `append` entry would start to fail every build after `terraform apply`. That is a breaking change that needs its own PR and release note. The fix and its tests are in `dff8e7c6ce` and can be cherry-picked. `environment-variables.md` now says the check runs only when the `error` resource is processed. - **Nice value before the capability drop (DOCS-1687).** The fix let `coder agent-exec` apply a negative nice value by calling `setpriority` before it drops effective capabilities. The current order is deliberate: with the fix, any local process could run the agent binary with `--coder-nice=-20` when the binary has the `CAP_SYS_NICE` file capability. `process-priority.md` now says a nice value below the agent's own is not applied, and no longer tells admins to grant `CAP_SYS_NICE`. ## Not included Seven findings are left out. - DOCS-1629: covered by #31639. - DOCS-1703 and DOCS-1724: covered by #31980. - DOCS-1584, DOCS-1683, DOCS-1685, DOCS-1686: each needs an owner decision, and no neutral docs wording exists until that decision is made. The validation comment on each issue names the decision. Four fixes are interim, so their issues stay open: - DOCS-1600: the AI Gateway pages now agree that the legacy metric names are deprecated and "will be removed in a future release". The code still emits them, and its TODO names v2.37, which has shipped. The owner still needs to set the removal release. - DOCS-1689: the page now says **New Template** opens the builder only for users with the Owner role, because the page gates on read access to the deployment config. Whether Template Admins should get the builder is still open. - DOCS-1669 and DOCS-1687: docs-only for now. Refer to [Code fixes that were reverted after review](#code-fixes-that-were-reverted-after-review). ## Review notes - Claims that describe product intent and need an owner's yes: the Premium qualifier on per-organization workspace sharing (the API route has no license check, the dashboard needs multiple organizations), `organization` port sharing in OSS, the telemetry field list, and the `1-5` cron range in the prebuilds schedule example. - Not run end to end: the PostgreSQL TLS procedure on a cluster, the OpenShift and air-gapped examples, the BSD `date` and `tar` forms on macOS, the Windows command on the multiple Kubernetes clusters page, and the keep-alive script in `docs/reference/index.md` (only its comparison logic was run, against sample values). Nothing was checked on a live deployment. - Likely merge conflicts with open PRs: #31990 (`mcp-server.md`, `feature-stages.md`, `docker-in-workspaces.md`), #31982 (`workspace-management.md`), #31980 (`health-check.md`), #31977 (`manage-provisioner-jobs.md`), #31869 (`airgap.md`), #30486 (`add-envbuilder.md`), and #31326 and #31531 (`codersdk/deployment.go` and generated files). ## Testing - `make pre-commit` (gen, fmt, lint, slim build), before the PR opened and again after the review changes. - `go test` for `./cli/clilog/...`, `./codersdk/`, `./cli/` (`TestServer`, `TestAgent`, and golden files), and `./enterprise/cli/` (provisioner, server, and help golden files). `./agent/agentexec/...` and `./coderd/provisionerdserver/...` pass after the reverts. Linux only. CI covers macOS and Windows. - The `coder.env` test fails against the file on `main` and passes against the new one. It reads the file with `godotenv`, which accepts CRLF line endings. - An empty `CODER_HTTP_ADDRESS=` was confirmed end to end with a full build of the server (output below). - The new `sed` and `grep` lines in the Lima examples were run with GNU tools against the old and the new form of `coder.env`. The Lima VMs were not started. - `--log-human=/dev/null` and `CODER_LOGGING_HUMAN=` were confirmed with the same build (output below). - `coder agent-exec --coder-nice=-5 -- echo` from a full build, as a non-root user: `coder-agent: failed to adjust niceness to -5 ...: permission denied` on stderr, the command output on stdout, exit code 0. - `postgres-ssl.md` rendered with the GitHub Markdown API: two ordered lists with three and five items, where `main` has six lists. - markdownlint, the table formatter, `make lint/emdash`, `make lint/docs-html`, `make lint/docs-manifest`, `make lint/docs-redirects`, `make lint/style-claims`, and Vale on the changed lines. - A doc-check self-review of the docs diff by four independent reviewers. It found six problems, which are fixed. The accuracy and coverage lenses ran on every area. The language and structure lenses ran in full on only part of the diff. <details> <summary>Test and terminal output for the code fixes (Linux)</summary> ```console $ go test ./codersdk/ -run TestPackagedCoderEnvKeepsDefaults -count=1 -v --- PASS: TestPackagedCoderEnvKeepsDefaults (0.00s) ok github.com/coder/coder/v2/codersdk 0.071s $ go test ./cli/clilog/ -run TestBuilder -count=1 -v --- PASS: TestBuilder (0.00s) --- PASS: TestBuilder/NoSinks (0.00s) --- PASS: TestBuilder/NoSinks/JSONDevNull (0.00s) --- PASS: TestBuilder/NoSinks/StackdriverDevNull (0.00s) --- PASS: TestBuilder/NoSinks/NoConfiguration (0.00s) --- PASS: TestBuilder/NoSinks/HumanDevNull (0.00s) --- PASS: TestBuilder/WithHuman (0.00s) --- PASS: TestBuilder/WithFilter (0.00s) --- PASS: TestBuilder/WithJSON (0.00s) --- PASS: TestBuilder/Verbose (0.00s) --- PASS: TestBuilder/FromDeploymentValues (0.01s) --- PASS: TestBuilder/FromDeploymentValues/Defaults (0.00s) --- PASS: TestBuilder/FromDeploymentValues/EmptyHumanEnv (0.00s) --- PASS: TestBuilder/FromDeploymentValues/Override (0.00s) ok github.com/coder/coder/v2/cli/clilog 0.171s $ TMPDIR=$HOME/.cache/agentexec-tmp go test ./agent/agentexec/... ./coderd/provisionerdserver/... -count=1 ok github.com/coder/coder/v2/agent/agentexec 4.236s ok github.com/coder/coder/v2/coderd/provisionerdserver 2.404s # Full build of the server (go build ./cmd/coder). An empty value stops it before it connects to the database. $ CODER_HTTP_ADDRESS= coder server --postgres-url 'postgres://127.0.0.1:1/x?sslmode=disable' Encountered an error running "coder server", see "coder server --help" for more information error: TLS is disabled. Enable with --tls-enable or specify a HTTP address # With the variable unset, the server passes that check and goes on to the database. $ coder server --postgres-url 'postgres://127.0.0.1:1/x?sslmode=disable' 2026-11-13 02:19:41.901 [warn] ping postgres: retrying error="dial tcp 127.0.0.1:1: connect: connection refused" try=11 Encountered an error running "coder server", see "coder server --help" for more information error: connect to postgres: connect to postgres: unable to connect after 11 tries; last error: dial tcp 127.0.0.1:1: connect: connection refused # An empty log location with no other sink still stops the server. $ CODER_LOGGING_HUMAN= coder server --postgres-url 'postgres://127.0.0.1:1/x?sslmode=disable' Encountered an error running "coder server", see "coder server --help" for more information error: make logger: no loggers provided, use /dev/null to disable logging # /dev/null passes the logger check. The server prints no log lines and goes on to the database. $ coder server --log-human=/dev/null --postgres-url 'postgres://127.0.0.1:1/x?sslmode=disable' Encountered an error running "coder server", see "coder server --help" for more information error: connect to postgres: connect to postgres: unable to connect after 11 tries; last error: dial tcp 127.0.0.1:1: connect: connection refused ``` </details> ## Linear Fixes DOCS-1583, DOCS-1585, DOCS-1586, DOCS-1587, DOCS-1588, DOCS-1589, DOCS-1590, DOCS-1591, DOCS-1592, DOCS-1593, DOCS-1594, DOCS-1595, DOCS-1596, DOCS-1597, DOCS-1598, DOCS-1599, DOCS-1601, DOCS-1602, DOCS-1603, DOCS-1604, DOCS-1605, DOCS-1606, DOCS-1607, DOCS-1608, DOCS-1609, DOCS-1614, DOCS-1618, DOCS-1619, DOCS-1620, DOCS-1624, DOCS-1635, DOCS-1639, DOCS-1644, DOCS-1651, DOCS-1652, DOCS-1653, DOCS-1654, DOCS-1655, DOCS-1656, DOCS-1657, DOCS-1658, DOCS-1659, DOCS-1660, DOCS-1661, DOCS-1662, DOCS-1663, DOCS-1664, DOCS-1665, DOCS-1666, DOCS-1667, DOCS-1668, DOCS-1670, DOCS-1671, DOCS-1672, DOCS-1673, DOCS-1674, DOCS-1675, DOCS-1676, DOCS-1677, DOCS-1678, DOCS-1679, DOCS-1680, DOCS-1681, DOCS-1682, DOCS-1684, DOCS-1688, DOCS-1690, DOCS-1691, DOCS-1692, DOCS-1693, DOCS-1694, DOCS-1695, DOCS-1696, DOCS-1697, DOCS-1698, DOCS-1699, DOCS-1700, DOCS-1701, DOCS-1702, DOCS-1704, DOCS-1705, DOCS-1706, DOCS-1707, DOCS-1708, DOCS-1709, DOCS-1710, DOCS-1711, DOCS-1712, DOCS-1713, DOCS-1714, DOCS-1715, DOCS-1716, DOCS-1717, DOCS-1718, DOCS-1719, DOCS-1720, DOCS-1721, DOCS-1722, DOCS-1723, DOCS-1725, DOCS-1726, DOCS-1727 Part of DOCS-1600, DOCS-1689, DOCS-1669, DOCS-1687 <details> <summary>Decision log</summary> ### Scope - One PR for all findings, as agreed with the reviewer. The code fixes are separate commits so an owner can ask for any of them to move to its own PR. Nothing in the PR is a breaking change, so the title has no `!`. - A finding was skipped only when an open PR already covers it, or when every available wording would assert an undecided product behavior. - Each validation comment on the Linear issues records the evidence, the corrections to the original finding, and what was not verified. ### Docs or code - The default was a docs-only fix that describes what the code does. - A code fix was chosen when the docs describe a behavior the code plainly intended and the code change is small and testable: the packaged env file, the log sink check, and the log line for the environment variable presence check. - The `error` merge strategy and the nice value ordering started as code fixes and went back to docs-only after review. The first breaks existing template versions. The second weakens a deliberate security ordering. - The SCIM `userName` finding (DOCS-1609) took the docs path. The handler is unchanged. ### Wording choices worth a second look - `feature-stages.md` says `--experiments=*` enables only the experiments marked safe, and points to the "Get safe experiments" API. It does not list the other experiments, because the list would drift and those experiments are hidden on purpose. The `--experiments` flag help now says the same. - `agent-metadata.md` replaces the writes-per-second formula with a description of the batcher (each server replica writes one statement every 5 seconds, or sooner at 500 entries). - `extending-templates/index.md` no longer calls `startup_script` deprecated. The provider documents it as an alias for a `coder_script`. - `postgres-ssl.md` separates client verification from server verification, so the server verification steps work alone. - `rpm.md`, `upgrade.md`, and the 2.29 to 2.34 ESR upgrade page explain the empty `CODER_HTTP_ADDRESS=` line that older packages shipped, because upgrades keep the old file. The behavior changed in v2.34.0 with the serpent upgrade in #24926. - The keep-alive script in `docs/reference/index.md` reads the current deadline and skips the request when it is already later. The comparison is on text, so it applies only when the API returns a UTC timestamp, which needs the database to use the UTC time zone. Otherwise the script sets the deadline on every pass, as it did before, and the page says so. - `external-auth.md` anchors the new GitHub Enterprise regex example. The older unanchored examples on that page and on `git-providers.md` are not changed here. ### Self-review findings that were rejected - "The builder opens for Template Admins": the Templates page needs a successful deployment config read, which the Template Admin role does not have. - "Organization Admins can set AI model prices": the price write authorizes against a site-level object, which organization-scoped grants do not match. - "The provisioner chart sets no default resources": `helm/libcoder/templates/_coder.yaml` applies 2000m and 4096Mi when `coder.resources` is empty. ### Automated review, round 1 The `coder-agents-review` app left 45 findings on `8853332`. Fixed: the two reverts above, the anchored regex, the `coder.env` follow-ups (Lima examples, upgrade notes, a comment in the file, and a test that covers every option in the file), the clilog change, the two option descriptions, and the docs findings (CORS behavior, token lifetime example, keep-alive script, agent metadata, refresh token errors, `switch` form type, `dbcrypt` skip list, and a stray line in a YAML example). Declined, with the reason on each thread: - Refactoring the `agentexec` logging and renaming its log field: not related to a docs conflict. - Rewording the "process priority management not enabled (linux-only)" log message: the docs quote the message, and the wording predates this PR. - Problems in code and docs that this PR does not change (the `Capabilities` subtest, the Helm values comment, the AWS provider path in `airgap.md`, and others in the review's out-of-scope list). ### Automated review, round 2 The app left 14 new findings on `04925bd`, and accepted the three declined threads on `cli/agent.go`. All 14 are fixed. The main one: the round 1 change that removed the "no loggers provided" error went too far, because an empty log location would then start a server with no logs. The error is back for every case except `/dev/null`. Reported by the app as out of scope and not changed: the swagger annotation for `GET /api/v2/experiments/available` declares an array, but the handler returns an object with a `safe` array. Three Storybook fixtures keep the old `--experiments` description. ### Automated review, round 3 The app confirmed that all round 2 findings are fixed, and left 10 small findings on `f55cb6d` (8 P4, 2 Nit). All are fixed: the TLS condition and the release range in the `coder.env` notes, one place for the `/dev/null` rule in `clilog`, two test cases, a clearer test failure, and the CPU example in `agent-metadata.md`. ### Automated review, rounds 4 and 5 Round 4 left one P4 on `8fffb38` (name the `--trace` option in the logging note), which is fixed. Round 5 on `2ce754e` reports no new findings and says every earlier finding is fixed or closed. The app did not post an approval: it leaves its out-of-scope items and the code fixes to a human reviewer. Two threads on `cli/agent.go` stay open on purpose for the code owner. ### Doc-check review The doc-check workflow left 12 comments on `2ce754e` (10 blocking, 2 suggestions). All are fixed in `c888885`: "refer to" or "visit" in place of "see" for cross-references on the lines this PR added, the **New template** label as the dashboard shows it, one instruction per step in the server verification procedure of `postgres-ssl.md`, and two wording changes in `process-priority.md`. The `CAP_SYS_NICE` sentence keeps a short reason, which differs from the suggested text. The `coder-agents-review` app then reviewed that commit (rounds 6 and 7). Round 6 left two P4 findings, fixed in `30b2c79`: the `failed to adjust niceness` message is described once, in the troubleshooting entry, with where it appears, and the client verification steps in `postgres-ssl.md` render as one numbered list. Round 7 reports no new findings. `2a6035c` then softens one sentence from that fix, because the agent logs the stderr of devcontainer CLI commands. The app was not run again on that commit. ### Adjacent gaps found and not fixed here - `add-envbuilder.md` has the same `zip` command that `template-from-scratch.md` had. - `template-from-scratch.md` leaves the reader in `build/` after `cd $_`, before a step that runs from `template-tour`. </details> --- _Generated by Coder Agents on behalf of @nickvigilante._ --------- Co-authored-by: Ben Potter <me@bpmct.net>
1247 lines
60 KiB
Plaintext
1247 lines
60 KiB
Plaintext
mcp:
|
|
# MCP server destinations in private or reserved IP ranges are blocked by default
|
|
# for SSRF protection. This applies to OAuth2 discovery, OAuth2 token and
|
|
# revocation exchanges, and runtime MCP connections from coderd. This option
|
|
# exempts specific CIDRs.
|
|
# (default: <unset>, type: string-array)
|
|
allowed_private_cidrs: []
|
|
networking:
|
|
# The URL that users will use to access the Coder deployment.
|
|
# (default: <unset>, type: url)
|
|
accessURL:
|
|
# Specifies the wildcard hostname to use for workspace applications in the form
|
|
# "*.example.com".
|
|
# (default: <unset>, type: string)
|
|
wildcardAccessURL: ""
|
|
# Specifies the custom docs URL.
|
|
# (default: https://coder.com/docs, type: url)
|
|
docsURL: https://coder.com/docs
|
|
# Specifies whether to redirect requests that do not match the access URL host.
|
|
# (default: <unset>, type: bool)
|
|
redirectToAccessURL: false
|
|
http:
|
|
# HTTP bind address of the server. Unset to disable the HTTP endpoint.
|
|
# (default: 127.0.0.1:3000, type: string)
|
|
httpAddress: 127.0.0.1:3000
|
|
# Coder configures a Content Security Policy (CSP) to protect against XSS attacks.
|
|
# This setting allows you to add additional CSP directives, which can open the
|
|
# attack surface of the deployment. Format matches the CSP directive format, e.g.
|
|
# --additional-csp-policy="script-src https://example.com".
|
|
# (default: <unset>, type: string-array)
|
|
additionalCSPPolicy: []
|
|
# The maximum lifetime duration users can specify when creating an API token.
|
|
# (default: 876600h0m0s, type: duration)
|
|
maxTokenLifetime: 876600h0m0s
|
|
# The maximum lifetime duration administrators can specify when creating an API
|
|
# token.
|
|
# (default: 168h0m0s, type: duration)
|
|
maxAdminTokenLifetime: 168h0m0s
|
|
# The token expiry duration for browser sessions. Sessions may last longer if they
|
|
# are actively making requests, but this functionality can be disabled via
|
|
# --disable-session-expiry-refresh.
|
|
# (default: 24h0m0s, type: duration)
|
|
sessionDuration: 24h0m0s
|
|
# Disable automatic session expiry bumping due to activity. This forces all
|
|
# sessions to become invalid after the session expiry duration has been reached.
|
|
# (default: <unset>, type: bool)
|
|
disableSessionExpiryRefresh: false
|
|
# Disable password authentication. This is recommended for security purposes in
|
|
# production deployments that rely on an identity provider. This applies to all
|
|
# users, including owners. Ensure an owner can sign in through your identity
|
|
# provider before enabling this. To recover access, unset this option, restart the
|
|
# server, and use `coder server create-admin-user` if needed.
|
|
# (default: <unset>, type: bool)
|
|
disablePasswordAuth: false
|
|
# The interval in which coderd should be checking the status of workspace proxies.
|
|
# (default: 1m0s, type: duration)
|
|
proxyHealthInterval: 1m0s
|
|
# Configure TLS / HTTPS for your Coder deployment. If you're running
|
|
# Coder behind a TLS-terminating reverse proxy or are accessing Coder over a
|
|
# secure link, you can safely ignore these settings.
|
|
tls:
|
|
# HTTPS bind address of the server.
|
|
# (default: 127.0.0.1:3443, type: host:port)
|
|
address: 127.0.0.1:3443
|
|
# Whether TLS will be enabled.
|
|
# (default: <unset>, type: bool)
|
|
enable: false
|
|
# Whether HTTP requests will be redirected to the access URL (if it's a https URL
|
|
# and TLS is enabled). Requests to local IP addresses are never redirected
|
|
# regardless of this setting.
|
|
# (default: true, type: bool)
|
|
redirectHTTP: true
|
|
# Path to each certificate for TLS. It requires a PEM-encoded file. To configure
|
|
# the listener to use a CA certificate, concatenate the primary certificate and
|
|
# the CA certificate together. The primary certificate should appear first in the
|
|
# combined file.
|
|
# (default: <unset>, type: string-array)
|
|
certFiles: []
|
|
# PEM-encoded Certificate Authority file used for checking the authenticity of
|
|
# client.
|
|
# (default: <unset>, type: string)
|
|
clientCAFile: ""
|
|
# Policy the server will follow for TLS Client Authentication. Accepted values are
|
|
# "none", "request", "require-any", "verify-if-given", or "require-and-verify".
|
|
# (default: none, type: string)
|
|
clientAuth: none
|
|
# Paths to the private keys for each of the certificates. It requires a
|
|
# PEM-encoded file.
|
|
# (default: <unset>, type: string-array)
|
|
keyFiles: []
|
|
# Minimum supported version of TLS. Accepted values are "tls10", "tls11", "tls12"
|
|
# or "tls13".
|
|
# (default: tls12, type: string)
|
|
minVersion: tls12
|
|
# Path to certificate for client TLS authentication. It requires a PEM-encoded
|
|
# file.
|
|
# (default: <unset>, type: string)
|
|
clientCertFile: ""
|
|
# Path to key for client TLS authentication. It requires a PEM-encoded file.
|
|
# (default: <unset>, type: string)
|
|
clientKeyFile: ""
|
|
# Specify specific TLS ciphers that allowed to be used. See
|
|
# https://github.com/golang/go/blob/master/src/crypto/tls/cipher_suites.go#L53-L75.
|
|
# (default: <unset>, type: string-array)
|
|
tlsCiphers: []
|
|
# By default, only ciphers marked as 'secure' are allowed to be used. See
|
|
# https://github.com/golang/go/blob/master/src/crypto/tls/cipher_suites.go#L82-L95.
|
|
# (default: false, type: bool)
|
|
tlsAllowInsecureCiphers: false
|
|
# Controls if the 'Strict-Transport-Security' header is set on all static file
|
|
# responses. This header should only be set if the server is accessed via HTTPS.
|
|
# This value is the MaxAge in seconds of the header.
|
|
# (default: 0, type: int)
|
|
strictTransportSecurity: 0
|
|
# Two optional fields can be set in the Strict-Transport-Security header;
|
|
# 'includeSubDomains' and 'preload'. The 'strict-transport-security' flag must be
|
|
# set to a non-zero value for these options to be used.
|
|
# (default: <unset>, type: string-array)
|
|
strictTransportSecurityOptions: []
|
|
# Most Coder deployments never have to think about DERP because all connections
|
|
# between workspaces and users are peer-to-peer. However, when Coder cannot
|
|
# establish
|
|
# a peer to peer connection, Coder uses a distributed relay network backed by
|
|
# Tailscale and WireGuard.
|
|
derp:
|
|
# Whether to enable or disable the embedded DERP relay server.
|
|
# (default: true, type: bool)
|
|
enable: true
|
|
# Region ID to use for the embedded DERP server.
|
|
# (default: 999, type: int)
|
|
regionID: 999
|
|
# Region code to use for the embedded DERP server.
|
|
# (default: coder, type: string)
|
|
regionCode: coder
|
|
# Region name that for the embedded DERP server.
|
|
# (default: Coder Embedded Relay, type: string)
|
|
regionName: Coder Embedded Relay
|
|
# Addresses for STUN servers to establish P2P connections. It's recommended to
|
|
# have at least two STUN servers to give users the best chance of connecting P2P
|
|
# to workspaces. Each STUN server will get it's own DERP region, with region IDs
|
|
# starting at `--derp-server-region-id + 1`. Use special value 'disable' to turn
|
|
# off STUN completely.
|
|
# (default:
|
|
# stun.l.google.com:19302,stun1.l.google.com:19302,stun2.l.google.com:19302,stun3.l.google.com:19302,stun4.l.google.com:19302,
|
|
# type: string-array)
|
|
stunAddresses:
|
|
- stun.l.google.com:19302
|
|
- stun1.l.google.com:19302
|
|
- stun2.l.google.com:19302
|
|
- stun3.l.google.com:19302
|
|
- stun4.l.google.com:19302
|
|
# An HTTP URL that is accessible by other replicas to relay DERP traffic. Required
|
|
# for high availability.
|
|
# (default: <unset>, type: url)
|
|
relayURL:
|
|
# Block peer-to-peer (aka. direct) workspace connections. All workspace
|
|
# connections from the CLI will be proxied through Coder (or custom configured
|
|
# DERP servers) and will never be peer-to-peer when enabled. Workspaces may still
|
|
# reach out to STUN servers to get their address until they are restarted after
|
|
# this change has been made, but new connections will still be proxied regardless.
|
|
# (default: <unset>, type: bool)
|
|
blockDirect: false
|
|
# Force clients and agents to always use WebSocket to connect to DERP relay
|
|
# servers. By default, DERP uses `Upgrade: derp`, which may cause issues with some
|
|
# reverse proxies. Clients may automatically fallback to WebSocket if they detect
|
|
# an issue with `Upgrade: derp`, but this does not work in all situations.
|
|
# (default: <unset>, type: bool)
|
|
forceWebSockets: false
|
|
# URL to fetch a DERP mapping on startup. See:
|
|
# https://tailscale.com/kb/1118/custom-derp-servers/.
|
|
# (default: <unset>, type: string)
|
|
url: ""
|
|
# Path to read a DERP mapping from. See:
|
|
# https://tailscale.com/kb/1118/custom-derp-servers/.
|
|
# (default: <unset>, type: string)
|
|
configPath: ""
|
|
# Headers to trust for forwarding IP addresses. e.g. Cf-Connecting-Ip,
|
|
# True-Client-Ip, X-Forwarded-For.
|
|
# (default: <unset>, type: string-array)
|
|
proxyTrustedHeaders: []
|
|
# Origin addresses to respect "proxy-trusted-headers" and X-Forwarded-Host for
|
|
# subdomain app routing. e.g. 192.168.1.0/24.
|
|
# (default: <unset>, type: string-array)
|
|
proxyTrustedOrigins: []
|
|
# Controls if the 'Secure' property is set on browser session cookies.
|
|
# (default: false, type: bool)
|
|
secureAuthCookie: false
|
|
# Controls the 'SameSite' property is set on browser session cookies.
|
|
# (default: lax, type: enum[lax\|none])
|
|
sameSiteAuthCookie: lax
|
|
# Recommended to be enabled. Enables `__Host-` prefix for cookies to guarantee
|
|
# they are only set by the right domain. This change is disruptive to any
|
|
# workspaces built before release 2.31, requiring a workspace restart.
|
|
# (default: false, type: bool)
|
|
hostPrefixCookie: false
|
|
# Whether Coder only allows connections to workspaces via the browser.
|
|
# (default: <unset>, type: bool)
|
|
browserOnly: false
|
|
# Configure network clustering. Coder Servers in the primary region form a cluster
|
|
# by
|
|
# communicating directly.
|
|
cluster:
|
|
# Hostname or (more commonly) IP to reach this replica for clustering.
|
|
# (default: <unset>, type: string)
|
|
clusterHost: ""
|
|
# Interval to poll for scheduled workspace builds.
|
|
# (default: 1m0s, type: duration)
|
|
autobuildPollInterval: 1m0s
|
|
# Interval to poll for hung and pending jobs and automatically terminate them.
|
|
# (default: 1m0s, type: duration)
|
|
jobHangDetectorInterval: 1m0s
|
|
introspection:
|
|
statsCollection:
|
|
usageStats:
|
|
# Enable the collection of application and workspace usage along with the
|
|
# associated API endpoints and the template insights page. Disabling this will
|
|
# also disable traffic and connection insights in the deployment stats shown to
|
|
# admins in the bottom bar of the Coder UI, and will prevent Prometheus collection
|
|
# of these values.
|
|
# (default: true, type: bool)
|
|
enable: true
|
|
prometheus:
|
|
# Serve prometheus metrics on the address defined by prometheus address.
|
|
# (default: <unset>, type: bool)
|
|
enable: false
|
|
# The bind address to serve prometheus metrics.
|
|
# (default: 127.0.0.1:2112, type: host:port)
|
|
address: 127.0.0.1:2112
|
|
# Collect agent stats (may increase charges for metrics storage).
|
|
# (default: <unset>, type: bool)
|
|
collect_agent_stats: false
|
|
# When collecting agent stats, aggregate metrics by a given set of comma-separated
|
|
# labels to reduce cardinality. Accepted values are agent_name, template_name,
|
|
# username, workspace_name.
|
|
# (default: agent_name,template_name,username,workspace_name, type: string-array)
|
|
aggregate_agent_stats_by:
|
|
- agent_name
|
|
- template_name
|
|
- username
|
|
- workspace_name
|
|
# Collect database query metrics (may increase charges for metrics storage). If
|
|
# set to false, a reduced set of database metrics are still collected.
|
|
# (default: false, type: bool)
|
|
collect_db_metrics: false
|
|
# Collect per-workspace stats (may increase charges for metrics storage).
|
|
# (default: false, type: bool)
|
|
collect_workspace_stats: false
|
|
pprof:
|
|
# Serve pprof metrics on the address defined by pprof address.
|
|
# (default: <unset>, type: bool)
|
|
enable: false
|
|
# The bind address to serve pprof.
|
|
# (default: 127.0.0.1:6060, type: host:port)
|
|
address: 127.0.0.1:6060
|
|
tracing:
|
|
# Whether application tracing data is collected. It exports to a backend
|
|
# configured by environment variables. See:
|
|
# https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/protocol/exporter.md.
|
|
# (default: <unset>, type: bool)
|
|
enable: false
|
|
# Enables capturing of logs as events in traces. This is useful for debugging, but
|
|
# may result in a very large amount of events being sent to the tracing backend
|
|
# which may incur significant costs.
|
|
# (default: <unset>, type: bool)
|
|
captureLogs: false
|
|
# Enables sending Go runtime traces to the local DataDog agent.
|
|
# (default: false, type: bool)
|
|
dataDog: false
|
|
logging:
|
|
# Output debug-level logs.
|
|
# (default: <unset>, type: bool)
|
|
verbose: false
|
|
# Filter debug logs by matching against a given regex. Use .* to match all debug
|
|
# logs.
|
|
# (default: <unset>, type: string-array)
|
|
filter: []
|
|
# Output human-readable logs to a given file.
|
|
# (default: /dev/stderr, type: string)
|
|
humanPath: /dev/stderr
|
|
# Output JSON logs to a given file.
|
|
# (default: <unset>, type: string)
|
|
jsonPath: ""
|
|
# Output Stackdriver compatible logs to a given file.
|
|
# (default: <unset>, type: string)
|
|
stackdriverPath: ""
|
|
# Allow administrators to enable Terraform debug output.
|
|
# (default: false, type: bool)
|
|
enableTerraformDebugMode: false
|
|
healthcheck:
|
|
# Refresh interval for healthchecks.
|
|
# (default: 10m0s, type: duration)
|
|
refresh: 10m0s
|
|
# The threshold for the database health check. If the median latency of the
|
|
# database exceeds this threshold over 5 attempts, the database is considered
|
|
# unhealthy. The default value is 15ms.
|
|
# (default: 15ms, type: duration)
|
|
thresholdDatabase: 15ms
|
|
oauth2:
|
|
github:
|
|
# Client ID for Login with GitHub.
|
|
# (default: <unset>, type: string)
|
|
clientID: ""
|
|
# Enable device flow for Login with GitHub.
|
|
# (default: false, type: bool)
|
|
deviceFlow: false
|
|
# Enable the default GitHub OAuth2 provider managed by Coder.
|
|
# (default: true, type: bool)
|
|
defaultProviderEnable: true
|
|
# Organizations the user must be a member of to Login with GitHub.
|
|
# (default: <unset>, type: string-array)
|
|
allowedOrgs: []
|
|
# Teams inside organizations the user must be a member of to Login with GitHub.
|
|
# Structured as: `<organization-name>/<team-slug>`.
|
|
# (default: <unset>, type: string-array)
|
|
allowedTeams: []
|
|
# Whether new users can sign up with GitHub.
|
|
# (default: <unset>, type: bool)
|
|
allowSignups: false
|
|
# Allow all logins, setting this option means allowed orgs and teams must be
|
|
# empty.
|
|
# (default: <unset>, type: bool)
|
|
allowEveryone: false
|
|
# Base URL of a GitHub Enterprise deployment to use for Login with GitHub.
|
|
# (default: <unset>, type: string)
|
|
enterpriseBaseURL: ""
|
|
provider:
|
|
# Enable the OAuth 2.1 authorization server, which lets external applications
|
|
# (such as MCP clients) obtain tokens for Coder on behalf of users. Disabled by
|
|
# default. When disabled, the OAuth2 endpoints and discovery documents return 404.
|
|
# (default: false, type: bool)
|
|
enable: false
|
|
oidc:
|
|
# Whether new users can sign up with OIDC.
|
|
# (default: true, type: bool)
|
|
allowSignups: true
|
|
# Client ID to use for Login with OIDC.
|
|
# (default: <unset>, type: string)
|
|
clientID: ""
|
|
# Pem encoded RSA private key to use for oauth2 PKI/JWT authorization. This can be
|
|
# used instead of oidc-client-secret if your IDP supports it.
|
|
# (default: <unset>, type: string)
|
|
oidcClientKeyFile: ""
|
|
# Pem encoded certificate file to use for oauth2 PKI/JWT authorization. The public
|
|
# certificate that accompanies oidc-client-key-file. A standard x509 certificate
|
|
# is expected.
|
|
# (default: <unset>, type: string)
|
|
oidcClientCertFile: ""
|
|
# Email domains that clients logging in with OIDC must match.
|
|
# (default: <unset>, type: string-array)
|
|
emailDomain: []
|
|
# Issuer URL to use for Login with OIDC.
|
|
# (default: <unset>, type: string)
|
|
issuerURL: ""
|
|
# Scopes to grant when authenticating with OIDC.
|
|
# (default: openid,profile,email, type: string-array)
|
|
scopes:
|
|
- openid
|
|
- profile
|
|
- email
|
|
# Ignore the email_verified claim from the upstream provider.
|
|
# (default: <unset>, type: bool)
|
|
ignoreEmailVerified: false
|
|
# OIDC claim field to use as the username.
|
|
# (default: preferred_username, type: string)
|
|
usernameField: preferred_username
|
|
# OIDC claim field to use as the name.
|
|
# (default: name, type: string)
|
|
nameField: name
|
|
# OIDC claim field to use as the email.
|
|
# (default: email, type: string)
|
|
emailField: email
|
|
# OIDC auth URL parameters to pass to the upstream provider.
|
|
# (default: {"access_type": "offline"}, type: struct[map[string]string])
|
|
authURLParams:
|
|
access_type: offline
|
|
# Ignore the userinfo endpoint and only use the ID token for user information.
|
|
# (default: false, type: bool)
|
|
ignoreUserInfo: false
|
|
# Source supplemental user claims from the 'access_token'. This assumes the token
|
|
# is a jwt signed by the same issuer as the id_token. Using this requires setting
|
|
# 'oidc-ignore-userinfo' to true. This setting is not compliant with the OIDC
|
|
# specification and is not recommended. Use at your own risk.
|
|
# (default: false, type: bool)
|
|
accessTokenClaims: false
|
|
# This field must be set if using the organization sync feature. Set to the claim
|
|
# to be used for organizations.
|
|
# (default: <unset>, type: string)
|
|
organizationField: ""
|
|
# If set to true, users will always be added to the default organization. If
|
|
# organization sync is enabled, then the default org is always added to the user's
|
|
# set of expectedorganizations.
|
|
# (default: true, type: bool)
|
|
organizationAssignDefault: true
|
|
# A map of OIDC claims and the organizations in Coder it should map to. This is
|
|
# required because organization IDs must be used within Coder.
|
|
# (default: {}, type: struct[map[string][]uuid.UUID])
|
|
organizationMapping: {}
|
|
# This field must be set if using the group sync feature and the scope name is not
|
|
# 'groups'. Set to the claim to be used for groups.
|
|
# (default: <unset>, type: string)
|
|
groupField: ""
|
|
# A map of OIDC group IDs and the group in Coder it should map to. This is useful
|
|
# for when OIDC providers only return group IDs.
|
|
# (default: {}, type: struct[map[string]string])
|
|
groupMapping: {}
|
|
# Automatically creates missing groups from a user's groups claim.
|
|
# (default: false, type: bool)
|
|
enableGroupAutoCreate: false
|
|
# If provided any group name not matching the regex is ignored. This allows for
|
|
# filtering out groups that are not needed. This filter is applied after the group
|
|
# mapping.
|
|
# (default: .*, type: regexp)
|
|
groupRegexFilter: .*
|
|
# If provided any group name not in the list will not be allowed to authenticate.
|
|
# This allows for restricting access to a specific set of groups. This filter is
|
|
# applied after the group mapping and before the regex filter.
|
|
# (default: <unset>, type: string-array)
|
|
groupAllowed: []
|
|
# This field must be set if using the user roles sync feature. Set this to the
|
|
# name of the claim used to store the user's role. The roles should be sent as an
|
|
# array of strings.
|
|
# (default: <unset>, type: string)
|
|
userRoleField: ""
|
|
# A map of the OIDC passed in user roles and the groups in Coder it should map to.
|
|
# This is useful if the group names do not match. If mapped to the empty string,
|
|
# the role will ignored.
|
|
# (default: {}, type: struct[map[string][]string])
|
|
userRoleMapping: {}
|
|
# If user role sync is enabled, these roles are always included for all
|
|
# authenticated users. The 'member' role is always assigned.
|
|
# (default: <unset>, type: string-array)
|
|
userRoleDefault: []
|
|
# The text to show on the OpenID Connect sign in button.
|
|
# (default: OpenID Connect, type: string)
|
|
signInText: OpenID Connect
|
|
# URL pointing to the icon to use on the OpenID Connect login button.
|
|
# (default: <unset>, type: url)
|
|
iconURL:
|
|
# The custom text to show on the error page informing about disabled OIDC signups.
|
|
# Markdown format is supported.
|
|
# (default: <unset>, type: string)
|
|
signupsDisabledText: ""
|
|
# OIDC issuer urls must match in the request, the id_token 'iss' claim, and in the
|
|
# well-known configuration. This flag disables that requirement, and can lead to
|
|
# an insecure OIDC configuration. It is not recommended to use this flag.
|
|
# (default: <unset>, type: bool)
|
|
dangerousSkipIssuerChecks: false
|
|
# Optional override of the default redirect url which uses the deployment's access
|
|
# url. Useful in situations where a deployment has more than 1 domain. Using this
|
|
# setting can also break OIDC, so use with caution.
|
|
# (default: <unset>, type: url)
|
|
oidc-redirect-url:
|
|
# OIDC based users require the IdP issuer and subject in the claims to be static.
|
|
# If a new provider is configured, this option is required to be 'true'. It will
|
|
# reset any existing users to the previous provider, and match by email on their
|
|
# next login.
|
|
# (default: true, type: bool)
|
|
oidc-repair-links: true
|
|
# INSECURE: Allow OIDC logins to fall back to email-based matching when the
|
|
# linked_id (issuer+subject) does not match an existing user link. Required for
|
|
# IdP brokers that do not issue a stable 'sub' for the same user across
|
|
# connections. The existing user_link's linked_id is preserved on fallback. Only
|
|
# enable if you understand and accept the risk.
|
|
# (default: <unset>, type: bool)
|
|
dangerousOidcEmailFallback: false
|
|
# An allowlist of hostnames that may be used as the host of the OIDC redirect_uri.
|
|
# When set, the redirect_uri sent to the OIDC provider is built from the incoming
|
|
# request's Host header (validated against this list) instead of from access-url.
|
|
# Every listed host must also be registered as a valid redirect URI in the OIDC
|
|
# provider. Ignored when oidc-redirect-url is set.
|
|
# (default: <unset>, type: string-array)
|
|
oidcRedirectAllowedHosts: []
|
|
# Telemetry is critical to our ability to improve Coder. We strip all personal
|
|
# information before sending data to our servers. Only disable telemetry
|
|
# when required by your organization's security policy.
|
|
telemetry:
|
|
# Whether telemetry is enabled or not. Coder collects anonymized usage data to
|
|
# help improve our product.
|
|
# (default: false, type: bool)
|
|
enable: false
|
|
# URL to send telemetry.
|
|
# (default: https://telemetry.coder.com, type: url)
|
|
url: https://telemetry.coder.com
|
|
# Tune the behavior of the provisioner, which is responsible for creating,
|
|
# updating, and deleting workspace resources.
|
|
provisioning:
|
|
# Number of provisioner daemons to create on start. If builds are stuck in queued
|
|
# state for a long time, consider increasing this.
|
|
# (default: 3, type: int)
|
|
daemons: 3
|
|
# The supported job types for the built-in provisioners. By default, this is only
|
|
# the terraform type. Supported types: terraform,echo.
|
|
# (default: terraform, type: string-array)
|
|
daemonTypes:
|
|
- terraform
|
|
# Deprecated and ignored.
|
|
# (default: 1s, type: duration)
|
|
daemonPollInterval: 1s
|
|
# Deprecated and ignored.
|
|
# (default: 100ms, type: duration)
|
|
daemonPollJitter: 100ms
|
|
# Time to force cancel provisioning tasks that are stuck.
|
|
# (default: 10m0s, type: duration)
|
|
forceCancelInterval: 10m0s
|
|
# Disable the reuse of Terraform modules and the provider lock file cached at
|
|
# template import for all templates. Modules are re-downloaded on every workspace
|
|
# build. Individual templates cannot opt back in.
|
|
# (default: false, type: bool)
|
|
disableModuleCache: false
|
|
# Evaluate every resource in a template when rendering dynamic parameters, instead
|
|
# of only the parameter, preset, and tag blocks and what they reference. Slower,
|
|
# and only needed if a template renders incorrectly with the default.
|
|
# (default: false, type: bool)
|
|
dynamicParametersFullEvaluation: false
|
|
# Enable one or more experiments. These are not ready for production. Separate
|
|
# multiple experiments with commas, or enter '*' to opt-in to the experiments that
|
|
# are marked safe.
|
|
# (default: <unset>, type: string-array)
|
|
experiments: []
|
|
# Periodically check for new releases of Coder and inform the owner. The check is
|
|
# performed once per day.
|
|
# (default: false, type: bool)
|
|
updateCheck: false
|
|
# The default lifetime duration for API tokens. This value is used when creating a
|
|
# token without specifying a duration, such as when authenticating the CLI or an
|
|
# IDE plugin.
|
|
# (default: 168h0m0s, type: duration)
|
|
defaultTokenLifetime: 168h0m0s
|
|
# The default lifetime duration for OAuth2 refresh tokens. This controls how long
|
|
# refresh tokens remain valid after issuance or rotation.
|
|
# (default: 720h0m0s, type: duration)
|
|
defaultOAuthRefreshLifetime: 720h0m0s
|
|
# Expose the swagger endpoint via /swagger.
|
|
# (default: <unset>, type: bool)
|
|
enableSwagger: false
|
|
# The directory to cache temporary files. If unspecified and $CACHE_DIRECTORY is
|
|
# set, it will be used for compatibility with systemd. This directory is NOT safe
|
|
# to be configured as a shared directory across coderd/provisionerd replicas.
|
|
# (default: [cache dir], type: string)
|
|
cacheDir: [cache dir]
|
|
# Controls whether Coder data, including built-in Postgres, will be stored in a
|
|
# temporary directory and deleted when the server is stopped.
|
|
# (default: <unset>, type: bool)
|
|
ephemeralDeployment: false
|
|
# Type of auth to use when connecting to postgres. For AWS RDS, using IAM
|
|
# authentication (awsiamrds) is recommended.
|
|
# (default: password, type: enum[password\|awsiamrds])
|
|
pgAuth: password
|
|
# Maximum number of open connections to the database. Defaults to 10.
|
|
# (default: 10, type: int)
|
|
pgConnMaxOpen: 10
|
|
# Maximum number of idle connections to the database. Set to "auto" (the default)
|
|
# to use max open / 3. Value must be greater or equal to 0; 0 means explicitly no
|
|
# idle connections.
|
|
# (default: auto, type: string)
|
|
pgConnMaxIdle: auto
|
|
# A URL to an external Terms of Service that must be accepted by users when
|
|
# logging in.
|
|
# (default: <unset>, type: string)
|
|
termsOfServiceURL: ""
|
|
# The algorithm to use for generating ssh keys. Accepted values are "ed25519",
|
|
# "ecdsa", or "rsa4096".
|
|
# (default: ed25519, type: string)
|
|
sshKeygenAlgorithm: ed25519
|
|
# URL to use for agent troubleshooting when not set in the template.
|
|
# (default: https://coder.com/docs/admin/templates/troubleshooting, type: url)
|
|
agentFallbackTroubleshootingURL: https://coder.com/docs/admin/templates/troubleshooting
|
|
# Use the legacy SCIM implementation instead of the SCIM 2.0 handler. This is
|
|
# provided for backward compatibility for existing users.
|
|
# (default: true, type: bool)
|
|
scimUseLegacy: true
|
|
# Disable workspace apps that are not served from subdomains. Path-based apps can
|
|
# make requests to the Coder API and pose a security risk when the workspace
|
|
# serves malicious JavaScript. This is recommended for security purposes if a
|
|
# --wildcard-access-url is configured.
|
|
# (default: <unset>, type: bool)
|
|
disablePathApps: false
|
|
# Remove the permission for the 'owner' role to have workspace execution on all
|
|
# workspaces. This prevents the 'owner' from ssh, apps, and terminal access based
|
|
# on the 'owner' role. They still have their user permissions to access their own
|
|
# workspaces.
|
|
# (default: <unset>, type: bool)
|
|
disableOwnerWorkspaceAccess: false
|
|
# Disable workspace sharing. Workspace ACL checking is disabled and only owners
|
|
# can have ssh, apps and terminal access to workspaces. Access based on the
|
|
# 'owner' role is also allowed unless disabled via
|
|
# --disable-owner-workspace-access.
|
|
# (default: <unset>, type: bool)
|
|
disableWorkspaceSharing: false
|
|
# Disable chat and chat project sharing. Existing shares stop granting access and
|
|
# new shares are rejected. Owners keep access to their own chats and projects, and
|
|
# administrators keep only the access their roles grant.
|
|
# (default: <unset>, type: bool)
|
|
disableChatSharing: false
|
|
# Disable caller-supplied tools in chats. Chat requests that include
|
|
# unsafe_dynamic_tools or inline_mcp_servers are rejected, and existing chats run
|
|
# without their dynamic tools and inline MCP servers.
|
|
# (default: <unset>, type: bool)
|
|
disableChatCallerSuppliedTools: false
|
|
# Stop persisting workspace agent context snapshots (instructions, skills, and MCP
|
|
# state used for pinned chat context). When set, coderd rejects agent context
|
|
# pushes as unimplemented and agents stop sending them; chats cannot pin workspace
|
|
# context. Use this to shed the database write load of context sync on large
|
|
# deployments.
|
|
# (default: <unset>, type: bool)
|
|
disableWorkspaceAgentContextSync: false
|
|
# Disable Coder-managed file path delivery for user secrets. Stored paths remain
|
|
# until users clear them and resume if this setting is turned off.
|
|
# (default: <unset>, type: bool)
|
|
disableUserSecretFilePath: false
|
|
# These options change the behavior of how clients interact with the Coder.
|
|
# Clients include the Coder CLI, Coder Desktop, IDE extensions, and the web UI.
|
|
client:
|
|
# Deprecated: use workspace-hostname-suffix instead. The SSH deployment prefix is
|
|
# used in the Host of the ssh config.
|
|
# (default: coder., type: string)
|
|
sshHostnamePrefix: coder.
|
|
# Workspace hostnames use this suffix in SSH config and Coder Connect on Coder
|
|
# Desktop. By default it is coder, resulting in names like myworkspace.coder. The
|
|
# suffix must not start with a dot, and must not contain spaces, newlines, or glob
|
|
# characters (* and ?).
|
|
# (default: coder, type: string)
|
|
workspaceHostnameSuffix: coder
|
|
# These SSH config options will override the default SSH config options. Provide
|
|
# options in "key=value" or "key value" format separated by commas. Using this
|
|
# incorrectly can break SSH to your deployment, use cautiously. The following
|
|
# options are not allowed: Host, Match, Include, ProxyCommand, ProxyJump,
|
|
# LocalCommand, PermitLocalCommand, RemoteCommand, KnownHostsCommand,
|
|
# PKCS11Provider, SecurityKeyProvider, SmartcardDevice, XAuthLocation. Option
|
|
# values must not contain newline, carriage return, or NUL characters.
|
|
# (default: <unset>, type: string-array)
|
|
sshConfigOptions: []
|
|
# The upgrade message to display to users when a client/server mismatch is
|
|
# detected. By default it instructs users to update using 'curl -fsSL
|
|
# https://coder.com/install.sh | sh'.
|
|
# (default: <unset>, type: string)
|
|
cliUpgradeMessage: ""
|
|
# The renderer to use when opening a web terminal. Valid values are 'canvas',
|
|
# 'webgl', or 'dom'.
|
|
# (default: canvas, type: string)
|
|
webTerminalRenderer: canvas
|
|
# Support links to display in the top right drop down menu.
|
|
# (default: <unset>, type: struct[[]codersdk.LinkConfig])
|
|
supportLinks: []
|
|
# External Authentication providers.
|
|
# (default: <unset>, type: struct[[]codersdk.ExternalAuthConfig])
|
|
externalAuthProviders: []
|
|
# Enable the default GitHub external auth provider managed by Coder.
|
|
# (default: true, type: bool)
|
|
externalAuthGithubDefaultProviderEnable: true
|
|
# Hostname of HTTPS server that runs https://github.com/coder/wgtunnel. By
|
|
# default, this will pick the best available wgtunnel server hosted by Coder. e.g.
|
|
# "tunnel.example.com".
|
|
# (default: <unset>, type: string)
|
|
wgtunnelHost: ""
|
|
# Allow users to set quiet hours schedules each day for workspaces to avoid
|
|
# workspaces stopping during the day due to template scheduling.
|
|
userQuietHoursSchedule:
|
|
# The default daily cron schedule applied to users that haven't set a custom quiet
|
|
# hours schedule themselves. The quiet hours schedule determines when workspaces
|
|
# will be force stopped due to the template's autostop requirement, and will set
|
|
# the max deadline to the start of the user's quiet hours window on the next day
|
|
# that the template's autostop requirement applies (or default). The format is the
|
|
# same as the standard cron format, but the day-of-month, month and day-of-week
|
|
# must be *. Only one hour and minute can be specified (ranges or comma separated
|
|
# values are not supported).
|
|
# (default: CRON_TZ=UTC 0 0 * * *, type: string)
|
|
defaultQuietHoursSchedule: CRON_TZ=UTC 0 0 * * *
|
|
# Allow users to set their own quiet hours schedule for workspaces to stop in
|
|
# (depending on template autostop requirement settings). If false, users can't
|
|
# change their quiet hours schedule and the site default is always used.
|
|
# (default: true, type: bool)
|
|
allowCustomQuietHours: true
|
|
# Deprecated: use the per-template "Allow workspace renames" setting instead.
|
|
# While set, it force-enables renames for every template in the deployment.
|
|
# WARNING: Renaming a workspace can cause Terraform resources that depend on the
|
|
# workspace name to be destroyed and recreated, potentially causing data loss.
|
|
# (default: false, type: bool)
|
|
allowWorkspaceRenames: false
|
|
# Configure how emails are sent.
|
|
email:
|
|
# The sender's address to use.
|
|
# (default: <unset>, type: string)
|
|
from: ""
|
|
# The intermediary SMTP host through which emails are sent.
|
|
# (default: <unset>, type: string)
|
|
smarthost: ""
|
|
# The hostname identifying the SMTP server.
|
|
# (default: localhost, type: string)
|
|
hello: localhost
|
|
# Force a TLS connection to the configured SMTP smarthost.
|
|
# (default: false, type: bool)
|
|
forceTLS: false
|
|
# Configure SMTP authentication options.
|
|
emailAuth:
|
|
# Identity to use with PLAIN authentication.
|
|
# (default: <unset>, type: string)
|
|
identity: ""
|
|
# Username to use with PLAIN/LOGIN authentication.
|
|
# (default: <unset>, type: string)
|
|
username: ""
|
|
# File from which to load password for use with PLAIN/LOGIN authentication.
|
|
# (default: <unset>, type: string)
|
|
passwordFile: ""
|
|
# Configure TLS for your SMTP server target.
|
|
emailTLS:
|
|
# Enable STARTTLS to upgrade insecure SMTP connections using TLS.
|
|
# (default: <unset>, type: bool)
|
|
startTLS: false
|
|
# Server name to verify against the target certificate.
|
|
# (default: <unset>, type: string)
|
|
serverName: ""
|
|
# Skip verification of the target server's certificate (insecure).
|
|
# (default: <unset>, type: bool)
|
|
insecureSkipVerify: false
|
|
# CA certificate file to use.
|
|
# (default: <unset>, type: string)
|
|
caCertFile: ""
|
|
# Certificate file to use.
|
|
# (default: <unset>, type: string)
|
|
certFile: ""
|
|
# Certificate key file to use.
|
|
# (default: <unset>, type: string)
|
|
certKeyFile: ""
|
|
# Configure how notifications are processed and delivered.
|
|
notifications:
|
|
# Which delivery method to use (available options: 'smtp', 'webhook').
|
|
# (default: smtp, type: string)
|
|
method: smtp
|
|
# How long to wait while a notification is being sent before giving up.
|
|
# (default: 1m0s, type: duration)
|
|
dispatchTimeout: 1m0s
|
|
# Configure how email notifications are sent.
|
|
email:
|
|
# The sender's address to use.
|
|
# (default: <unset>, type: string)
|
|
from: ""
|
|
# The intermediary SMTP host through which emails are sent.
|
|
# (default: <unset>, type: string)
|
|
smarthost: ""
|
|
# The hostname identifying the SMTP server.
|
|
# (default: <unset>, type: string)
|
|
hello: localhost
|
|
# Force a TLS connection to the configured SMTP smarthost.
|
|
# (default: <unset>, type: bool)
|
|
forceTLS: false
|
|
# Configure SMTP authentication options.
|
|
emailAuth:
|
|
# Identity to use with PLAIN authentication.
|
|
# (default: <unset>, type: string)
|
|
identity: ""
|
|
# Username to use with PLAIN/LOGIN authentication.
|
|
# (default: <unset>, type: string)
|
|
username: ""
|
|
# File from which to load password for use with PLAIN/LOGIN authentication.
|
|
# (default: <unset>, type: string)
|
|
passwordFile: ""
|
|
# Configure TLS for your SMTP server target.
|
|
emailTLS:
|
|
# Enable STARTTLS to upgrade insecure SMTP connections using TLS.
|
|
# (default: <unset>, type: bool)
|
|
startTLS: false
|
|
# Server name to verify against the target certificate.
|
|
# (default: <unset>, type: string)
|
|
serverName: ""
|
|
# Skip verification of the target server's certificate (insecure).
|
|
# (default: <unset>, type: bool)
|
|
insecureSkipVerify: false
|
|
# CA certificate file to use.
|
|
# (default: <unset>, type: string)
|
|
caCertFile: ""
|
|
# Certificate file to use.
|
|
# (default: <unset>, type: string)
|
|
certFile: ""
|
|
# Certificate key file to use.
|
|
# (default: <unset>, type: string)
|
|
certKeyFile: ""
|
|
webhook:
|
|
# The endpoint to which to send webhooks.
|
|
# (default: <unset>, type: url)
|
|
endpoint:
|
|
inbox:
|
|
# Enable Coder Inbox.
|
|
# (default: true, type: bool)
|
|
enabled: true
|
|
# The upper limit of attempts to send a notification.
|
|
# (default: 5, type: int)
|
|
maxSendAttempts: 5
|
|
# The minimum time between retries.
|
|
# (default: 5m0s, type: duration)
|
|
retryInterval: 5m0s
|
|
# The notifications system buffers message updates in memory to ease pressure on
|
|
# the database. This option controls how often it synchronizes its state with the
|
|
# database. The shorter this value the lower the change of state inconsistency in
|
|
# a non-graceful shutdown - but it also increases load on the database. It is
|
|
# recommended to keep this option at its default value.
|
|
# (default: 2s, type: duration)
|
|
storeSyncInterval: 2s
|
|
# The notifications system buffers message updates in memory to ease pressure on
|
|
# the database. This option controls how many updates are kept in memory. The
|
|
# lower this value the lower the change of state inconsistency in a non-graceful
|
|
# shutdown - but it also increases load on the database. It is recommended to keep
|
|
# this option at its default value.
|
|
# (default: 50, type: int)
|
|
storeSyncBufferSize: 50
|
|
# How long a notifier should lease a message. This is effectively how long a
|
|
# notification is 'owned' by a notifier, and once this period expires it will be
|
|
# available for lease by another notifier. Leasing is important in order for
|
|
# multiple running notifiers to not pick the same messages to deliver
|
|
# concurrently. This lease period will only expire if a notifier shuts down
|
|
# ungracefully; a dispatch of the notification releases the lease.
|
|
# (default: 2m0s, type: duration)
|
|
leasePeriod: 2m0s
|
|
# How many notifications a notifier should lease per fetch interval.
|
|
# (default: 20, type: int)
|
|
leaseCount: 20
|
|
# How often to query the database for queued notifications.
|
|
# (default: 15s, type: duration)
|
|
fetchInterval: 15s
|
|
# Configure how workspace prebuilds behave.
|
|
workspace_prebuilds:
|
|
# How often to reconcile workspace prebuilds state.
|
|
# (default: 1m0s, type: duration)
|
|
reconciliation_interval: 1m0s
|
|
# Interval to increase reconciliation backoff by when prebuilds fail, after which
|
|
# a retry attempt is made.
|
|
# (default: 1m0s, type: duration)
|
|
reconciliation_backoff_interval: 1m0s
|
|
# Interval to look back to determine number of failed prebuilds, which influences
|
|
# backoff.
|
|
# (default: 1h0m0s, type: duration)
|
|
reconciliation_backoff_lookback_period: 1h0m0s
|
|
# Maximum number of consecutive failed prebuilds before a preset hits the hard
|
|
# limit; disabled when set to zero.
|
|
# (default: 3, type: int)
|
|
failure_hard_limit: 3
|
|
# Configure the background chat processing daemon.
|
|
chat:
|
|
# How many pending chats a worker should acquire per polling cycle.
|
|
# (default: 10, type: int)
|
|
acquireBatchSize: 10
|
|
# Force chat debug logging on for every chat, bypassing the runtime admin and user
|
|
# opt-in settings.
|
|
# (default: false, type: bool)
|
|
debugLoggingEnabled: false
|
|
# HTTPS URL to receive chat agent lifecycle hook events (plain HTTP requires
|
|
# --chat-hook-allow-insecure). Hooks are disabled when unset. Requires the
|
|
# agent-lifecycle-hooks experiment.
|
|
# (default: <unset>, type: url)
|
|
hookURL:
|
|
# Maximum time to wait for a chat agent lifecycle hook response.
|
|
# (default: 1.5s, type: duration)
|
|
hookTimeout: 1.5s
|
|
# Whether to dispatch chat agent lifecycle hooks when a hook URL is configured.
|
|
# Requires the agent-lifecycle-hooks experiment.
|
|
# (default: true, type: bool)
|
|
hookEnabled: true
|
|
# Allow the chat hook URL to use plain HTTP for any host. Plain HTTP exposes
|
|
# sensitive chat data and lets an on-path attacker forge hook responses that
|
|
# control agent execution, so only enable this on a network you fully trust.
|
|
# (default: false, type: bool)
|
|
hookAllowInsecure: false
|
|
# Maximum number of steps in a chat turn. Each model response is one step;
|
|
# compaction summaries, advisor calls, and retried attempts do not count. A turn
|
|
# that reaches the limit runs the tools from the last response, then ends without
|
|
# an error. Must be at least 1.
|
|
# (default: 1200, type: int)
|
|
maxStepsPerTurn: 1200
|
|
# Maximum number of consecutive retries after a model generation fails with a
|
|
# transient error, such as a rate limit, an overloaded provider, or a stream that
|
|
# stops sending data. The count resets after each successful step. When the
|
|
# retries run out, the chat moves to the error state and shows the provider error.
|
|
# Advisor calls and the generation of chat titles, summaries, and turn status
|
|
# labels use the same limit. Must be at least 1.
|
|
# (default: 25, type: int)
|
|
maxGenerationRetries: 25
|
|
# Maximum number of messages that can be queued in a chat. Sending a message that
|
|
# would make a full queue longer fails with HTTP 429. Must be at least 1.
|
|
# (default: 20, type: int)
|
|
maxQueuedMessagesPerChat: 20
|
|
# Maximum number of files linked to a chat, including user uploads, files the
|
|
# agent attaches, and desktop recordings and their thumbnails. Linking a file
|
|
# beyond the limit permanently deletes the chat's earliest-uploaded files, and
|
|
# earlier messages show them as expired. A message that includes more files than
|
|
# the limit is rejected with HTTP 400. Must be at least 1.
|
|
# (default: 50, type: int)
|
|
maxAttachmentsPerChat: 50
|
|
# Maximum size in bytes of the deployment system prompt, the plan mode
|
|
# instructions, and each user's custom prompt. Saving a longer prompt fails with
|
|
# HTTP 400. Lowering the limit does not affect prompts that are already saved.
|
|
# Must be at least 1.
|
|
# (default: 131072, type: int)
|
|
maxPromptBytes: 131072
|
|
# Maximum number of virtual desktop recordings that each Coder server stores at
|
|
# the same time. Each upload holds the recording and its thumbnail in memory, up
|
|
# to 110 MB. Additional recordings wait for a free slot and are discarded if none
|
|
# frees up within 90 seconds. Must be at least 1.
|
|
# (default: 25, type: int)
|
|
maxConcurrentRecordingUploads: 25
|
|
# Deprecated: AI Gateway routing is now the only routing path. Setting this value
|
|
# has no effect. This option will be removed in a future release.
|
|
# (default: true, type: bool)
|
|
aiGatewayRoutingEnabled: true
|
|
# Maximum time to wait for the next streamed part from the chat model before the
|
|
# attempt is canceled and retried. This also bounds the time to first token. Set
|
|
# to 0 to disable. Must be no more than 24h.
|
|
# (default: 10m0s, type: duration)
|
|
streamSilenceTimeout: 10m0s
|
|
aibridge:
|
|
# Deprecated: use --ai-gateway-enabled or CODER_AI_GATEWAY_ENABLED instead.
|
|
# Whether to start an in-memory aibridged instance.
|
|
# (default: true, type: bool)
|
|
enabled: true
|
|
# Deprecated: Injected MCP in AI Gateway is deprecated and will be removed in a
|
|
# future release. This option is an alias for --ai-gateway-inject-coder-mcp-tools.
|
|
# (default: false, type: bool)
|
|
inject_coder_mcp_tools: false
|
|
# Deprecated: use --ai-gateway-retention or CODER_AI_GATEWAY_RETENTION instead.
|
|
# Length of time to retain data such as interceptions and all related records
|
|
# (token, prompt, tool use).
|
|
# (default: 60d, type: duration)
|
|
retention: 1440h0m0s
|
|
# Deprecated: use --ai-gateway-max-concurrency or CODER_AI_GATEWAY_MAX_CONCURRENCY
|
|
# instead. Maximum number of concurrent AI Bridge requests per replica. Set to 0
|
|
# to disable (unlimited).
|
|
# (default: 0, type: int)
|
|
max_concurrency: 0
|
|
# Deprecated: use --ai-gateway-rate-limit or CODER_AI_GATEWAY_RATE_LIMIT instead.
|
|
# Maximum number of AI Bridge requests per second per replica. Set to 0 to disable
|
|
# (unlimited).
|
|
# (default: 0, type: int)
|
|
rate_limit: 0
|
|
# Deprecated: use --ai-gateway-structured-logging or
|
|
# CODER_AI_GATEWAY_STRUCTURED_LOGGING instead. Emit structured logs for AI Bridge
|
|
# interception records. Use this for exporting these records to external SIEM or
|
|
# observability systems.
|
|
# (default: false, type: bool)
|
|
structured_logging: false
|
|
# Deprecated: use --ai-gateway-send-actor-headers or
|
|
# CODER_AI_GATEWAY_SEND_ACTOR_HEADERS instead. Once enabled, extra headers will be
|
|
# added to upstream requests to identify the user (actor) making requests to AI
|
|
# Bridge. This is only needed if you are using a proxy between AI Bridge and an
|
|
# upstream AI provider. This will send X-Ai-Bridge-Actor-Id (the ID of the user
|
|
# making the request) and X-Ai-Bridge-Actor-Metadata-Username (their username).
|
|
# (default: false, type: bool)
|
|
send_actor_headers: false
|
|
# Deprecated: use --ai-gateway-allow-byok or CODER_AI_GATEWAY_ALLOW_BYOK instead.
|
|
# Allow users to provide their own LLM API keys or subscriptions. When disabled,
|
|
# only centralized key authentication is permitted.
|
|
# (default: true, type: bool)
|
|
allow_byok: true
|
|
# Deprecated: use --ai-gateway-circuit-breaker-enabled or
|
|
# CODER_AI_GATEWAY_CIRCUIT_BREAKER_ENABLED instead. Enable the circuit breaker to
|
|
# protect against cascading failures from upstream AI provider overload (503,
|
|
# 529).
|
|
# (default: false, type: bool)
|
|
circuit_breaker_enabled: false
|
|
# Deprecated: use --ai-gateway-circuit-breaker-failure-threshold or
|
|
# CODER_AI_GATEWAY_CIRCUIT_BREAKER_FAILURE_THRESHOLD instead. Number of
|
|
# consecutive failures that triggers the circuit breaker to open.
|
|
# (default: 5, type: int)
|
|
circuit_breaker_failure_threshold: 5
|
|
# Deprecated: use --ai-gateway-circuit-breaker-interval or
|
|
# CODER_AI_GATEWAY_CIRCUIT_BREAKER_INTERVAL instead. Cyclic period of the closed
|
|
# state for clearing internal failure counts.
|
|
# (default: 10s, type: duration)
|
|
circuit_breaker_interval: 10s
|
|
# Deprecated: use --ai-gateway-circuit-breaker-timeout or
|
|
# CODER_AI_GATEWAY_CIRCUIT_BREAKER_TIMEOUT instead. How long the circuit breaker
|
|
# stays open before transitioning to half-open state.
|
|
# (default: 30s, type: duration)
|
|
circuit_breaker_timeout: 30s
|
|
# Deprecated: use --ai-gateway-circuit-breaker-max-requests or
|
|
# CODER_AI_GATEWAY_CIRCUIT_BREAKER_MAX_REQUESTS instead. Maximum number of
|
|
# requests allowed in half-open state before deciding to close or re-open the
|
|
# circuit.
|
|
# (default: 3, type: int)
|
|
circuit_breaker_max_requests: 3
|
|
ai_gateway:
|
|
# Whether to enable AI Gateway. Use --ai-gateway-embedded-enabled to control
|
|
# whether coderd also starts an in-memory AI Gateway instance.
|
|
# (default: true, type: bool)
|
|
enabled: true
|
|
# Whether to start an in-memory AI Gateway instance inside coderd. Has no effect
|
|
# unless --ai-gateway-enabled is true. Set to false when all AI Gateway traffic is
|
|
# served by standalone AI Gateway instances. Coder Agents requires this option to
|
|
# be set to true.
|
|
# (default: true, type: bool)
|
|
embedded_enabled: true
|
|
# Deprecated: Injected MCP in AI Gateway is deprecated and will be removed in a
|
|
# future release. Whether to inject Coder's MCP tools into intercepted AI Gateway
|
|
# requests (requires CODER_OAUTH2_PROVIDER_ENABLE and the "mcp-server-http"
|
|
# experiment to be enabled).
|
|
# (default: false, type: bool)
|
|
inject_coder_mcp_tools: false
|
|
# Length of time to retain data such as interceptions and all related records
|
|
# (token, prompt, tool use).
|
|
# (default: 60d, type: duration)
|
|
retention: 1440h0m0s
|
|
# Maximum number of concurrent AI Gateway requests per replica. Set to 0 to
|
|
# disable (unlimited).
|
|
# (default: 0, type: int)
|
|
max_concurrency: 0
|
|
# Maximum number of AI Gateway requests per second per replica. Set to 0 to
|
|
# disable (unlimited).
|
|
# (default: 0, type: int)
|
|
rate_limit: 0
|
|
# Emit structured logs for AI Gateway interception records. Use this for exporting
|
|
# these records to external SIEM or observability systems.
|
|
# (default: false, type: bool)
|
|
structured_logging: false
|
|
# Which process emits AI Gateway interception records when structured logging is
|
|
# enabled: coderd, the gateway, or both. The gateway emits records that are never
|
|
# persisted, such as those dropped by --ai-gateway-disable-content-recording, but
|
|
# cannot report thread_parent_id or thread_root_id. Use both to verify a move from
|
|
# one to the other; records reaching coderd are then reported twice. A standalone
|
|
# gateway must be configured to emit its own records, and its logs shipped rather
|
|
# than coderd's.
|
|
# (default: coderd, type: enum[coderd\|gateway\|both])
|
|
structured_logging_source: coderd
|
|
# Stop recording the content of intercepted conversations. No user prompt, tool
|
|
# call or model reasoning record is stored, including tool names and the arguments
|
|
# they were called with. Interceptions and token usage are still recorded, so cost
|
|
# controls, budget enforcement and spend reporting are unaffected. Sessions show
|
|
# no conversation detail, prompt and tool call telemetry report zero, and
|
|
# interceptions are no longer grouped into threads for clients that do not send
|
|
# their own session ID. Combine with
|
|
# --ai-gateway-structured-logging-source=gateway to keep exporting these records
|
|
# to a SIEM instead.
|
|
# (default: false, type: bool)
|
|
disable_content_recording: false
|
|
# Add configured headers identifying the authenticated user to intercepted
|
|
# upstream requests. Use this when a proxy between AI Gateway and an upstream AI
|
|
# provider needs user identity. When enabled, removes client-supplied headers at
|
|
# configured actor-header destinations before adding authenticated values. Client
|
|
# headers starting with X-AI-Bridge-Actor are always removed.
|
|
# (default: false, type: bool)
|
|
send_actor_headers: false
|
|
# Header name for the authenticated user's ID. Empty disables this header.
|
|
# Requires AI Gateway actor headers to be enabled.
|
|
# (default: X-AI-Bridge-Actor-ID, type: string)
|
|
actor_header_id: X-AI-Bridge-Actor-ID
|
|
# Header name for the authenticated user's username. Empty disables this header.
|
|
# Requires AI Gateway actor headers to be enabled.
|
|
# (default: X-AI-Bridge-Actor-Metadata-Username, type: string)
|
|
actor_header_username: X-AI-Bridge-Actor-Metadata-Username
|
|
# Header name for the authenticated user's email address. Empty disables this
|
|
# header. Requires AI Gateway actor headers to be enabled. Applies to every
|
|
# configured provider; email is personal information.
|
|
# (default: <unset>, type: string)
|
|
actor_header_email: ""
|
|
# Base directory for dumping AI Gateway request/response pairs to disk for
|
|
# debugging. When set, each provider writes under a subdirectory named after the
|
|
# provider. Sensitive headers are redacted. Leave empty to disable.
|
|
# (default: <unset>, type: string)
|
|
api_dump_dir: ""
|
|
# Allow users to provide their own LLM API keys or subscriptions. When disabled,
|
|
# only centralized key authentication is permitted.
|
|
# (default: true, type: bool)
|
|
allow_byok: true
|
|
# Enable the circuit breaker to protect against cascading failures from upstream
|
|
# AI provider overload (503, 529).
|
|
# (default: false, type: bool)
|
|
circuit_breaker_enabled: false
|
|
# Number of consecutive failures that triggers the circuit breaker to open.
|
|
# (default: 5, type: int)
|
|
circuit_breaker_failure_threshold: 5
|
|
# Cyclic period of the closed state for clearing internal failure counts.
|
|
# (default: 10s, type: duration)
|
|
circuit_breaker_interval: 10s
|
|
# How long the circuit breaker stays open before transitioning to half-open state.
|
|
# (default: 30s, type: duration)
|
|
circuit_breaker_timeout: 30s
|
|
# Maximum number of requests allowed in half-open state before deciding to close
|
|
# or re-open the circuit.
|
|
# (default: 3, type: int)
|
|
circuit_breaker_max_requests: 3
|
|
# Determines the effective group when a user belongs to multiple groups with AI
|
|
# budgets. "highest" selects the group with the largest spend limit, and is
|
|
# currently the only supported value.
|
|
# (default: highest, type: enum[highest])
|
|
budget_policy: highest
|
|
# Determines when accumulated AI spend resets to zero, aligned to UTC calendar
|
|
# boundaries. Only "month" is currently supported.
|
|
# (default: month, type: enum[month])
|
|
budget_period: month
|
|
aibridgeproxy:
|
|
# Deprecated: use --ai-gateway-proxy-enabled or CODER_AI_GATEWAY_PROXY_ENABLED
|
|
# instead. Enable the AI Bridge MITM Proxy for intercepting and decrypting AI
|
|
# provider requests.
|
|
# (default: false, type: bool)
|
|
enabled: false
|
|
# Deprecated: use --ai-gateway-proxy-listen-addr or
|
|
# CODER_AI_GATEWAY_PROXY_LISTEN_ADDR instead. The address the AI Bridge Proxy will
|
|
# listen on.
|
|
# (default: :8888, type: string)
|
|
listen_addr: :8888
|
|
# Deprecated: use --ai-gateway-proxy-tls-cert-file or
|
|
# CODER_AI_GATEWAY_PROXY_TLS_CERT_FILE instead. Path to the TLS certificate file
|
|
# for the AI Bridge Proxy listener. Must be set together with AI Bridge Proxy TLS
|
|
# Key File.
|
|
# (default: <unset>, type: string)
|
|
tls_cert_file: ""
|
|
# Deprecated: use --ai-gateway-proxy-tls-key-file or
|
|
# CODER_AI_GATEWAY_PROXY_TLS_KEY_FILE instead. Path to the TLS private key file
|
|
# for the AI Bridge Proxy listener. Must be set together with AI Bridge Proxy TLS
|
|
# Certificate File.
|
|
# (default: <unset>, type: string)
|
|
tls_key_file: ""
|
|
# Deprecated: use --ai-gateway-proxy-cert-file or CODER_AI_GATEWAY_PROXY_CERT_FILE
|
|
# instead. Path to the CA certificate file used to intercept (MITM) HTTPS traffic
|
|
# from AI clients. This CA must be trusted by AI clients for the proxy to decrypt
|
|
# their requests.
|
|
# (default: <unset>, type: string)
|
|
cert_file: ""
|
|
# Deprecated: use --ai-gateway-proxy-key-file or CODER_AI_GATEWAY_PROXY_KEY_FILE
|
|
# instead. Path to the CA private key file used to intercept (MITM) HTTPS traffic
|
|
# from AI clients.
|
|
# (default: <unset>, type: string)
|
|
key_file: ""
|
|
# Deprecated: This value is now derived automatically from the configured AI
|
|
# providers' base URLs. Setting this value has no effect. This option will be
|
|
# removed in a future release.
|
|
# (default: <unset>, type: string-array)
|
|
domain_allowlist: []
|
|
# Deprecated: use --ai-gateway-proxy-upstream or CODER_AI_GATEWAY_PROXY_UPSTREAM
|
|
# instead. URL of an upstream HTTP proxy to chain tunneled (non-allowlisted)
|
|
# requests through. Format: http://[user:pass@]host:port or
|
|
# https://[user:pass@]host:port.
|
|
# (default: <unset>, type: string)
|
|
upstream_proxy: ""
|
|
# Deprecated: use --ai-gateway-proxy-upstream-ca or
|
|
# CODER_AI_GATEWAY_PROXY_UPSTREAM_CA instead. Path to a PEM-encoded CA certificate
|
|
# to trust for the upstream proxy's TLS connection. Only needed for HTTPS upstream
|
|
# proxies with certificates not trusted by the system. If not provided, the system
|
|
# certificate pool is used.
|
|
# (default: <unset>, type: string)
|
|
upstream_proxy_ca: ""
|
|
# Deprecated: use --ai-gateway-proxy-allowed-private-cidrs or
|
|
# CODER_AI_GATEWAY_PROXY_ALLOWED_PRIVATE_CIDRS instead. Comma-separated list of
|
|
# CIDR ranges that are permitted even though they fall within blocked
|
|
# private/reserved IP ranges. By default all private ranges are blocked to prevent
|
|
# SSRF attacks. Use this to allow access to specific internal networks.
|
|
# (default: <unset>, type: string-array)
|
|
allowed_private_cidrs: []
|
|
# Deprecated: use --ai-gateway-proxy-dump-dir or CODER_AI_GATEWAY_PROXY_DUMP_DIR
|
|
# instead. Directory for dumping MITM request/response pairs to disk for
|
|
# debugging. When set, each proxied request produces .req.txt and .resp.txt files
|
|
# organized by provider. Sensitive headers are redacted. Leave empty to disable.
|
|
# (default: <unset>, type: string)
|
|
api_dump_dir: ""
|
|
ai_gateway_proxy:
|
|
# Enable the AI Gateway MITM Proxy for intercepting and decrypting AI provider
|
|
# requests.
|
|
# (default: false, type: bool)
|
|
enabled: false
|
|
# The address the AI Gateway Proxy will listen on.
|
|
# (default: :8888, type: string)
|
|
listen_addr: :8888
|
|
# Base URL of the AI Gateway to forward intercepted requests to. Defaults to the
|
|
# embedded AI Gateway address at the Coder access URL plus /api/v2/ai-gateway.
|
|
# (default: <unset>, type: string)
|
|
target: ""
|
|
# Path to the TLS certificate file for the AI Gateway Proxy listener. Must be set
|
|
# together with AI Gateway Proxy TLS Key File.
|
|
# (default: <unset>, type: string)
|
|
tls_cert_file: ""
|
|
# Path to the TLS private key file for the AI Gateway Proxy listener. Must be set
|
|
# together with AI Gateway Proxy TLS Certificate File.
|
|
# (default: <unset>, type: string)
|
|
tls_key_file: ""
|
|
# Path to the CA certificate file used to intercept (MITM) HTTPS traffic from AI
|
|
# clients. This CA must be trusted by AI clients for the proxy to decrypt their
|
|
# requests.
|
|
# (default: <unset>, type: string)
|
|
cert_file: ""
|
|
# Path to the CA private key file used to intercept (MITM) HTTPS traffic from AI
|
|
# clients.
|
|
# (default: <unset>, type: string)
|
|
key_file: ""
|
|
# Deprecated: This value is now derived automatically from the configured AI
|
|
# Gateway providers' base URLs. Setting this value has no effect. This option will
|
|
# be removed in a future release.
|
|
# (default: <unset>, type: string-array)
|
|
domain_allowlist: []
|
|
# URL of an upstream HTTP proxy to chain tunneled (non-allowlisted) requests
|
|
# through. Format: http://[user:pass@]host:port or https://[user:pass@]host:port.
|
|
# (default: <unset>, type: string)
|
|
upstream_proxy: ""
|
|
# Path to a PEM-encoded CA certificate to trust for the upstream proxy's TLS
|
|
# connection. Only needed for HTTPS upstream proxies with certificates not trusted
|
|
# by the system. If not provided, the system certificate pool is used.
|
|
# (default: <unset>, type: string)
|
|
upstream_proxy_ca: ""
|
|
# Comma-separated list of CIDR ranges that are permitted even though they fall
|
|
# within blocked private/reserved IP ranges. By default all private ranges are
|
|
# blocked to prevent SSRF attacks. Use this to allow access to specific internal
|
|
# networks.
|
|
# (default: <unset>, type: string-array)
|
|
allowed_private_cidrs: []
|
|
# Directory for dumping MITM request/response pairs to disk for debugging. When
|
|
# set, each proxied request produces .req.txt and .resp.txt files organized by
|
|
# provider. Sensitive headers are redacted. Leave empty to disable.
|
|
# (default: <unset>, type: string)
|
|
api_dump_dir: ""
|
|
# Configure data retention policies for various database tables. Retention
|
|
# policies automatically purge old data to reduce database size and improve
|
|
# performance. Setting a retention duration to 0 disables automatic purging for
|
|
# that data type.
|
|
retention:
|
|
# How long audit log entries are retained. Set to 0 to disable (keep
|
|
# indefinitely). We advise keeping audit logs for at least a year, and in
|
|
# accordance with your compliance requirements.
|
|
# (default: 0, type: duration)
|
|
audit_logs: 0s
|
|
# How long connection log entries are retained. Set to 0 to disable (keep
|
|
# indefinitely).
|
|
# (default: 0, type: duration)
|
|
connection_logs: 0s
|
|
# How long expired API keys are retained before being deleted. Keeping expired
|
|
# keys allows the backend to return a more helpful error when a user tries to use
|
|
# an expired key. Set to 0 to disable automatic deletion of expired keys.
|
|
# (default: 7d, type: duration)
|
|
api_keys: 168h0m0s
|
|
# How long workspace agent logs are retained. Logs from non-latest builds are
|
|
# deleted if the agent hasn't connected within this period. Logs from the latest
|
|
# build are always retained. Set to 0 to disable automatic deletion.
|
|
# (default: 7d, type: duration)
|
|
workspace_agent_logs: 168h0m0s
|
|
# How long boundary audit log entries are retained. Boundary logs record HTTP
|
|
# requests processed by a Boundary confinement proxy. Set to 0 to disable
|
|
# automatic deletion (keep indefinitely). Adjust to match your organization's
|
|
# regulatory requirements.
|
|
# (default: 0, type: duration)
|
|
boundary_logs: 0s
|
|
templateBuilder:
|
|
# Disable the template builder feature for guided template creation. When
|
|
# disabled, all /api/v2/templatebuilder/* endpoints return 404.
|
|
# (default: <unset>, type: bool)
|
|
disabled: false
|
|
# The module registry host the template builder uses for module source paths (for
|
|
# example, "registry.coder.com" or "mirror.internal:8443"). An http(s):// scheme
|
|
# and trailing slash are stripped; a path, query, fragment, or credentials is
|
|
# rejected.
|
|
# (default: registry.coder.com, type: string)
|
|
registryURL: registry.coder.com
|