Skip to content

Evenfire is an intelligence layer platform for running LLM agents that take real actions, on your infrastructure

TypeScript

docs: add a self-hosted registry quickstart

Jose Ramirezf72d1bd95a02
diff --git a/docs/README.md b/docs/README.md
index 52b8258c9..8b0c1b481 100644
--- a/docs/README.md
+++ b/docs/README.md
@@ -14,11 +14,12 @@ Use this index for long-form docs.
## Get started
-| Doc | Description |
-| --------------------------------------------- | ------------------------------------ |
-| [Quickstart](get-started/quickstart.md) | Full platform on minikube in minutes |
-| [Learning path](get-started/learning-path.md) | Choose a path by role and goal |
-| [FAQ](faq.md) | Common questions and troubleshooting |
+| Doc | Description |
+| --------------------------------------------------------- | ---------------------------------------------- |
+| [Quickstart](get-started/quickstart.md) | Full platform on minikube in minutes |
+| [Registry quickstart](get-started/registry-quickstart.md) | Connect, install, and publish as a self-hoster |
+| [Learning path](get-started/learning-path.md) | Choose a path by role and goal |
+| [FAQ](faq.md) | Common questions and troubleshooting |
## Concepts
diff --git a/docs/get-started/registry-quickstart.md b/docs/get-started/registry-quickstart.md
new file mode 100644
index 000000000..7133e6d01
--- /dev/null
+++ b/docs/get-started/registry-quickstart.md
@@ -0,0 +1,212 @@
+# Registry quickstart — connect, install, publish
+
+The Evenfire registry (`registry.evenfire.ai`) is a shared catalog of
+**connectors** (MCP servers) and **plugins** (WorkflowRecipes). A **managed**
+deployment is connected for you. A **self-hosted** deployment connects itself,
+once, and from then on can install from the catalog and publish under its own
+`@<org>/` scope.
+
+This guide walks the whole round trip on a local minikube cluster, then notes
+what changes on a real one.
+
+> **What you get:** a connected deployment, a connector and a plugin installed
+> and running in your cluster, an org API key for CI, and your first published
+> entry.
+> **Time:** ~15 minutes once your cluster is up.
+
+## Prerequisites
+
+- A running evenfire platform. If you do not have one, start with the
+ [Quickstart](quickstart.md).
+- An **admin** login for the Control UI.
+- Outbound HTTPS from `control-api` to the registry.
+
+## 1. Confirm self-hosted mode
+
+The connect flow only runs when `control-api` is in self-hosted mode. The
+minikube overlay already sets it, along with the registry URL, in
+`deploy/overlays/minikube/configmaps/control-api-config.yaml`:
+
+```yaml
+CLERUM_REGISTRY_URL: 'https://registry.evenfire.ai'
+REGISTRY_CONNECTION_MODE: 'self-hosted'
+```
+
+Confirm what your cluster is actually running:
+
+```bash
+kubectl -n control-plane get configmap control-api-config \
+ -o jsonpath='{.data.REGISTRY_CONNECTION_MODE}{"\n"}{.data.CLERUM_REGISTRY_URL}{"\n"}'
+```
+
+**On a real cluster**, set these on `control-api`:
+
+| Setting | Value |
+| ------------------------------- | ---------------------------------------------------------------------- |
+| `REGISTRY_CONNECTION_MODE` | `self-hosted`. The default is `managed`, which has nothing to connect. |
+| `CLERUM_REGISTRY_URL` | `https://registry.evenfire.ai` |
+| `CLERUM_REGISTRY_URL_ALLOWLIST` | Only needed for a registry URL that is not built in (comma-separated). |
+
+`https://registry.evenfire.ai` and the in-cluster
+`http://registry-api.registry.svc.cluster.local:8085` are allowlisted by
+default. **`control-api` refuses to start** if `CLERUM_REGISTRY_URL` is set to
+something outside the allowlist, so add the URL before you deploy it.
+
+## 2. Connect
+
+Open **Control UI → Marketplace**. While the deployment is unconnected, the
+catalog shows a banner with a **Connect to registry** button; the panel itself
+lives at **Marketplace → Connect** (`/marketplace/connect`).
+
+1. Enter an **Organization name** and a **Contact email**, then press
+ **Request registration**. The organization name becomes your `@<org>/`
+ publish scope.
+
+ Your `control-api` generates a signing keypair and registers with the
+ registry. The private key never leaves your cluster; it is how the registry
+ recognizes later requests from this deployment.
+
+2. What happens next depends on how the registry is configured:
+ - **Open registration enabled.** The registry approves immediately and the
+ panel finishes connecting on its own. No operator is involved and no claim
+ token is ever shown to a human. If that last step does not land (a network
+ blip, or the registry briefly unavailable), the panel offers **Finish
+ connecting** — press it to retry.
+
+ - **Open registration disabled.** The request lands as **pending** while an
+ Evenfire operator reviews it. On approval you receive a one-time claim
+ token out of band: paste it into the panel and press **Complete
+ connection**. **Refresh status** checks whether the decision has landed.
+
+3. The panel reports **connected**. Your deployment now holds machine
+ credentials for the catalog, publishing, and image push/pull.
+
+> ⚠️ **Do not press Start over** unless the panel explicitly tells you to. It
+> permanently deletes this deployment's registry credentials and gives up the
+> organization name, and you must then register under a **different** name. A
+> suspended deployment can be reversed by Evenfire; a destroyed keypair cannot.
+
+For the full state machine and every failure branch, see
+[Connect to the registry](../how-to/connect-to-registry.md).
+
+## 3. Install a connector
+
+**Marketplace → Connectors** lists the MCP servers in the catalog. Pick one and
+press **Install**.
+
+| Field | Notes |
+| --------------- | ------------------------------------------------------------------------------------------------- |
+| **Name** | Optional. Left blank, it is generated from the entry name and version. Must be a valid K8s name. |
+| **Context** | **Required.** The agent context that gets the tool. |
+| **Credentials** | Only if the entry declares them. Fill in **all** fields or **none** (empty installs it pending). |
+| **Egress** | Review the external hosts the connector needs. Default-deny networking means unlisted hosts fail. |
+
+The install runs as a server-side saga: it verifies the bundle digest, creates
+the `McpServer`, wires it into the context, and rolls back if a step fails.
+
+Verify it landed:
+
+```bash
+kubectl -n mcp-server get mcpservers
+```
+
+## 4. Install a plugin
+
+**Marketplace → Plugins** lists WorkflowRecipes. **Install** opens a three-step
+review:
+
+1. **Package** — the recipe manifest as published.
+2. **Security** — manifest validation plus the egress bindings each workload
+ needs. Edit them here before anything is created.
+3. **Install** — the final manifest, then the `WorkflowRecipe` is created.
+
+Recipes are stored in `sandbox-recipes`, alongside the coordinator and mcp-host
+pods they orchestrate:
+
+```bash
+kubectl -n sandbox-recipes get workflowrecipes
+```
+
+## 5. Mint an org API key
+
+The Control UI publishes using the credential stored at connect time, so
+nothing more is needed to publish by hand. **CI and scripts** need an org API
+key (`efrk_…`).
+
+Open **Marketplace → API keys** (`/marketplace/keys`) and press **+ Create
+key**. On self-hosted, registry authentication switches on automatically the
+moment the deployment holds machine credentials, which is as soon as step 2
+finished. There is no flag to set and no restart.
+
+The key is org-scoped, long-lived, revocable, and **shown once**. Pass it
+through an environment variable or CI secret. Never a CLI flag, a Makefile, a
+committed file, or logs.
+
+```bash
+curl -s -H "Authorization: Bearer $REGISTRY_API_KEY" \
+ https://registry.evenfire.ai/api/v1/whoami
+# → {"type":"machine","orgName":"<org>","scopes":["registry:publish", …]}
+```
+
+## 6. Publish your first entry
+
+### From the Control UI
+
+**Marketplace → + Publish to Marketplace**. Choose **Connector** or **Plugin**,
+then fill in the required fields:
+
+- Both: **Name**, **Version**, **Author**, **Description**.
+- Connector: **Image Ref** (local mode) or **Endpoint URL** (remote mode).
+- Plugin: the **Plugin YAML / JSON** body.
+
+**Visibility** is `public` or `private`. A `@<org>/`-scoped entry is surfaced to
+your own org's clusters and members either way, not to the global anonymous
+marketplace.
+
+### From CI
+
+```bash
+curl -s -X POST https://registry.evenfire.ai/api/v1/entries \
+ -H "Authorization: Bearer $REGISTRY_API_KEY" \
+ -H "Content-Type: application/json" -d @entry.json
+```
+
+Two rules trip up most first publishes:
+
+1. The name **must** be scoped `@<org>/<name>`. A bare name is rejected with
+ `400 scope_required`, and `@clerum` / `@evenfire` names are curator-only.
+2. For a recipe, the bare `<name>` **must equal** the recipe's
+ `metadata.name`, not your repo name. A mismatch is `400 INVALID_INPUT`.
+
+Field-by-field reference and the update/delete routes are in
+[Publish a plugin to the registry](../how-to/publish-plugin-to-registry.md).
+
+## Troubleshooting
+
+| Symptom | Cause and fix |
+| ----------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------- |
+| `control-api` will not start, complains about the URL | `CLERUM_REGISTRY_URL` is not in the allowlist. Add it to `CLERUM_REGISTRY_URL_ALLOWLIST` (see step 1). |
+| No Connect panel, no banner | The deployment is in `managed` mode. Managed deployments are connected for you and have nothing to configure. |
+| Request **rejected** | An operator declined, most often an org-name conflict. Adjust the requested name and register again. |
+| Claim token expired or rejected | Tokens are single-use and time-limited. Ask the operator to re-issue. |
+| Connect panel stuck mid-connect | Press **Finish connecting**. Reach for **Start over** only when the panel says the credentials were issued but never stored. |
+| `409 CONFLICT` on publish | That `name` + `version` already exists. Bump the version; versions are immutable. |
+| `400 scope_required` on publish | The entry name is unscoped. Use `@<org>/<name>`. |
+| `422` naming the `imageRef` | For an evenfire-hosted local plugin the image repo must equal the entry name, or the cross-org pull is denied at install time. |
+| `403` when managing **grants** | Expected. Deployments that onboarded through self-hosted connect do not hold `registry:grant`. Receiving and installing granted plugins still works. |
+| Connector installed but cannot reach its API | Egress. Default-deny networking blocks anything not declared in the install's egress step. |
+
+## Next steps
+
+- [Connect to the registry](../how-to/connect-to-registry.md) — every connect
+ state and recovery path.
+- [Publish a plugin to the registry](../how-to/publish-plugin-to-registry.md) —
+ the full publish API, updates, visibility.
+- [`@clerum/workflow-sdk`](../../packages/workflow-sdk/README.md) and the
+ [WorkflowRecipe CRD](../crds/workflowrecipe.md) — building the plugin you
+ publish.
+- [Open core: self-host vs hosted](../concepts/open-core-and-hosted.md) — what
+ lives in this repo versus the managed service.
+
+> The registry service itself is part of Evenfire's managed offering, not this
+> repository. This guide covers only the self-hoster's side of the flow.
diff --git a/docs/how-to/connect-to-registry.md b/docs/how-to/connect-to-registry.md
index 0c48eaea5..2d51fdebf 100644
--- a/docs/how-to/connect-to-registry.md
+++ b/docs/how-to/connect-to-registry.md
@@ -22,8 +22,8 @@ and use registry SSO from your Control UI.
## Connect
-Open **Control UI → Registry → Connect** (`/registry/connect`). The panel walks
-one of two state machines, depending on how the registry is configured:
+Open **Control UI → Marketplace → Connect** (`/marketplace/connect`). The panel
+walks one of two state machines, depending on how the registry is configured:
- Auto-approved: `disconnected → connecting → connected`
- Operator-approved: `disconnected → pending → approved → connected`
diff --git a/docs/llms.txt b/docs/llms.txt
index eab3201e1..19a3d7225 100644
--- a/docs/llms.txt
+++ b/docs/llms.txt
@@ -7,6 +7,7 @@
- README: ../README.md — product pitch, security model, CRDs, license
- Quickstart: get-started/quickstart.md — full platform on minikube, one command
+- Registry quickstart: get-started/registry-quickstart.md — self-hosted connect → install → publish round trip
- Learning path: get-started/learning-path.md
- FAQ: faq.md