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
22 changes: 15 additions & 7 deletions docs/self-host/hybrid.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ A **hybrid** install runs entirely in your AWS account, like any self-hosted Cod
| **A CoderHelm address**, `yourname.coderhelm.com` | buying a domain and adding DNS records | a real address with HTTPS in a few minutes, set up end to end |
| **CoderHelm's GitHub App**, through the event relay | creating and keeping your own GitHub App | install one app on your organization; events and tokens arrive at your install |
| **CoderHelm's Jira app**, through the event relay | setting up your own Jira app | link your Jira site once; its events arrive at your install, without the app's secret |
| **CoderHelm's integration apps** (Notion, Confluence, Google Drive) | registering an app with each provider | sign in with one click, as on coderhelm.com |
| **CoderHelm's integration apps** (Notion, Confluence, Google Drive, Figma, and any CoderHelm adds later) | registering an app with each provider | sign in with one click, as on coderhelm.com |

Each part is a separate choice, at install time (the [install guide](/self-host/install/)) or later in **Settings, System, Hybrid**. **Fully private** (your own domain or the AWS address, your own GitHub App and apps) sends nothing to CoderHelm and needs no registration.

On a hybrid install, every tool under **Other apps** (Jira, Notion, Confluence, Google Drive) uses CoderHelm's app unless you choose **Use my own app (fully private)** for it ([Other apps](#other-apps)). That only decides which app a sign-in goes through: nothing reaches your install or CoderHelm until someone connects the tool.
On a hybrid install, **Other apps** is one choice for the whole install: **Use Coderhelm's apps (easiest)**, the default, or **Fully private** ([Other apps](#other-apps)). That only decides which app a sign-in goes through: nothing reaches your install or CoderHelm until someone connects a tool.

## Trust model

Expand Down Expand Up @@ -148,12 +148,20 @@ The Setup checks show the link as `hybrid_jira` (in Settings, Setup and the inst

## Other apps

**Settings, System, Hybrid, Other apps** lists each tool with **Use Coderhelm's app (easiest)** or **Use my own app (fully private)**, and one line on what passes through CoderHelm for it. The install guide offers the same choices under **What CoderHelm sets up for you**, all on, and applies them when the install registers.
**Settings, System, Hybrid, Other apps** is one choice for the whole install. The install guide offers the same choice under **What CoderHelm sets up for you** and applies it when the install registers.

- **CoderHelm's app is the default** for each tool nobody chose, on a new install and on an install that registered before these choices existed. A tool for which your install already has its own app set up (its own Notion, Atlassian or Google client in its secret) keeps using that until you pick CoderHelm's.
- **A choice is kept.** Picking **Use my own app** for a tool, in Settings or the guide, stays until you change it. An install whose admin had already turned some tools on under Other apps keeps the others on its own app.
- **Nothing starts by itself.** With CoderHelm's app chosen, **Connect** on that tool signs in through CoderHelm's app; until someone connects, no sign-in exists, no event is relayed and nothing is synced. Jira events come through only once CoderHelm's Jira app is installed on your site with your install id, or a site is linked.
- **A tool CoderHelm can't offer yet** (its app for that provider isn't set up on the hosted side) shows **Coderhelm's app isn't set up yet** and uses your own app until it is.
- **Use Coderhelm's apps (easiest)** is the default. Every tool CoderHelm has an app for uses it: today Jira, Notion, Confluence, Google Drive and Figma. A tool CoderHelm adds in a later release is on as soon as your install runs that release, with nothing more to choose.
- **Fully private** means no tool signs in or sends events through CoderHelm. Each tool uses your team's own app, which you set up on that tool's card in **Settings, Integrations**.

GitHub is not part of this choice: it keeps its own, under **GitHub** on the same page.

A few things hold either way:

- **Your own app wins.** A tool for which your install has its own app set up (its own Notion, Atlassian, Google or Figma client in its secret) always uses that app, whichever option you chose.
- **Nothing starts by itself.** With CoderHelm's apps, **Connect** on a tool signs in through CoderHelm's app; until someone connects, no sign-in exists, no event is relayed and nothing is synced. Jira events come through only once CoderHelm's Jira app is installed on your site with your install id, or a site is linked.
- **A tool CoderHelm can't offer yet** (its app for that provider isn't set up on the hosted side) is shown as not ready and uses your own app until it is.

An install that chose per tool in an earlier release moves to this choice once, on its first start after the update: if any tool was on CoderHelm's app, it gets **Use Coderhelm's apps**; if every tool chosen was on its own app, it gets **Fully private**. For one release, the settings API still takes the older `apps` (per tool) and `integrations` fields: any tool on CoderHelm's app means CoderHelm's apps, and only own apps means fully private. New callers send `apps_mode`, `coderhelm` or `private`.

## Integrations

Expand Down
6 changes: 3 additions & 3 deletions docs/self-host/integrations.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,18 +102,18 @@ New Relic, Confluence, OpenSearch, REST APIs, SQL databases, CloudWatch metrics
Nothing. Servers that support OAuth dynamic client registration register your install by themselves the first time someone signs in. The redirect URI is your install's `https://coderhelm.example.com/settings/integrations/mcp-callback/`, and the add flow shows it for servers that need an app registered by hand.
- **Figma**\
Figma's MCP server signs in only apps Figma approved, so CoderHelm runs Figma's tools against Figma's API with a sign-in (or a personal access token). Three ways, in Settings, Integrations, Figma:
- **Sign in with Figma** (CoderHelm's app): with hybrid, choose CoderHelm's app for Figma (Settings, Version and updates, Hybrid, or on the Figma card) and sign in. Nothing to create. CoderHelm keeps the sign-in (encrypted) and hands your install access tokens that expire within ten minutes; agents call Figma from your install.
- **Sign in with Figma** (CoderHelm's app): on a hybrid install that uses Coderhelm's apps (the default, in Settings, System, Hybrid, Other apps), sign in. Nothing to create. CoderHelm keeps the sign-in (encrypted) and hands your install access tokens that expire within ten minutes; agents call Figma from your install.
- **Use my own Figma app**: create the app at https://www.figma.com/developers/apps under your Figma team or organization, add the redirect URI above, give it the `current_user:read` and `file_content:read` scopes, and publish it as a private app (no review from Figma; people in that team or organization can sign in). Paste its client id and secret there, then select Connect.
- **For every team on the install**: put a Figma app's `figma_client_id` and `figma_client_secret` in the install's secret. The card's Sign in with Figma then uses it, with no hybrid.
- **With hybrid**\
MCP sign-ins go to your install directly, except Figma when CoderHelm's app is chosen for it (above).
MCP sign-ins go to your install directly, except Figma when the install uses Coderhelm's apps and has no Figma app of its own (above).

## Knowledge sources

- **What you need**\
Sanity, GitHub and website sources work with nothing to set up. Notion and Confluence work with a token pasted in the add flow. One-click sign-in for Notion, Confluence and Google Drive, and instant updates from Notion, need OAuth apps of your own, registered with your install's redirect URI. See [Knowledge sources](./knowledge-sources.md).
- **With hybrid**\
CoderHelm's Notion, Confluence and Google Drive apps can sign you in instead. This only works on your install's CloudFront address or its `<name>.coderhelm.com` address, not on a domain of your own yet. With CoderHelm's Notion app there are no instant updates: those sources sync every hour.
With Coderhelm's apps (the default under Settings, System, Hybrid, Other apps), CoderHelm's Notion, Confluence and Google Drive apps sign you in instead. This only works on your install's CloudFront address or its `<name>.coderhelm.com` address, not on a domain of your own yet. With CoderHelm's Notion app there are no instant updates: those sources sync every hour.

## Plugins

Expand Down
2 changes: 1 addition & 1 deletion docs/self-host/setup-checks.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ The guide's checks come from the install's public `GET /api/setup/status`, the s
- `domain`: when you chose your own domain, the guide shows a Domain step between AWS and GitHub, checks until the code is `ok`, then follows the install to the domain (so the GitHub App gets the domain's URLs). The records to add are in Settings, then System. You can skip it and add the domain later there.
- `github_manifest_ready`: one click when true; the terminal command (`pull`, then `github-app`) when false.
- `setup_open: false` (someone has signed up): the install is shown as ready. A hybrid install with **Link through CoderHelm** on still reports `hybrid_jira` then, because linking a Jira site needs an install admin: the guide's Jira step follows it until `ok`.
- `POST /api/setup/hybrid/settings` (with the setup key, while nobody has signed up) takes `github_mode`, `sharing`, `jira_link` and `apps` (per tool, `{"jira": "coderhelm" | "own", "notion": …, "confluence": …, "google_drive": …}`); the guide sends `jira_link: true` when **Use CoderHelm's Jira app** is on, so the install reports `hybrid_jira` from then on, and `apps` with each **Other apps** choice (all `coderhelm` unless turned off).
- `POST /api/setup/hybrid/settings` (with the setup key, while nobody has signed up) takes `github_mode`, `sharing`, `jira_link` and `apps_mode` (`coderhelm` or `private`, the **Other apps** choice). The guide sends `jira_link: true` when **Use CoderHelm's Jira app** is on, so the install reports `hybrid_jira` from then on. For one release it also sends the older per-tool `apps` with the same meaning, so an install on an earlier release takes the choice too.

The answer carries no ids or URLs, so the guide makes its own links: the Bedrock console for the region it launched in, the models a new install calls (the release's defaults with the region's inference profile prefix), the SES console for that region, and `https://github.com/apps/<slug>/installations/new` from the slug the manifest landing hands back.

Expand Down
7 changes: 4 additions & 3 deletions services/common/src/hybrid/integrations.rs
Original file line number Diff line number Diff line change
Expand Up @@ -135,9 +135,10 @@ pub fn hosted_ids() -> impl Iterator<Item = &'static str> {
.map(|e| e.id)
}

/// The tools an install picks an app for, one by one (Settings, System,
/// Hybrid, Other apps, and the install guide): every hosted one but GitHub,
/// which has its own choice.
/// The tools the install-wide Other apps choice covers (Settings, System,
/// Hybrid, and the install guide): every hosted one but GitHub, which has its
/// own choice. An entry added here is on for every install that chose
/// CoderHelm's apps, with nothing more to choose.
pub fn app_choice_ids() -> impl Iterator<Item = &'static str> {
hosted_ids().filter(|id| *id != "github")
}
Expand Down
Loading
Loading