diff --git a/docs/self-host/backups.md b/docs/self-host/backups.md index 80c5a1e86..cde2afd0c 100644 --- a/docs/self-host/backups.md +++ b/docs/self-host/backups.md @@ -6,13 +6,21 @@ order: 10 ## What holds data -| Where | What | Protection | -|---|---|---| -| DynamoDB tables `coderhelm--*` | Teams, runs, settings, plans, usage, memories' metadata | Point-in-time recovery (35 days) on every table; deletion protection and retention while `retainData` is true | -| S3 `coderhelm--data-` | Run artifacts, memory snapshots, images from tickets | Versioning (old versions kept 30 days); retained | -| Secrets Manager `coderhelm//secrets` | GitHub App keys, session signing key | Kept when stacks are deleted | -| KMS keys | Encrypt the tables, the bucket and sealed credentials | Retained, yearly rotation | -| Cognito user pool | Accounts and passwords | Retained while `retainData` is true | +- **DynamoDB tables** `coderhelm--*`\ + *Holds:* Teams, runs, settings, plans, usage, memories' metadata.\ + *Protection:* Point-in-time recovery (35 days) on every table; deletion protection and retention while `retainData` is true. +- **S3** `coderhelm--data-`\ + *Holds:* Run artifacts, memory snapshots, images from tickets.\ + *Protection:* Versioning (old versions kept 30 days); retained. +- **Secrets Manager** `coderhelm//secrets`\ + *Holds:* GitHub App keys, session signing key.\ + *Protection:* Kept when stacks are deleted. +- **KMS keys**\ + *Holds:* The keys that encrypt the tables, the bucket and sealed credentials.\ + *Protection:* Retained, yearly rotation. +- **Cognito user pool**\ + *Holds:* Accounts and passwords.\ + *Protection:* Retained while `retainData` is true. Everything else (functions, queues, the dashboard bucket, logs) is rebuilt by a deploy. diff --git a/docs/self-host/check-your-install.md b/docs/self-host/check-your-install.md index b62ed2a2e..d0fb5663e 100644 --- a/docs/self-host/check-your-install.md +++ b/docs/self-host/check-your-install.md @@ -37,48 +37,133 @@ Each check prints `PASS`, `WARN`, `FAIL` or `SKIP`. Anything that isn't a pass s Fix it and run the doctor again. It exits with 0 when nothing fails, so scripts and CI can use it. Options: -| Option | What it does | -|---|---| -| `--json` | Prints the results as JSON (groups, each check's `status`, `what`, `why`, `fix`) | -| `ANTHROPIC_API_KEY=...` | Also tests this Anthropic key with a real one-token call | -| `--verbose` | Prints full error details. They are always saved in `.coderhelm/logs/` | +- **`--json`**\ + Prints the results as JSON (groups, each check's `status`, `what`, `why`, `fix`). +- **`ANTHROPIC_API_KEY=...`**\ + Also tests this Anthropic key with a real one-token call. +- **`--verbose`**\ + Prints full error details. They are always saved in `.coderhelm/logs/`. The last result is kept in `.coderhelm/doctor.json`. ## Every check -| Group | Check | A failure means | The fix it shows | -|---|---|---|---| -| This machine | Node.js 20 or newer | The installer and the CDK can't run | The Node.js download page | -| This machine | AWS CLI v2 | No `aws`, or version 1 | The AWS CLI install guide | -| This machine | Signed in to AWS | No credentials, or the sign-in expired | `aws sso login --profile `, or `aws configure sso` | -| This machine | The right AWS account | Your credentials are for another account than the config's | `aws configure list-profiles`, then `AWS_PROFILE=` | -| This machine | AWS permissions | Your identity isn't allowed some actions the deploy needs (checked with `iam:SimulatePrincipalPolicy`); each one is listed | Ask your AWS admin, or use a role with AdministratorAccess. When the simulation itself isn't allowed, this is a warning | -| Region and CDK | Region has every service | The region lacks a service the install uses (Bedrock too, with the `bedrock` provider) | Pick another region, such as us-east-1, us-west-2 or eu-west-1 | -| Region and CDK | CDK set up | No `CDKToolkit` stack in the region (or in us-east-1, which CloudFront's certificate needs) | `npx -y cdk bootstrap aws:///`. The guided install offers to run it | -| Web address | Route 53 zone | No public zone with that name in the account | `aws route53 create-hosted-zone ...` | -| Web address | Name servers point at Route 53 | Public DNS answers other name servers than the zone's | The exact NS records to set at your registrar, and what is there now | -| Web address | TLS certificate issued | Wrong region, wrong name, or still validating | The validation records to add, or the ACM request page | -| Web address | Web address answers | DNS doesn't resolve, the certificate is refused, or CloudFront answers an error | The DNS record to add, or the ACM or CloudFront console | -| Web address | API answers | `/api` doesn't answer | `aws logs tail` for the gateway, then deploy again | -| Web address | Your own domain (Settings, then Setup) | The certificate waits for its record, a record has the wrong value, CAA blocks Amazon, the hostname is a zone apex, or HTTPS or the API doesn't answer on it | The records to add with their exact values; every code is in [Domains](./domains.md#checks) | -| Install health | CloudFormation stacks | A stack is missing or stuck in a rollback | The stack's Events tab, then `deploy` | -| Install health | Functions | gateway, worker or streaming isn't active | `deploy` (it replaces the function) | -| Install health | No failed events waiting | Messages wait in the dead-letter queue (a warning) | The failed events page in the dashboard | -| GitHub | Install secret | The secret is missing | `deploy`, then `github-app` | -| GitHub | GitHub App created | No app is stored | `github-app` | -| GitHub | GitHub accepts the app's keys | GitHub refuses the stored app id and private key | `github-app --force` | -| GitHub | Permissions and events | A permission is missing or too weak (for example Workflows: write), or an event isn't subscribed | The app's Permissions page, with each value to set | -| GitHub | Webhook reaches this install | The webhook URL is wrong, GitHub couldn't connect, or the install refused the last delivery (401: the webhook secret doesn't match) | The URL to set, or `github-app --force` and a redelivery | -| GitHub | App installed | The app isn't installed anywhere | The app's install page | -| GitHub | Sign-in client | GitHub refuses the stored OAuth client id and secret | `github-app --force` | -| Email | Sender verified | The sender's domain isn't in SES, isn't verified, or DKIM isn't set up | The three DKIM records to add, or `aws sesv2 create-email-identity ...` | -| Email | Email can reach anyone | The account is in the SES sandbox (a warning) | The SES page to request production access | -| Claude | Models enabled in Bedrock | Model access isn't on for Claude Opus 5.5 or Claude Sonnet 5.5 in the region; each is named | The Bedrock Model access page for the region | -| Claude | Claude answers | A real one-token call fails | The model access page, or the inference prefix to check | -| Claude | Anthropic API key works | The key is refused, can't use the model, or has no credit | The Anthropic console's keys or billing page | -| Notices | Slack or Teams webhook | The webhook was removed or the URL is wrong | How to create a new one | -| Integrations | Sign in with Google (Settings, then Setup) | It is on, but its keys aren't in the secret | The keys to add; see [Sign-in and people](./sign-in.md) | +### This machine + +- **Node.js 20 or newer**\ + *If it fails:* The installer and the CDK can't run.\ + *Fix:* The Node.js download page. +- **AWS CLI v2**\ + *If it fails:* No `aws`, or version 1.\ + *Fix:* The AWS CLI install guide. +- **Signed in to AWS**\ + *If it fails:* No credentials, or the sign-in expired.\ + *Fix:* `aws sso login --profile `, or `aws configure sso`. +- **The right AWS account**\ + *If it fails:* Your credentials are for another account than the config's.\ + *Fix:* `aws configure list-profiles`, then `AWS_PROFILE=`. +- **AWS permissions**\ + *If it fails:* Your identity isn't allowed some actions the deploy needs (checked with `iam:SimulatePrincipalPolicy`); each one is listed.\ + *Fix:* Ask your AWS admin, or use a role with AdministratorAccess. When the simulation itself isn't allowed, this is a warning. + +### Region and CDK + +- **Region has every service**\ + *If it fails:* The region lacks a service the install uses (Bedrock too, with the `bedrock` provider).\ + *Fix:* Pick another region, such as us-east-1, us-west-2 or eu-west-1. +- **CDK set up**\ + *If it fails:* No `CDKToolkit` stack in the region (or in us-east-1, which CloudFront's certificate needs).\ + *Fix:* `npx -y cdk bootstrap aws:///`. The guided install offers to run it. + +### Web address + +- **Route 53 zone**\ + *If it fails:* No public zone with that name in the account.\ + *Fix:* `aws route53 create-hosted-zone ...`. +- **Name servers point at Route 53**\ + *If it fails:* Public DNS answers other name servers than the zone's.\ + *Fix:* The exact NS records to set at your registrar, and what is there now. +- **TLS certificate issued**\ + *If it fails:* Wrong region, wrong name, or still validating.\ + *Fix:* The validation records to add, or the ACM request page. +- **Web address answers**\ + *If it fails:* DNS doesn't resolve, the certificate is refused, or CloudFront answers an error.\ + *Fix:* The DNS record to add, or the ACM or CloudFront console. +- **API answers**\ + *If it fails:* `/api` doesn't answer.\ + *Fix:* `aws logs tail` for the gateway, then deploy again. +- **Your own domain (Settings, then Setup)**\ + *If it fails:* The certificate waits for its record, a record has the wrong value, CAA blocks Amazon, the hostname is a zone apex, or HTTPS or the API doesn't answer on it.\ + *Fix:* The records to add with their exact values; every code is in [Domains](./domains.md#checks). + +### Install health + +- **CloudFormation stacks**\ + *If it fails:* A stack is missing or stuck in a rollback.\ + *Fix:* The stack's Events tab, then `deploy`. +- **Functions**\ + *If it fails:* gateway, worker or streaming isn't active.\ + *Fix:* `deploy` (it replaces the function). +- **No failed events waiting**\ + *If it fails:* Messages wait in the dead-letter queue (a warning).\ + *Fix:* The failed events page in the dashboard. + +### GitHub + +- **Install secret**\ + *If it fails:* The secret is missing.\ + *Fix:* `deploy`, then `github-app`. +- **GitHub App created**\ + *If it fails:* No app is stored.\ + *Fix:* `github-app`. +- **GitHub accepts the app's keys**\ + *If it fails:* GitHub refuses the stored app id and private key.\ + *Fix:* `github-app --force`. +- **Permissions and events**\ + *If it fails:* A permission is missing or too weak (for example Workflows: write), or an event isn't subscribed.\ + *Fix:* The app's Permissions page, with each value to set. +- **Webhook reaches this install**\ + *If it fails:* The webhook URL is wrong, GitHub couldn't connect, or the install refused the last delivery (401: the webhook secret doesn't match).\ + *Fix:* The URL to set, or `github-app --force` and a redelivery. +- **App installed**\ + *If it fails:* The app isn't installed anywhere.\ + *Fix:* The app's install page. +- **Sign-in client**\ + *If it fails:* GitHub refuses the stored OAuth client id and secret.\ + *Fix:* `github-app --force`. + +### Email + +- **Sender verified**\ + *If it fails:* The sender's domain isn't in SES, isn't verified, or DKIM isn't set up.\ + *Fix:* The three DKIM records to add, or `aws sesv2 create-email-identity ...`. +- **Email can reach anyone**\ + *If it fails:* The account is in the SES sandbox (a warning).\ + *Fix:* The SES page to request production access. + +### Claude + +- **Models enabled in Bedrock**\ + *If it fails:* Model access isn't on for Claude Opus 5.5 or Claude Sonnet 5.5 in the region; each is named.\ + *Fix:* The Bedrock Model access page for the region. +- **Claude answers**\ + *If it fails:* A real one-token call fails.\ + *Fix:* The model access page, or the inference prefix to check. +- **Anthropic API key works**\ + *If it fails:* The key is refused, can't use the model, or has no credit.\ + *Fix:* The Anthropic console's keys or billing page. + +### Notices + +- **Slack or Teams webhook**\ + *If it fails:* The webhook was removed or the URL is wrong.\ + *Fix:* How to create a new one. + +### Integrations + +- **Sign in with Google (Settings, then Setup)**\ + *If it fails:* It is on, but its keys aren't in the secret.\ + *Fix:* The keys to add; see [Sign-in and people](./sign-in.md). ## The guided install @@ -194,17 +279,33 @@ For the [install guide](https://docs.coderhelm.com/self-host/install/) to poll f - `required: false` marks a check that never blocks `ready`. `ready` is true when every required check passes or is skipped. - `github_manifest_ready` is true when the install holds the Launch Stack's one-time setup key and no GitHub App yet, so the manifest landing (`/api/setup/github/callback`) will accept a new app. -| Check | Codes | What fixes it | -|---|---|---| -| `api` | `ok` | The install answers. | -| `github_app` | `ok`, `missing`, `missing_no_setup_key`, `secret_unreadable` | Create the app (the install guide, or `github-app` from the CLI when the browser no longer has the setup key). | -| `github_installed` | `ok`, `needs_app` (wait), `not_installed` (wait), `app_rejected`, `bad_key`, `github_unreachable` (warn) | Install the app on your repositories. `app_rejected` and `bad_key`: create a new app with `github-app --force`. | -| `models` | `ok`, `use_case_required`, `access_denied`, `subscription_pending` (warn), `marketplace_failed`, `iam_denied`, `not_available`, `unknown`; `anthropic_keys_per_team` (skip) | Bedrock: one real one-token call (a pass is kept 10 minutes, a failure 20 seconds). Submit Anthropic's use case form or request access in the Bedrock console for your region, wait for the subscription, fix the payment method, or allow Bedrock model calls. With Anthropic API keys, each team adds its key after signing in. | -| `email` | `ok`, `identity_unverified`, `sandbox`, `unknown` (all warn, never blocking) | Verify the sender (DKIM records, or the link AWS emailed); request SES production access. | -| `domain` | `none` (skip), `validating` (wait), `attaching` (wait), `removing` (wait), `dns_missing` (wait), `zone_not_delegated`, `validation_wrong_value`, `caa_blocked`, `certificate_failed`, `attach_failed`, `dns_wrong_value`, `cname_at_apex`, `https_failed`, `api_unreachable`, `unknown` (warn), `ok`; never blocking | See [Domains](./domains.md#checks). The hostname and the records are never in this answer: the guide has them from the progress file. | -| `google_sign_in` | `off` (skip), `missing_keys`, `ok`; never blocking | See [Sign-in and people](./sign-in.md). | -| `updates` | `auto_off` (skip), `ok`, `unknown` (warn); never blocking | Turn automatic updates on in Settings, then System. | -| `admin` | `ok`, `not_signed_up` (wait) | Sign up at your CoderHelm address with the admin email. | +- **`api`**\ + *Codes:* `ok`\ + *Fix:* The install answers. +- **`github_app`**\ + *Codes:* `ok`, `missing`, `missing_no_setup_key`, `secret_unreadable`\ + *Fix:* Create the app (the install guide, or `github-app` from the CLI when the browser no longer has the setup key). +- **`github_installed`**\ + *Codes:* `ok`, `needs_app` (wait), `not_installed` (wait), `app_rejected`, `bad_key`, `github_unreachable` (warn)\ + *Fix:* Install the app on your repositories. `app_rejected` and `bad_key`: create a new app with `github-app --force`. +- **`models`**\ + *Codes:* `ok`, `use_case_required`, `access_denied`, `subscription_pending` (warn), `marketplace_failed`, `iam_denied`, `not_available`, `unknown`; `anthropic_keys_per_team` (skip)\ + *Fix:* Bedrock: one real one-token call (a pass is kept 10 minutes, a failure 20 seconds). Submit Anthropic's use case form or request access in the Bedrock console for your region, wait for the subscription, fix the payment method, or allow Bedrock model calls. With Anthropic API keys, each team adds its key after signing in. +- **`email`**\ + *Codes:* `ok`, `identity_unverified`, `sandbox`, `unknown` (all warn, never blocking)\ + *Fix:* Verify the sender (DKIM records, or the link AWS emailed); request SES production access. +- **`domain`**\ + *Codes:* `none` (skip), `validating` (wait), `attaching` (wait), `removing` (wait), `dns_missing` (wait), `zone_not_delegated`, `validation_wrong_value`, `caa_blocked`, `certificate_failed`, `attach_failed`, `dns_wrong_value`, `cname_at_apex`, `https_failed`, `api_unreachable`, `unknown` (warn), `ok`; never blocking\ + *Fix:* See [Domains](./domains.md#checks). The hostname and the records are never in this answer: the guide has them from the progress file. +- **`google_sign_in`**\ + *Codes:* `off` (skip), `missing_keys`, `ok`; never blocking\ + *Fix:* See [Sign-in and people](./sign-in.md). +- **`updates`**\ + *Codes:* `auto_off` (skip), `ok`, `unknown` (warn); never blocking\ + *Fix:* Turn automatic updates on in Settings, then System. +- **`admin`**\ + *Codes:* `ok`, `not_signed_up` (wait)\ + *Fix:* Sign up at your CoderHelm address with the admin email. The guide builds its own links (the Bedrock console for the region it launched in, `https://github.com/apps//installations/new` from the slug the manifest landing hands back), so the install never has to publish them. diff --git a/docs/self-host/config-reference.md b/docs/self-host/config-reference.md index 5b9269ef4..463ef95dc 100644 --- a/docs/self-host/config-reference.md +++ b/docs/self-host/config-reference.md @@ -22,103 +22,135 @@ The smallest config: ## Where things go -| Setting | Type | Default | Notes | -|---|---|---|---| -| `account` | string | required | 12-digit AWS account id. Deploys refuse to run with credentials for another account. | -| `region` | string | required | Any region with Lambda on ARM64, Cognito and SES. | -| `stage` | string | required | Short name, lowercase letters, digits and hyphens, up to 20 characters. Names resources `coderhelm--*`. | -| `resourcePrefix` | string | `coderhelm-` | Prefix of every resource name. Change it only before the first deploy. | -| `globalNameSuffix` | string | `-` | Added to S3 bucket names and the sign-in domain prefix, which must be unique across all of AWS. `""` for none. | -| `retainData` | boolean | `true` | Keep tables, the data bucket, KMS keys and the user pool when stacks are deleted, and turn on table deletion protection. | +- **`account`** *string, required*\ + 12-digit AWS account id. Deploys refuse to run with credentials for another account. +- **`region`** *string, required*\ + Any region with Lambda on ARM64, Cognito and SES. +- **`stage`** *string, required*\ + Short name, lowercase letters, digits and hyphens, up to 20 characters. Names resources `coderhelm--*`. +- **`resourcePrefix`** *string, default `coderhelm-`*\ + Prefix of every resource name. Change it only before the first deploy. +- **`globalNameSuffix`** *string, default `-`*\ + Added to S3 bucket names and the sign-in domain prefix, which must be unique across all of AWS. `""` for none. +- **`retainData`** *boolean, default `true`*\ + Keep tables, the data bucket, KMS keys and the user pool when stacks are deleted, and turn on table deletion protection. ## Domain -| Setting | Type | Default | Notes | -|---|---|---|---| -| `domain` | object or null | `null` | null: CloudFront's own `*.cloudfront.net` URL. | -| `domain.hostname` | string | | The hostname people open, e.g. `coderhelm.example.com`. | -| `domain.hostedZone` | string | | Its Route 53 public hosted zone. The certificate and DNS records are created for you. | -| `domain.hostedZoneId` | string | | Skips the zone lookup at synth. | -| `domain.certificateArn` | string | | An ACM certificate **in us-east-1** for the hostname, when your DNS is not in Route 53. The deploy prints the CNAME to create. | +- **`domain`** *object or null, default `null`*\ + null: CloudFront's own `*.cloudfront.net` URL. +- **`domain.hostname`** *string*\ + The hostname people open, e.g. `coderhelm.example.com`. +- **`domain.hostedZone`** *string*\ + Its Route 53 public hosted zone. The certificate and DNS records are created for you. +- **`domain.hostedZoneId`** *string*\ + Skips the zone lookup at synth. +- **`domain.certificateArn`** *string*\ + An ACM certificate **in us-east-1** for the hostname, when your DNS is not in Route 53. The deploy prints the CNAME to create. See [Domains](./domains.md). ## Models -| Setting | Type | Default | Notes | -|---|---|---|---| -| `models.provider` | `anthropic` or `bedrock` | `anthropic` | anthropic: each team adds its own key. bedrock: Claude on Bedrock in this account, no keys. | -| `models.primary` | string | `claude-opus-5-5` | Model for implementation and reviews. A team can choose others in its settings. | -| `models.light` | string | `claude-sonnet-5-5` | Model for triage, plan chat and log analysis. | -| `models.bedrockInferencePrefix` | string | `us.` | Bedrock only. `us.`, `eu.`, `apac.`, `global.` or `""` for in-region ids. | -| `models.bedrockModelIds` | object | `{}` | Bedrock only. Exact ids or inference profile ARNs for model names. | +- **`models.provider`** *`anthropic` or `bedrock`, default `anthropic`*\ + anthropic: each team adds its own key. bedrock: Claude on Bedrock in this account, no keys. +- **`models.primary`** *string, default `claude-opus-5-5`*\ + Model for implementation and reviews. A team can choose others in its settings. +- **`models.light`** *string, default `claude-sonnet-5-5`*\ + Model for triage, plan chat and log analysis. +- **`models.bedrockInferencePrefix`** *string, default `us.`*\ + Bedrock only. `us.`, `eu.`, `apac.`, `global.` or `""` for in-region ids. +- **`models.bedrockModelIds`** *object, default `{}`*\ + Bedrock only. Exact ids or inference profile ARNs for model names. See [Model providers](./model-providers.md). ## Email -| Setting | Type | Default | Notes | -|---|---|---|---| -| `email.from` | string | required | The sender of every email. | -| `email.fromName` | string | `CoderHelm` | Display name. | -| `email.supportInbox` | string | `email.from` | Where support requests from the dashboard go. | -| `email.identity` | string or null | the domain of `from` | The SES identity to create: a domain or one address. null if you manage it. | -| `email.sesRegion` | string | `region` | Region of the SES identity. | -| `email.cognitoUsesSes` | boolean | `false` | Send sign-up and password emails through SES. Turn on only after the identity is verified. | -| `email.logoUrl` | string | `/favicon.svg` | Logo in email headers. | -| `email.privacyUrl` | string or null | `null` | A privacy page linked in email footers. | +- **`email.from`** *string, required*\ + The sender of every email. +- **`email.fromName`** *string, default `CoderHelm`*\ + Display name. +- **`email.supportInbox`** *string, default `email.from`*\ + Where support requests from the dashboard go. +- **`email.identity`** *string or null, default the domain of `from`*\ + The SES identity to create: a domain or one address. null if you manage it. +- **`email.sesRegion`** *string, default `region`*\ + Region of the SES identity. +- **`email.cognitoUsesSes`** *boolean, default `false`*\ + Send sign-up and password emails through SES. Turn on only after the identity is verified. +- **`email.logoUrl`** *string, default `/favicon.svg`*\ + Logo in email headers. +- **`email.privacyUrl`** *string or null, default `null`*\ + A privacy page linked in email footers. See [Email](./email.md). ## People -| Setting | Type | Default | Notes | -|---|---|---|---| -| `admins` | list of emails | required | Admins of the whole install: the admin pages (teams, the failed message queue, support). They may always sign up. | -| `signup.emails` | list of emails | `[]` | Others who may create an account. | -| `signup.domains` | list of domains | `[]` | Anyone with an email at these domains may create an account. | +- **`admins`** *list of emails, required*\ + Admins of the whole install: the admin pages (teams, the failed message queue, support). They may always sign up. +- **`signup.emails`** *list of emails, default `[]`*\ + Others who may create an account. +- **`signup.domains`** *list of domains, default `[]`*\ + Anyone with an email at these domains may create an account. Sign-up is closed to everyone else. People already on a team invite others from the dashboard. ## Integrations -| Setting | Type | Default | Notes | -|---|---|---|---| -| `integrations.googleSignIn` | boolean | `false` | "Sign in with Google". Needs a domain and Google keys in the secret. | -| `integrations.sandbox` | boolean | `true` | The CodeBuild sandbox that runs a repo's build and checks during runs. | -| `integrations.logAnalyzer` | boolean | `true` | Scheduled log analysis for AWS accounts teams connect. | -| `integrations.weeklySummary` | boolean | `true` | The Monday summary email. | -| `integrations.weeklySummaryListedTeamsOnly` | boolean | `false` | Only teams with a rollout list get the summary. | +- **`integrations.googleSignIn`** *boolean, default `false`*\ + "Sign in with Google". Needs a domain and Google keys in the secret. +- **`integrations.sandbox`** *boolean, default `true`*\ + The CodeBuild sandbox that runs a repo's build and checks during runs. +- **`integrations.logAnalyzer`** *boolean, default `true`*\ + Scheduled log analysis for AWS accounts teams connect. +- **`integrations.weeklySummary`** *boolean, default `true`*\ + The Monday summary email. +- **`integrations.weeklySummaryListedTeamsOnly`** *boolean, default `false`*\ + Only teams with a rollout list get the summary. See [Integrations](./integrations.md). ## Updates -| Setting | Type | Default | Notes | -|---|---|---|---| -| `updates.enabled` | boolean | `true` | Create the updater: the hourly release check, notices, the update build. | -| `updates.auto` | boolean | `false` | Install new releases on their own, in the window. | -| `updates.window` | string | `"Sun 03:00"` | Maintenance window: a day (or `daily`) and an hour. | -| `updates.timezone` | string | `UTC` | IANA time zone of the window. | -| `updates.channel` | `stable` or `preview` | `stable` | `preview` includes release candidates. | -| `updates.majors` | `ask` or `auto` | `ask` | `ask`: major releases wait for an admin. | -| `updates.webhookUrl` | string | | A Slack or Teams incoming webhook for update notices (admins are emailed either way). | +- **`updates.enabled`** *boolean, default `true`*\ + Create the updater: the hourly release check, notices, the update build. +- **`updates.auto`** *boolean, default `false`*\ + Install new releases on their own, in the window. +- **`updates.window`** *string, default `"Sun 03:00"`*\ + Maintenance window: a day (or `daily`) and an hour. +- **`updates.timezone`** *string, default `UTC`*\ + IANA time zone of the window. +- **`updates.channel`** *`stable` or `preview`, default `stable`*\ + `preview` includes release candidates. +- **`updates.majors`** *`ask` or `auto`, default `ask`*\ + `ask`: major releases wait for an admin. +- **`updates.webhookUrl`** *string*\ + A Slack or Teams incoming webhook for update notices (admins are emailed either way). These are the starting point; admins change them in **Settings, then System** without a deploy. See [Updates](./updates.md). ## Everything else -| Setting | Type | Default | Notes | -|---|---|---|---| -| `dashboard.assetDir` | string | the release's dashboard | A dashboard build to upload instead (for your own changes). The installer fills this in for you. | -| `telemetry.enabled` | boolean | `false` | Anonymous install, upgrade and health pings from the installer. | -| `telemetry.endpoint` | string | CoderHelm's | Where pings go. | -| `logReaderTemplateUrl` | string | CoderHelm's public copy | The CloudFormation template teams create the log reader role from. | -| `publicBucketName` | string or null | `null` | Create a public bucket that serves the templates in `infra/cfn` (the hosted deployment does). | -| `siteUrl` | string or null | `null` | A website linked from email footers. | -| `layout` | string | `single-origin` | `split` is the hosted deployment's layout (separate hostnames, dashboard deployed from its own repo). | -| `split` | object | | Settings for the `split` layout. | -| `ci.reviewerEvalsRepo` | string | | Hosted only: the repository whose CI runs the nightly reviewer evals on Bedrock. | +- **`dashboard.assetDir`** *string, default the release's dashboard*\ + A dashboard build to upload instead (for your own changes). The installer fills this in for you. +- **`telemetry.enabled`** *boolean, default `false`*\ + Anonymous install, upgrade and health pings from the installer. +- **`telemetry.endpoint`** *string, default CoderHelm's*\ + Where pings go. +- **`logReaderTemplateUrl`** *string, default CoderHelm's public copy*\ + The CloudFormation template teams create the log reader role from. +- **`publicBucketName`** *string or null, default `null`*\ + Create a public bucket that serves the templates in `infra/cfn` (the hosted deployment does). +- **`siteUrl`** *string or null, default `null`*\ + A website linked from email footers. +- **`layout`** *string, default `single-origin`*\ + `split` is the hosted deployment's layout (separate hostnames, dashboard deployed from its own repo). +- **`split`** *object*\ + Settings for the `split` layout. +- **`ci.reviewerEvalsRepo`** *string*\ + Hosted only: the repository whose CI runs the nightly reviewer evals on Bedrock. ## What a deploy sets on the services diff --git a/docs/self-host/domains.md b/docs/self-host/domains.md index 7e56db9a0..05e29a990 100644 --- a/docs/self-host/domains.md +++ b/docs/self-host/domains.md @@ -74,23 +74,50 @@ Many providers add your domain to the name for you: if the form shows `.example. Settings, then Setup, Settings, then System, and the install guide check the domain from the outside: the records in public DNS (asked over DNS-over-HTTPS from the install), the certificate in ACM, and whether CoderHelm answers on `https://` (the page and the API). Each result has one sentence and one fix: -| Code | What it means | The fix | -|---|---|---| -| `none` | No domain: the AWS address | Optional: add one in Settings, then System | -| `validating` | The certificate waits for its DNS record | Add the records; new records can take up to an hour to show up | -| `zone_not_delegated` | The Route 53 zone is in the account, but public DNS uses other name servers | Set the name servers shown at your registrar (up to a day) | -| `validation_wrong_value` | The certificate record exists with another value | Change its value to the one shown | -| `caa_blocked` | Your domain's CAA records don't allow Amazon to issue certificates | Add `0 issue "amazon.com"` as a CAA record, then **Try again** | -| `certificate_failed` | AWS couldn't issue the certificate | Check the records, then **Try again** (a new certificate) | -| `attaching` | The certificate is issued; CoderHelm is moving to the domain | Nothing: about 10 minutes | -| `attach_failed` | The redeploy failed (most often: the hostname is on another CloudFront distribution) | Remove it there, then **Try again**; the update history has the log | -| `dns_missing` | The address record isn't there yet | Add it; it can take up to an hour | -| `dns_wrong_value` | The hostname points somewhere else | Change the value to the CloudFront address | -| `cname_at_apex` | The hostname is the root of the domain, where a `CNAME` isn't allowed | Use a subdomain, or an ALIAS, ANAME or flattened CNAME if your provider has one | -| `https_failed` | Something answers, but not CoderHelm over HTTPS | Point the record at CloudFront with no proxy in front | -| `api_unreachable` | The page loads but the API doesn't answer on the domain | Run the doctor | -| `removing` | Moving back to the AWS address | Nothing: about 10 minutes | -| `ok` | CoderHelm answers on the domain with its certificate | | +- **`none`**\ + No domain: the AWS address.\ + *Fix:* Optional: add one in Settings, then System. +- **`validating`**\ + The certificate waits for its DNS record.\ + *Fix:* Add the records; new records can take up to an hour to show up. +- **`zone_not_delegated`**\ + The Route 53 zone is in the account, but public DNS uses other name servers.\ + *Fix:* Set the name servers shown at your registrar (up to a day). +- **`validation_wrong_value`**\ + The certificate record exists with another value.\ + *Fix:* Change its value to the one shown. +- **`caa_blocked`**\ + Your domain's CAA records don't allow Amazon to issue certificates.\ + *Fix:* Add `0 issue "amazon.com"` as a CAA record, then **Try again**. +- **`certificate_failed`**\ + AWS couldn't issue the certificate.\ + *Fix:* Check the records, then **Try again** (a new certificate). +- **`attaching`**\ + The certificate is issued; CoderHelm is moving to the domain.\ + *Fix:* Nothing: about 10 minutes. +- **`attach_failed`**\ + The redeploy failed (most often: the hostname is on another CloudFront distribution).\ + *Fix:* Remove it there, then **Try again**; the update history has the log. +- **`dns_missing`**\ + The address record isn't there yet.\ + *Fix:* Add it; it can take up to an hour. +- **`dns_wrong_value`**\ + The hostname points somewhere else.\ + *Fix:* Change the value to the CloudFront address. +- **`cname_at_apex`**\ + The hostname is the root of the domain, where a `CNAME` isn't allowed.\ + *Fix:* Use a subdomain, or an ALIAS, ANAME or flattened CNAME if your provider has one. +- **`https_failed`**\ + Something answers, but not CoderHelm over HTTPS.\ + *Fix:* Point the record at CloudFront with no proxy in front. +- **`api_unreachable`**\ + The page loads but the API doesn't answer on the domain.\ + *Fix:* Run the doctor. +- **`removing`**\ + Moving back to the AWS address.\ + *Fix:* Nothing: about 10 minutes. +- **`ok`**\ + CoderHelm answers on the domain with its certificate. ## After the move diff --git a/docs/self-host/options.md b/docs/self-host/options.md index 054ae38d3..15af9149d 100644 --- a/docs/self-host/options.md +++ b/docs/self-host/options.md @@ -8,45 +8,129 @@ One list of everything you can set up, and where. Required items are steps in th ## At install -| Setting | Required | Install guide | Launch Stack parameter | Config | Checked by | -|---|---|---|---|---|---| -| Your email (the first admin) | Yes | Your email | `AdminEmail` | `admins` | `admin` | -| AWS region | Yes | AWS region | the console's region | `region` | | -| Install name | | More options | `Stage` | `stage` | | -| Models: Bedrock or Anthropic keys | | More options | `ModelProvider` | `models.provider` | `models`, `model` | -| Bedrock inference profile | | | `BedrockInferencePrefix` | `models.bedrockInferencePrefix` | `model` | -| Your own domain | | More options, then the Domain step | `Hostname` (`HostedZone` to pick a zone) | `domain` | `domain` | -| Send email from | | More options | `EmailFrom` | `email.from`, `email.identity` | `email`, `email_identity` | -| Who else may sign up | | More options | `SignupDomain` | `signup.domains`, `signup.emails` | | -| Automatic updates and the window | | More options | `AutoUpdate`, `UpdateWindow`, `UpdateTimezone` | `updates.*` | `updates` | -| Anonymous install pings | | | `Telemetry` | `telemetry.enabled` | | -| The release | | (the newest) | `Version` | `--version` | | -| GitHub App | Yes | The GitHub step | | `github-app` | `github_app`, `github_installed`, `github_*` | -| Claude access in Bedrock | Yes, with Bedrock | The Models step | | | `models`, `model` | +- **Your email (the first admin)** *required*\ + *Install guide:* Your email\ + *Launch Stack:* `AdminEmail`\ + *Config:* `admins`\ + *Checked by:* `admin` +- **AWS region** *required*\ + *Install guide:* AWS region\ + *Launch Stack:* the console's region\ + *Config:* `region` +- **Install name**\ + *Install guide:* More options\ + *Launch Stack:* `Stage`\ + *Config:* `stage` +- **Models: Bedrock or Anthropic keys**\ + *Install guide:* More options\ + *Launch Stack:* `ModelProvider`\ + *Config:* `models.provider`\ + *Checked by:* `models`, `model` +- **Bedrock inference profile**\ + *Launch Stack:* `BedrockInferencePrefix`\ + *Config:* `models.bedrockInferencePrefix`\ + *Checked by:* `model` +- **Your own domain**\ + *Install guide:* More options, then the Domain step\ + *Launch Stack:* `Hostname` (`HostedZone` to pick a zone)\ + *Config:* `domain`\ + *Checked by:* `domain` +- **Send email from**\ + *Install guide:* More options\ + *Launch Stack:* `EmailFrom`\ + *Config:* `email.from`, `email.identity`\ + *Checked by:* `email`, `email_identity` +- **Who else may sign up**\ + *Install guide:* More options\ + *Launch Stack:* `SignupDomain`\ + *Config:* `signup.domains`, `signup.emails` +- **Automatic updates and the window**\ + *Install guide:* More options\ + *Launch Stack:* `AutoUpdate`, `UpdateWindow`, `UpdateTimezone`\ + *Config:* `updates.*`\ + *Checked by:* `updates` +- **Anonymous install pings**\ + *Launch Stack:* `Telemetry`\ + *Config:* `telemetry.enabled` +- **The release**\ + *Install guide:* (the newest)\ + *Launch Stack:* `Version`\ + *Config:* `--version` +- **GitHub App** *required*\ + *Install guide:* The GitHub step\ + *Config:* `github-app`\ + *Checked by:* `github_app`, `github_installed`, `github_*` +- **Claude access in Bedrock** *yes, with Bedrock*\ + *Install guide:* The Models step\ + *Checked by:* `models`, `model` ## After install -| Setting | Where | Checked by | Guide | -|---|---|---|---| -| Your own domain, or change it | Settings, then System, Domain | `domain` | [Domains](./domains.md) | -| Email reaches anyone (leave the SES sandbox) | The SES console | `email_sandbox` | [Email](./email.md) | -| Email from your domain, with DKIM | The SES console, and DNS | `email_identity` | [Email](./email.md) | -| Sign-up and password emails through SES | `email.cognitoUsesSes` | | [Email](./email.md) | -| Sign in with Google | Google Cloud, the secret, `integrations.googleSignIn` | `google_sign_in` | [Sign-in and people](./sign-in.md) | -| Invite your team | Settings, People | | [Sign-in and people](./sign-in.md) | -| Anthropic API key (Anthropic provider) | Settings, AI models (per team) | `model` | [Model providers](./model-providers.md) | -| Models a team uses | Settings, AI models | `model` | [Model providers](./model-providers.md) | -| Repositories CoderHelm works on | Settings, Repositories | | | -| Slack or Teams notices and alert routes | Settings, Alerts | `slack`, `teams` | [Integrations](./integrations.md) | -| Jira | Settings, Integrations, Jira | `jira` | [Integrations](./integrations.md) | -| Connected AWS accounts (logs, metrics) | Settings, Integrations, AWS | | [Integrations](./integrations.md) | -| Knowledge sources (Notion, Confluence, Google Drive and more) | Settings, Knowledge; OAuth apps in the secret | | [Knowledge sources](./knowledge-sources.md) | -| Automatic updates, channel, window, majors | Settings, System | `updates` | [Updates](./updates.md) | -| Update notices in Slack or Teams | `updates.webhookUrl` | | [Updates](./updates.md) | -| Backups | On by the install (point-in-time recovery on every table, versioned bucket); on-demand with `backup`; AWS Backup plans | | [Backups](./backups.md) | -| Keep data when stacks are deleted | `retainData` (on) | | [Config reference](./config-reference.md) | -| The build sandbox, log analysis, weekly summary | `integrations.*` | | [Integrations](./integrations.md) | -| Support access for install admins | Settings, Support access (per team) | | [Sign-in and people](./sign-in.md) | +- **Your own domain, or change it**\ + *Where:* Settings, then System, Domain\ + *Checked by:* `domain`\ + *Guide:* [Domains](./domains.md) +- **Email reaches anyone (leave the SES sandbox)**\ + *Where:* The SES console\ + *Checked by:* `email_sandbox`\ + *Guide:* [Email](./email.md) +- **Email from your domain, with DKIM**\ + *Where:* The SES console, and DNS\ + *Checked by:* `email_identity`\ + *Guide:* [Email](./email.md) +- **Sign-up and password emails through SES**\ + *Where:* `email.cognitoUsesSes`\ + *Guide:* [Email](./email.md) +- **Sign in with Google**\ + *Where:* Google Cloud, the secret, `integrations.googleSignIn`\ + *Checked by:* `google_sign_in`\ + *Guide:* [Sign-in and people](./sign-in.md) +- **Invite your team**\ + *Where:* Settings, People\ + *Guide:* [Sign-in and people](./sign-in.md) +- **Anthropic API key (Anthropic provider)**\ + *Where:* Settings, AI models (per team)\ + *Checked by:* `model`\ + *Guide:* [Model providers](./model-providers.md) +- **Models a team uses**\ + *Where:* Settings, AI models\ + *Checked by:* `model`\ + *Guide:* [Model providers](./model-providers.md) +- **Repositories CoderHelm works on**\ + *Where:* Settings, Repositories +- **Slack or Teams notices and alert routes**\ + *Where:* Settings, Alerts\ + *Checked by:* `slack`, `teams`\ + *Guide:* [Integrations](./integrations.md) +- **Jira**\ + *Where:* Settings, Integrations, Jira\ + *Checked by:* `jira`\ + *Guide:* [Integrations](./integrations.md) +- **Connected AWS accounts (logs, metrics)**\ + *Where:* Settings, Integrations, AWS\ + *Guide:* [Integrations](./integrations.md) +- **Knowledge sources (Notion, Confluence, Google Drive and more)**\ + *Where:* Settings, Knowledge; OAuth apps in the secret\ + *Guide:* [Knowledge sources](./knowledge-sources.md) +- **Automatic updates, channel, window, majors**\ + *Where:* Settings, System\ + *Checked by:* `updates`\ + *Guide:* [Updates](./updates.md) +- **Update notices in Slack or Teams**\ + *Where:* `updates.webhookUrl`\ + *Guide:* [Updates](./updates.md) +- **Backups**\ + *Where:* On by the install (point-in-time recovery on every table, versioned bucket); on-demand with `backup`; AWS Backup plans\ + *Guide:* [Backups](./backups.md) +- **Keep data when stacks are deleted**\ + *Where:* `retainData` (on)\ + *Guide:* [Config reference](./config-reference.md) +- **The build sandbox, log analysis, weekly summary**\ + *Where:* `integrations.*`\ + *Guide:* [Integrations](./integrations.md) +- **Support access for install admins**\ + *Where:* Settings, Support access (per team)\ + *Guide:* [Sign-in and people](./sign-in.md) ## Not available yet diff --git a/docs/self-host/troubleshooting.md b/docs/self-host/troubleshooting.md index 41c6b907b..35d1223a3 100644 --- a/docs/self-host/troubleshooting.md +++ b/docs/self-host/troubleshooting.md @@ -16,21 +16,32 @@ In the dashboard, **Settings, then Setup** runs the server-side checks live. Eve Each step checks what you did before it moves on. When a check fails, fix it and press **Enter** to check again; nothing restarts. Type **skip** to go on anyway (the doctor at the end lists it again) or **back** to change an answer. Without a terminal, the install stops with the same text: fix it and run the same command again (it picks up where it stopped), or pass `--skip-checks `. -| Check | Usual fix | -|---|---| -| **Signed in to AWS** | `aws sso login --profile ` (expired), or `aws configure sso` (no profile yet) | -| **The right AWS account** | `export AWS_PROFILE=` | -| **AWS permissions for the install** | The missing actions are listed. Use a role with AdministratorAccess, or ask your AWS admin to allow them. If it says the permissions couldn't be checked, your role lacks `iam:SimulatePrincipalPolicy`: carry on if you have AdministratorAccess | -| **Region has every service** | Pick a region the check doesn't flag (us-east-1, us-west-2, eu-west-1 and eu-central-1 have everything) | -| **CDK set up** | `npx -y cdk bootstrap aws:///` (the installer offers to run it; with a domain outside us-east-1, us-east-1 too). If the `CDKToolkit` stack is in a failed state, delete it first | -| **Route 53 zone** | Create the zone (`aws route53 create-hosted-zone --name --caller-reference `), or leave the hostname empty | -| **Points at Route 53** | Set the NS records at your registrar to the four the check prints; it also shows what public DNS answers now. Changes can take up to an hour | -| **TLS certificate issued** | Add the validation records the check prints, or request a certificate in us-east-1 for the exact hostname | -| **Claude models enabled in Bedrock** | Open the Model access link the check prints and enable the models it names | -| **Anthropic API key works** | 401: copy the key again. 403 or 404: the key's workspace can't use the model. "No credit": add credit in the Anthropic console | -| **Email sender verified** | Add the three DKIM records the check prints at your DNS provider | -| **Email can reach anyone** | A warning: request SES production access with the link the check prints | -| **Slack or Teams webhook** | Create a new incoming webhook; the old one was removed | +- **Signed in to AWS**\ + `aws sso login --profile ` (expired), or `aws configure sso` (no profile yet). +- **The right AWS account**\ + `export AWS_PROFILE=`. +- **AWS permissions for the install**\ + The missing actions are listed. Use a role with AdministratorAccess, or ask your AWS admin to allow them. If it says the permissions couldn't be checked, your role lacks `iam:SimulatePrincipalPolicy`: carry on if you have AdministratorAccess. +- **Region has every service**\ + Pick a region the check doesn't flag (us-east-1, us-west-2, eu-west-1 and eu-central-1 have everything). +- **CDK set up**\ + `npx -y cdk bootstrap aws:///` (the installer offers to run it; with a domain outside us-east-1, us-east-1 too). If the `CDKToolkit` stack is in a failed state, delete it first. +- **Route 53 zone**\ + Create the zone (`aws route53 create-hosted-zone --name --caller-reference `), or leave the hostname empty. +- **Points at Route 53**\ + Set the NS records at your registrar to the four the check prints; it also shows what public DNS answers now. Changes can take up to an hour. +- **TLS certificate issued**\ + Add the validation records the check prints, or request a certificate in us-east-1 for the exact hostname. +- **Claude models enabled in Bedrock**\ + Open the Model access link the check prints and enable the models it names. +- **Anthropic API key works**\ + 401: copy the key again. 403 or 404: the key's workspace can't use the model. "No credit": add credit in the Anthropic console. +- **Email sender verified**\ + Add the three DKIM records the check prints at your DNS provider. +- **Email can reach anyone**\ + A warning: request SES production access with the link the check prints. +- **Slack or Teams webhook**\ + Create a new incoming webhook; the old one was removed. ## Installing diff --git a/docs/self-host/updates.md b/docs/self-host/updates.md index 28bed219f..32b452ae9 100644 --- a/docs/self-host/updates.md +++ b/docs/self-host/updates.md @@ -32,13 +32,16 @@ Turn them on in **Settings, then System**, at install (the install guide's **Mor npx -y github:CoderHelm/coderhelm-platform auto-update on --window "Sun 03:00" --timezone Europe/Berlin --channel stable --majors ask ``` -| Setting | Values | Default | -|---|---|---| -| Auto-update | on, off | off | -| Window | a day (or `daily`) and an hour | Sun 03:00 | -| Time zone | any IANA name | UTC | -| Channel | `stable`, or `preview` for release candidates too | stable | -| Majors | `ask`: a new major version waits for an admin; `auto`: it installs too | ask | +- **Auto-update** *default off*\ + On, off. +- **Window** *default Sun 03:00*\ + A day (or `daily`) and an hour. +- **Time zone** *default UTC*\ + Any IANA name. +- **Channel** *default stable*\ + `stable`, or `preview` for release candidates too. +- **Majors** *default ask*\ + `ask`: a new major version waits for an admin; `auto`: it installs too. The settings take effect at once (no deploy). The same values in `coderhelm.config.json` under `updates` are the starting point of a new install.