Skip to content

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

TypeScript

docs: correct the image push rules against the registry source

Jose Ramirezd3f4aabca2cb
diff --git a/docs/get-started/registry-quickstart.md b/docs/get-started/registry-quickstart.md
index 612a0e6aa..a53e1820c 100644
--- a/docs/get-started/registry-quickstart.md
+++ b/docs/get-started/registry-quickstart.md
@@ -158,21 +158,31 @@ docker tag my-connector:local registry.evenfire.ai/acme/db-tools:1.4.0
docker push registry.evenfire.ai/acme/db-tools:1.4.0
```
-Three ways this goes wrong:
-
-- **The `@` does not belong in the image path.** The entry is `@acme/db-tools`;
- the image is `registry.evenfire.ai/acme/db-tools`. Docker reads `@` as the
- digest delimiter and rejects the reference outright.
-- **The org segment is not optional.** `registry.evenfire.ai/db-tools` sits
- outside your namespace, which is all your key grants. Host, then org, then
- name, every time.
-- **`<name>` must equal the entry's name.** The pull grant is resolved from the
- OCI path, so `@acme/db-tools` published against
- `registry.evenfire.ai/acme/dbtools` is rejected with a `422` at publish and
- again at install. Left unchecked it would deny the pull and show up as an
- `ImagePullBackOff` in someone else's cluster.
-
-The tag is yours to pick — only the repo path is matched against the entry name.
+The path is **exactly two segments**, `<org>/<name>`, each lowercase
+alphanumerics separated by single `.`, `_`, or `-`. Every catalog entry looks
+like `registry.evenfire.ai/evenfire/mcp-whois:1.0.0`.
+
+| Wrong | Why |
+| --------------------- | --------------------------------------------------------------------- |
+| `/@acme/db-tools` | The `@` belongs to the entry name only. Docker rejects the reference. |
+| `/db-tools` | No org segment, and your key only grants `<org>/…`. |
+| `/acme/team/db-tools` | Three segments. Nested namespaces are rejected. |
+| `/Acme/DB-Tools` | Uppercase is invalid. |
+
+A malformed path **fails silently** — the registry drops the unparseable scope,
+so you get a token with no access and a plain denial from Docker. Two other
+quiet denials: a key without the `registry:publish` scope, and exceeding the
+self-hosted quota of **10 repos / 2 GiB / 200 entry versions**.
+
+`<name>` must also equal the entry's name. `@acme/db-tools` published against
+`registry.evenfire.ai/acme/dbtools` is rejected with a `422` at publish and
+again at install, since a mismatch denies the pull and surfaces as an
+`ImagePullBackOff` in someone else's cluster. The tag is yours to pick.
+
+> **Your images are private and stay that way.** An org that onboarded through
+> open registration cannot flip a repo public (`403 selfhosted_public_disabled`)
+> and does not hold `registry:grant`. They install into your own clusters
+> fine; sharing one with another organization needs Evenfire.
## 7. Publish your first entry
@@ -209,21 +219,22 @@ Field-by-field reference and the update/delete routes are in
## 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. |
-| `org_name_taken` on registration | Another deployment holds that organization name. Pick a different one and register again. Nothing was saved. |
-| `org_blocklisted` on registration | The name is reserved. Pick a different one. |
-| Connect panel stuck at **Finishing the connection** | The inline redeem did not land. Press **Finish connecting**; it needs no token. Reach for **Start over** only when the panel says the credentials were issued but never stored. |
-| `deployment_suspended` | Evenfire suspended the deployment. Contact support. Do **not** press Start over: a suspension is reversible, a destroyed keypair is not. |
-| `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>`. |
-| `invalid reference format` from `docker` | The `@` scope prefix is in the image path. It belongs in the entry name only: push to `registry.evenfire.ai/<org>/<name>`, not `/@<org>/<name>`. |
-| `docker push` denied | The path is missing the org segment, or you logged in as something other than the literal username `_`. Your key grants `<org>/…` and nothing above it. |
-| `422` naming the `imageRef` | The image repo path does not equal the entry name. `@acme/db-tools` needs `registry.evenfire.ai/acme/db-tools`. Checked at publish and install, since a mismatch denies the pull. |
-| `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. |
+| 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. |
+| `org_name_taken` on registration | Another deployment holds that organization name. Pick a different one and register again. Nothing was saved. |
+| `org_blocklisted` on registration | The name is reserved. Pick a different one. |
+| Connect panel stuck at **Finishing the connection** | The inline redeem did not land. Press **Finish connecting**; it needs no token. Reach for **Start over** only when the panel says the credentials were issued but never stored. |
+| `deployment_suspended` | Evenfire suspended the deployment. Contact support. Do **not** press Start over: a suspension is reversible, a destroyed keypair is not. |
+| `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>`. |
+| `invalid reference format` from `docker` | The `@` scope prefix is in the image path. It belongs in the entry name only: push to `registry.evenfire.ai/<org>/<name>`, not `/@<org>/<name>`. |
+| `docker push` denied, credential is good | Three quiet causes, likeliest first: a malformed repo path (the scope is dropped, not rejected), a key without `registry:publish`, or the self-hosted quota (10 repos / 2 GiB / 200 versions). |
+| `403 selfhosted_public_disabled` | An open-registration org cannot make an image repo public. Images stay private to your org; cross-org sharing needs a grant Evenfire issues. |
+| `422` naming the `imageRef` | The image repo path does not equal the entry name. `@acme/db-tools` needs `registry.evenfire.ai/acme/db-tools`. Checked at publish and install, since a mismatch denies the pull. |
+| `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
diff --git a/docs/how-to/publish-plugin-to-registry.md b/docs/how-to/publish-plugin-to-registry.md
index cd39f0e88..868ceda98 100644
--- a/docs/how-to/publish-plugin-to-registry.md
+++ b/docs/how-to/publish-plugin-to-registry.md
@@ -41,6 +41,15 @@ downloadable `dockerconfigjson` for CI, and your exact push coordinate. A key
minted at **Marketplace → API keys** works identically — both are `efrk_` org
keys.
+Your key needs the **`registry:publish`** scope. Without it the registry still
+issues a token, but with the push action stripped, so the push is denied with no
+message explaining why. Check first:
+
+```bash
+curl -s -H "Authorization: Bearer $REGISTRY_API_KEY" \
+ https://registry.evenfire.ai/api/v1/whoami # scopes must include registry:publish
+```
+
Log in with the literal username `_`:
```bash
@@ -54,40 +63,71 @@ docker tag my-connector:local registry.evenfire.ai/acme/db-tools:1.4.0
docker push registry.evenfire.ai/acme/db-tools:1.4.0
```
-### Four things that go wrong here
+### The repo path is stricter than Docker's
+
+The registry accepts **exactly two segments**, `<org>/<name>`, each matching
+`^[a-z0-9]+(?:[._-][a-z0-9]+)*$`. Every entry in the catalog looks like
+`registry.evenfire.ai/evenfire/mcp-whois:1.0.0` — host, org, name, tag.
-1. **No `@` in the image path.** The entry is named `@acme/db-tools`, but the
- image is `registry.evenfire.ai/acme/db-tools:1.4.0`. Docker reads `@` as the
- digest delimiter and refuses `registry.evenfire.ai/@acme/…` outright with
- `invalid reference format`. The scope prefix belongs in the entry name and
- nowhere else.
+| Wrong | Why |
+| ----------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
+| `registry.evenfire.ai/@acme/db-tools` | The `@` belongs to the **entry name**, never the image path. Docker reads it as the digest delimiter and refuses the reference outright with `invalid reference format`. |
+| `registry.evenfire.ai/db-tools` | One segment. There is no namespace, and your key only grants `<org>/…`. |
+| `registry.evenfire.ai/acme/team/db-tools` | Three segments. Nested namespaces are rejected — a path must resolve unambiguously to one org and one repo. |
+| `registry.evenfire.ai/Acme/DB-Tools` | Uppercase. Segments are lowercase alphanumerics separated by single `.`, `_`, or `-`. |
+| `registry.evenfire.ai/acme/db__tools` | Doubled separator. Also no leading or trailing separator. |
-2. **The org segment is not optional.** `registry.evenfire.ai/db-tools:1.4.0`
- is outside your namespace, and your key only grants `<org>/…`. The path is
- always host, then org, then name.
+**A malformed path fails silently.** The registry drops an unparseable scope
+rather than erroring on it, so you get a token carrying no access and Docker
+reports a plain denial. If a push is refused and the credential is definitely
+good, re-read the path before anything else.
-3. **`<name>` must equal the entry's name.** For an evenfire-hosted local
- plugin, the pull grant is resolved from the OCI path as
- `@<org>/<name>`, so the image repo path has to match the entry exactly.
- Publishing `@acme/db-tools` with an `imageRef` of
- `registry.evenfire.ai/acme/dbtools` is rejected with a `422` naming both
- values. The check runs at publish **and** at install, because a mismatch
- would otherwise deny the cross-org pull and surface as a silent
- `ImagePullBackOff` in someone else's cluster.
+### Three more things that go wrong
-4. **Docker manifest format.** The registry advertises
+1. **`<name>` must equal the entry's name.** For an evenfire-hosted local
+ plugin, the pull grant is resolved from the OCI path as `@<org>/<name>`, so
+ the image repo path has to match the entry exactly. Publishing
+ `@acme/db-tools` with an `imageRef` of `registry.evenfire.ai/acme/dbtools`
+ is rejected with a `422` naming both values. The check runs at publish
+ **and** at install, because a mismatch would otherwise deny the cross-org
+ pull and surface as a silent `ImagePullBackOff` in someone else's cluster.
+
+2. **Docker manifest format.** The registry advertises
`http.compat: ["docker2s2"]`, so Docker schema-2 manifests are accepted and a
plain `docker push` works. If your tooling emits OCI-only images and the push
is rejected, re-tag to Docker manifest format.
-The **tag** is yours to choose. Only the repo path (`<org>/<name>`) is checked
-against the entry name, so a tag that differs from the entry `version` is
-allowed — though matching them keeps things legible.
+3. **Quotas apply to self-hosted orgs.** A deployment that onboarded through
+ open registration gets **10 image repos**, **2 GiB** of storage, and **200
+ entry versions** by default. Exceeding a limit denies the push the same
+ quiet way a bad path does — the token comes back without the push action.
+ The 11th repo is the usual surprise; delete an unused one or ask Evenfire to
+ raise the cap.
+
+The **tag** is yours to choose. Only the repo path is checked against the entry
+name, so a tag that differs from the entry `version` is allowed, though the
+catalog convention is to match them.
For CI, download the `dockerconfigjson` and mount it as `~/.docker/config.json`
or a Kubernetes `dockerconfigjson` secret. Keys are listable and revocable from
the same panel.
+### Who can pull what you pushed
+
+Images you push are **private to your org**, and a self-hosted deployment cannot
+change that:
+
+- Flipping an image repo to public returns `403 selfhosted_public_disabled` for
+ any org that onboarded through open registration. The block exists to stop
+ unmetered anonymous-pull egress.
+- Cross-org pull needs a **grant**, and a self-hosted deployment's credentials
+ carry `registry:read`, `registry:publish`, `registry:update`, and
+ `registry:delete` — not `registry:grant`.
+
+So your images install cleanly into your own clusters. Sharing one with another
+organization currently needs Evenfire to issue the grant. Plan around that
+before you build a distribution story on top of a self-hosted push.
+
## 3. Publish — `POST /api/v1/entries`
Required fields: `name` (**`@<org>/<name>`**), `version` (semver), `entryType`