Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 21 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -181,12 +181,19 @@ jobs:
# The publish job uploads this same launch-stack.yaml to S3.
node selfhost/launch/stamp-template.mjs infra/cfn/coderhelm-selfhost-launch.yaml "$TAG" > dist/launch-stack.yaml
cp selfhost/launch/bootstrap.mjs dist/launch-bootstrap.mjs
# The read-only role teams create in their own AWS accounts, and the
# stack that brings an existing role up to date: byte for byte the
# templates built into this release's gateway
# (services/common/src/log_reader.rs), published by version so a
# self-hosted install's Launch Stack links match its code.
cp infra/cfn/coderhelm-log-reader.yaml dist/coderhelm-log-reader.yaml
cp infra/cfn/coderhelm-log-reader-update.yaml dist/coderhelm-log-reader-update.yaml
# The models this release calls, read from the code, with their
# Bedrock ids per inference profile prefix. In the signed
# SHA256SUMS: the updater reads it only through the update build,
# after the signature check (lambda/updater, model_check).
node selfhost/launch/release-models.mjs "$TAG" > dist/models.json
(cd dist && sha256sum gateway.zip worker.zip mcp-proxy.zip dashboard.tar.gz source.tar.gz coderhelm-selfhost.tgz install.sh launch-stack.yaml launch-bootstrap.mjs models.json > SHA256SUMS)
(cd dist && sha256sum gateway.zip worker.zip mcp-proxy.zip dashboard.tar.gz source.tar.gz coderhelm-selfhost.tgz install.sh launch-stack.yaml launch-bootstrap.mjs models.json coderhelm-log-reader.yaml coderhelm-log-reader-update.yaml > SHA256SUMS)
cat dist/SHA256SUMS

# The release's own CDK app synthesizes for a fresh self-host config.
Expand Down Expand Up @@ -264,6 +271,8 @@ jobs:
dist/launch-bootstrap.mjs
dist/launch-stack.yaml
dist/models.json
dist/coderhelm-log-reader.yaml
dist/coderhelm-log-reader-update.yaml

# A published release's files are never replaced: a re-run only fills in
# a release that has no SHA256SUMS yet (one made by hand, without
Expand Down Expand Up @@ -298,7 +307,7 @@ jobs:
role-to-assume: arn:aws:iam::${{ secrets.AWS_ACCOUNT_ID }}:role/coderhelm-prod-release-publisher
role-duration-seconds: 3600
aws-region: us-east-1
- name: Upload the template and latest.json
- name: Upload the templates and latest.json
run: |
key="launch/$TAG/coderhelm-launch.yaml"
url="https://$PUBLIC_BUCKET.s3.amazonaws.com/$key"
Expand All @@ -309,6 +318,16 @@ jobs:
aws s3api put-object --bucket "$PUBLIC_BUCKET" --key "$key" --body dist/launch-stack.yaml --if-none-match '*' \
--content-type text/yaml --cache-control "public, max-age=31536000, immutable" >/dev/null
fi
# The AWS role templates, by version, written once the same way.
for f in coderhelm-log-reader.yaml coderhelm-log-reader-update.yaml; do
k="launch/$TAG/$f"
if curl --proto =https -fsSL -o "$RUNNER_TEMP/existing-$f" "https://$PUBLIC_BUCKET.s3.amazonaws.com/$k"; then
cmp -s "$RUNNER_TEMP/existing-$f" "dist/$f" || { echo "::error::$k already holds another template"; exit 1; }
else
aws s3api put-object --bucket "$PUBLIC_BUCKET" --key "$k" --body "dist/$f" --if-none-match '*' \
--content-type text/yaml --cache-control "public, max-age=31536000, immutable" >/dev/null
fi
done
# Pre-releases (v1.2.3-rc.1) are published by version but never become latest,
# and latest.json only ever moves forward.
if [[ "$TAG" =~ ^v[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
Expand Down
2 changes: 1 addition & 1 deletion docs/self-host/check-your-install.md
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ Install admins (`admins` in the config) who are team admins can call these while
}
```

`status` is `pass`, `warn`, `fail` or `skip` (an optional integration that isn't set up). `fix` has `text` and any of `command` (to copy), `url` (outside CoderHelm) and `href` (a dashboard page). `ready` is true when nothing fails. Keys: `url`, `domain`, `github_keys`, `github_app`, `github_permissions`, `github_installations`, `github_webhook`, `email_identity`, `email_sandbox`, `model`, `dlq`, `updates`, `slack`, `teams`, `jira`, `google_sign_in`.
`status` is `pass`, `warn`, `fail` or `skip` (an optional integration that isn't set up). `fix` has `text` and any of `command` (to copy), `url` (outside CoderHelm) and `href` (a dashboard page). `ready` is true when nothing fails. Keys: `url`, `domain`, `github_keys`, `github_app`, `github_permissions`, `github_installations`, `github_webhook`, `email_identity`, `email_sandbox`, `model`, `dlq`, `updates`, `slack`, `teams`, `jira`, `aws_connections`, `google_sign_in`.

### `GET /api/system/domain`, `PUT /api/system/domain`, `DELETE /api/system/domain`

Expand Down
9 changes: 5 additions & 4 deletions docs/self-host/config-reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -141,8 +141,8 @@ These are the starting point; admins change them in **Settings, then System** wi
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.
- **`logReaderTemplateUrl`** *string, default this release's published copy*\
The CloudFormation template teams create the read-only AWS role from. By default a release links to the copy published with it (`https://coderhelm-public.s3.amazonaws.com/launch/<version>/coderhelm-log-reader.yaml`, byte for byte the template built into that release); a development build links to CoderHelm's current copy. To host it yourself, put this release's `infra/cfn/coderhelm-log-reader.yaml` and `coderhelm-log-reader-update.yaml` side by side in an S3 bucket and set this to the first one's URL. Setup checks compare both with the release.
- **`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`*\
Expand All @@ -164,8 +164,9 @@ The CDK app turns the config into environment variables on the gateway, streamin
| `PUBLIC_URL_PARAMETER` | The SSM parameter that holds the CloudFront URL, when you have no domain |
| `SELF_HOSTED` | `1` on every self-hosted install: links never fall back to CoderHelm's hosted addresses, and support goes to `SUPPORT_INBOX` |
| `SITE_URL` | `siteUrl` |
| `CODERHELM_ACCOUNT_ID` | `account` (the account teams' read-only roles trust) |
| `LOG_READER_TEMPLATE_URL` | `logReaderTemplateUrl` |
| `CODERHELM_ACCOUNT_ID` | `account` (the account teams' read-only roles trust; a self-hosted install never falls back to CoderHelm's) |
| `LOG_READER_TEMPLATE_URL` | `logReaderTemplateUrl`, or this release's published copy |
| `RESOURCE_PREFIX` | `resourcePrefix` (a self-hosted install's role link narrows the role's trust to roles named `<prefix>-*`) |
| `PLATFORM_ADMIN_EMAILS` | `admins` |
| `CODERHELM_VERSION`, `CODERHELM_COMMIT`, `CODERHELM_RELEASED_AT`, `CODERHELM_CONFIG_FINGERPRINT` | The release stamp and a hash of the config |
| `UPDATER_FUNCTION_NAME` | The updater, when `updates.enabled` |
Expand Down
Loading
Loading