Skip to content

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

TypeScript

docs: hosted member-registration onboarding for self-hosted deployments

Jose Ramirez768a9f6dbcba
diff --git a/docs/README.md b/docs/README.md
index b7a6cb1a5..b7eaeec53 100644
--- a/docs/README.md
+++ b/docs/README.md
@@ -50,6 +50,7 @@ Use this index for long-form docs.
| [Configure approvals](how-to/configure-approvals.md) | Human-in-the-loop tool gates |
| [Add an MCP server](how-to/add-mcp-server.md) | Dev-mode JSON or CRD allowlist path |
| [Desktop setup & updates](how-to/desktop-setup-and-updates.md) | Environments, invitation setup, updates |
+| [Member invitations on self-hosted](how-to/member-invitations-self-hosted.md) | Hosted mode zero-config emails vs running your own service |
| [Track usage & set budgets](how-to/token-budgets-and-usage.md) | Enable budgets, scope, block vs warn |
| [Minikube full stack](deploy/minikube.md) | Local Kubernetes platform |
| [Production notes](deploy/production.md) | Checklist and in-repo deploy assets |
diff --git a/docs/concepts/open-core-and-hosted.md b/docs/concepts/open-core-and-hosted.md
index e3e5ec83e..4d4d66050 100644
--- a/docs/concepts/open-core-and-hosted.md
+++ b/docs/concepts/open-core-and-hosted.md
@@ -41,11 +41,13 @@ backend:
control plane that runs the shared service is not.
- **Member registration** — the invitation-signup backend
(`member-registration-service`) is an extracted sibling service, not in this
- repo. It is needed to complete invitation-based signup in *any* deployment,
- single-tenant included — you can still log in and drive agents without it, and
- a self-hoster can point `MEMBER_REGISTRATION_SERVICE_BASE_URL` at their own
- instance. See the
- [member-registration gap](../surfaces/desktop-app.md#the-member-registration-service-gap).
+ repo. Self-hosted deployments don't need to run it: set
+ `CONTROL_API_MEMBER_REGISTRATION_MODE=hosted` and the platform enrolls itself
+ with evenfire's shared registration hub, which sends invitation emails on
+ your behalf — see
+ [member invitations on self-hosted](../how-to/member-invitations-self-hosted.md).
+ Operators who want full control can still run their own instance and point
+ `CONTROL_API_MEMBER_REGISTRATION_SERVICE_BASE_URL` at it.
These gaps are named, not hidden.
diff --git a/docs/how-to/member-invitations-self-hosted.md b/docs/how-to/member-invitations-self-hosted.md
new file mode 100644
index 000000000..5158e0b7f
--- /dev/null
+++ b/docs/how-to/member-invitations-self-hosted.md
@@ -0,0 +1,78 @@
+# How to: set up member invitations on a self-hosted deployment
+
+Self-hosted evenfire can send invitation emails **out of the box** using
+evenfire's shared registration hub — no credentials, no SMTP setup, no extra
+service. You opt in with one environment variable; the platform enrolls itself.
+
+## The zero-config path (hosted mode)
+
+Set on the **control-api** container (in your overlay's ConfigMap):
+
+| Variable | Value |
+|---|---|
+| `CONTROL_API_MEMBER_REGISTRATION_MODE` | `hosted` |
+
+Requirements:
+
+- `CONTROL_API_DESKTOP_PROFILE_UI_BASE_URL` and `CONTROL_API_CONTROL_UI_BASE_URL`
+ must point at **real, publicly resolvable domains** (e.g.
+ `https://profile.acme.com`). Hosted mode refuses `localhost`, IP literals, and
+ dotless hostnames — invitation links are emailed to recipients, so they must
+ resolve outside your machine.
+- Outbound HTTPS from control-api to `registration.evenfire.ai`.
+
+What happens: on boot, control-api registers itself with the hub once per UI
+domain, stores the returned credential encrypted in its own Postgres, and
+reuses it forever after. Invitation, admin-invitation, email-confirmation, and
+admin password-reset emails are then sent from `[email protected]` through
+evenfire's infrastructure. Emailed links pass through a short
+`registration.evenfire.ai/i/…` interstitial that names your domain before
+continuing.
+
+No other configuration is read in hosted mode: the legacy
+`CONTROL_API_MEMBER_REGISTRATION_SERVICE_BASE_URL` value in the base ConfigMap
+and the deploy-injected `CONTROL_API_MEMBER_REGISTRATION_HMAC_SECRET` are both
+ignored by design. If you previously configured a remote identity
+(`CONTROL_API_MEMBER_REGISTRATION_HMAC_KID` /
+`CONTROL_API_MEMBER_REGISTRATION_TENANT_ID`), remove those two variables —
+control-api refuses to start hosted mode while they are set, and the error
+names them.
+
+If the hub is unreachable, control-api still boots (invitations return a clear
+`503 member_registration_unavailable` until enrollment succeeds — it retries
+automatically on the next invite).
+
+To point at a different hub (e.g. staging), set
+`CONTROL_API_MEMBER_REGISTRATION_EXTERNAL_HUB_BASE_URL`.
+
+## The advanced path (remote mode — run your own service)
+
+If you prefer to run your own `member-registration-service` instance (a
+separate repository), leave the mode unset (`remote`) and configure it exactly
+as before:
+
+| Variable | Value |
+|---|---|
+| `CONTROL_API_MEMBER_REGISTRATION_SERVICE_BASE_URL` | your instance, e.g. `http://member-registration-service.registration.svc.cluster.local:8092/api/v1` |
+| `CONTROL_API_MEMBER_REGISTRATION_HMAC_SECRET` | the per-tenant HMAC secret your instance minted |
+| `CONTROL_API_MEMBER_REGISTRATION_HMAC_KID` | the matching key id |
+| `CONTROL_API_MEMBER_REGISTRATION_TENANT_ID` | the matching tenant id |
+
+Email delivery (SMTP/provider) is configured in that service — see its
+repository's docs.
+
+## Choosing
+
+- **Hosted mode**: zero setup, emails "just work", subject to evenfire's
+ per-domain send quotas and abuse controls. Your instance is identified to the
+ hub by your UI domain.
+- **Remote mode**: full control and your own sender identity, at the cost of
+ deploying and operating the service plus email DNS (SPF/DKIM) yourself.
+
+## Related
+
+- [Open core: self-host vs hosted](../concepts/open-core-and-hosted.md) — why
+ this service lives outside the repo
+- [Desktop setup & updates](desktop-setup-and-updates.md) — the invitation flow
+ these emails feed into
+- [Production notes](../deploy/production.md) — deployment checklist
diff --git a/docs/llms.txt b/docs/llms.txt
index 2aa9c5be3..8510a2247 100644
--- a/docs/llms.txt
+++ b/docs/llms.txt
@@ -33,6 +33,7 @@
- Configure approvals: how-to/configure-approvals.md
- Add MCP server: how-to/add-mcp-server.md
- Desktop setup & updates (environments, invitation, updates): how-to/desktop-setup-and-updates.md
+- Member invitations on self-hosted (hosted mode vs your own service): how-to/member-invitations-self-hosted.md
- Track usage & set token budgets: how-to/token-budgets-and-usage.md
- Minikube full stack: deploy/minikube.md
- Production checklist: deploy/production.md