Skip to content

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

TypeScript

docs: connecting is now sufficient to enable registry auth in self-hosted

Jose Ramirezce18c093e1cc
diff --git a/control-ui/components/RegistryApiKeysPanel.tsx b/control-ui/components/RegistryApiKeysPanel.tsx
index fe86c393b..9f647be5d 100644
--- a/control-ui/components/RegistryApiKeysPanel.tsx
+++ b/control-ui/components/RegistryApiKeysPanel.tsx
@@ -2,6 +2,7 @@
'use client'
import { useCallback, useEffect, useState } from 'react'
+import { CONTROL_ROUTES } from '@constants/routes'
import {
type CreateRegistryApiKeyInput,
type CreatedRegistryApiKey,
@@ -19,6 +20,8 @@ import { TablePanelHeader } from './TablePanelHeader'
import { useToast } from './Toast'
import { Button } from './ui'
+// control-ui/components/RegistryApiKeysPanel.tsx
+
type View =
| { kind: 'loading' }
| { kind: 'ready'; org: string; keys: RegistryApiKey[] }
@@ -138,9 +141,8 @@ export default function RegistryApiKeysPanel() {
) : null}
{view.kind === 'auth-disabled' ? (
<p className="cu-banner cu-banner--info">
- Registry authentication is disabled, so API keys can&apos;t be created here. To enable
- it, set <code>CLERUM_REGISTRY_AUTH_ENABLED=true</code> and restart control-api, then
- reload this page.
+ API keys become available once this deployment is connected to the registry.{' '}
+ <a href={CONTROL_ROUTES.marketplace.connect}>Connect to Evenfire Registry</a>.
</p>
) : null}
{view.kind === 'error' ? (
diff --git a/control-ui/components/RegistryConnectPanel.tsx b/control-ui/components/RegistryConnectPanel.tsx
index eb67ce2dc..0d0cce977 100644
--- a/control-ui/components/RegistryConnectPanel.tsx
+++ b/control-ui/components/RegistryConnectPanel.tsx
@@ -490,14 +490,6 @@ export default function RegistryConnectPanel() {
deployment can now publish entries and push/pull images.
</p>
) : null}
-
- {view.kind === 'connected' && view.authEnabled === false ? (
- <p className="cu-banner cu-banner--info" role="status">
- To create and manage API keys for programmatic publishing, enable registry
- authentication: set <code>CLERUM_REGISTRY_AUTH_ENABLED=true</code> and restart
- control-api. See the &quot;connect to registry&quot; guide for details.
- </p>
- ) : null}
</div>
</div>
{confirmDialog}
diff --git a/control-ui/components/__tests__/RegistryApiKeysPanel.test.tsx b/control-ui/components/__tests__/RegistryApiKeysPanel.test.tsx
index a22771fc0..52adc6c57 100644
--- a/control-ui/components/__tests__/RegistryApiKeysPanel.test.tsx
+++ b/control-ui/components/__tests__/RegistryApiKeysPanel.test.tsx
@@ -68,14 +68,15 @@ describe('RegistryApiKeysPanel', () => {
expect(await screen.findByText(/not bound to a registry org/i)).toBeInTheDocument()
})
- it('shows actionable guidance to enable registry auth on 409 registry_auth_disabled', async () => {
+ it('shows guidance to connect the registry on 409 registry_auth_disabled', async () => {
vi.mocked(api.listRegistryApiKeys).mockRejectedValue(
Object.assign(new Error('x'), { status: 409, code: 'registry_auth_disabled' })
)
render(<RegistryApiKeysPanel />)
- expect(await screen.findByText(/registry authentication is disabled/i)).toBeInTheDocument()
- expect(screen.getByText('CLERUM_REGISTRY_AUTH_ENABLED=true')).toBeInTheDocument()
- expect(screen.getByText(/restart/i)).toBeInTheDocument()
+ expect(
+ await screen.findByText(/API keys become available once this deployment is connected/i)
+ ).toBeInTheDocument()
+ expect(screen.getByRole('link', { name: /connect to evenfire registry/i })).toBeInTheDocument()
})
it('on create success, shows the reveal modal then refetches', async () => {
diff --git a/control-ui/components/__tests__/RegistryConnectPanel.test.tsx b/control-ui/components/__tests__/RegistryConnectPanel.test.tsx
index a0d898a2f..49bb8fac8 100644
--- a/control-ui/components/__tests__/RegistryConnectPanel.test.tsx
+++ b/control-ui/components/__tests__/RegistryConnectPanel.test.tsx
@@ -177,7 +177,12 @@ describe('RegistryConnectPanel', () => {
await waitFor(() => expect(screen.getByText('Disconnect')).toBeInTheDocument())
})
- it('connected + authEnabled:false → shows guidance to enable registry auth for API keys', async () => {
+ // Regression guard: self-hosted derives auth from credential presence, so a
+ // real `connected` response always has authEnabled: true — this combination
+ // is unreachable in practice. The panel used to render an env-var banner for
+ // it; that banner is gone. Pin its absence so a future change cannot
+ // resurrect the old CLERUM_REGISTRY_AUTH_ENABLED guidance.
+ it('connected + authEnabled:false → shows no auth guidance (unreachable in practice)', async () => {
vi.mocked(api.getRegistryConnection).mockResolvedValue({
state: 'connected',
deploymentId: 'd',
@@ -186,9 +191,10 @@ describe('RegistryConnectPanel', () => {
})
render(<RegistryConnectPanel />)
await waitFor(() =>
- expect(screen.getByText(/enable registry authentication/i)).toBeInTheDocument()
+ expect(screen.getByText(/Connected to the Evenfire Registry/)).toBeInTheDocument()
)
- expect(screen.getByText('CLERUM_REGISTRY_AUTH_ENABLED=true')).toBeInTheDocument()
+ expect(screen.queryByText(/CLERUM_REGISTRY_AUTH_ENABLED/)).toBeNull()
+ expect(screen.queryByText(/enable registry authentication/i)).toBeNull()
})
it('connected + authEnabled:true → does not show the enable-auth guidance', async () => {
diff --git a/control-ui/package-lock.json b/control-ui/package-lock.json
index de6dae349..6b6553337 100644
--- a/control-ui/package-lock.json
+++ b/control-ui/package-lock.json
@@ -1,12 +1,12 @@
{
"name": "clerum-control-ui",
- "version": "0.1.356",
+ "version": "0.1.357",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "clerum-control-ui",
- "version": "0.1.356",
+ "version": "0.1.357",
"dependencies": {
"@clerum/llm-providers": "file:../packages/llm-providers",
"@clerum/workflow-recipe-capability-policy": "file:../packages/workflow-recipe-capability-policy",
diff --git a/control-ui/package.json b/control-ui/package.json
index 6edf226be..4999db8a7 100644
--- a/control-ui/package.json
+++ b/control-ui/package.json
@@ -1,6 +1,6 @@
{
"name": "clerum-control-ui",
- "version": "0.1.356",
+ "version": "0.1.357",
"private": true,
"scripts": {
"dev": "NEXT_IGNORE_INCORRECT_LOCKFILE=1 next dev",
diff --git a/deploy/overlays/minikube/configmaps/control-api-config.yaml b/deploy/overlays/minikube/configmaps/control-api-config.yaml
index 5ee924f4b..2e1c12fd8 100644
--- a/deploy/overlays/minikube/configmaps/control-api-config.yaml
+++ b/deploy/overlays/minikube/configmaps/control-api-config.yaml
@@ -56,15 +56,16 @@ data:
# OSS default: point at the shared registry so a self-hoster browses the
# public catalog out of the box and can run the connect flow (register →
# approve → claim) against it. self-hosted is the only mode that fits an OSS
- # deployment (managed = MCC-provisioned, not in this repo). Auth stays OFF
- # until a connection is claimed — the boot guard (assertRegistryConnectionReady)
- # only requires a connection row when auth is enabled, so this is crashloop-safe.
+ # deployment (managed = MCC-provisioned, not in this repo). Registry auth
+ # turns on by itself once the connect flow completes and this deployment
+ # holds machine credentials: there is no flag to set and no restart needed.
# To run your OWN in-cluster registry instead, set CLERUM_REGISTRY_URL to
# http://registry-api.registry.svc.cluster.local:8085 and add it via
- # CLERUM_REGISTRY_URL_ALLOWLIST if you later enable auth.
+ # CLERUM_REGISTRY_URL_ALLOWLIST. The allowlist applies to any explicitly
+ # self-hosted deployment with a registry URL configured, regardless of
+ # whether auth is active.
CLERUM_REGISTRY_URL: 'https://registry.evenfire.ai'
REGISTRY_CONNECTION_MODE: 'self-hosted'
- CLERUM_REGISTRY_AUTH_ENABLED: 'false'
# The Publisher UI (Sidebar entry + /publisher route) defaults ON for every
# deploy. It only surfaces for an org-bound, non-curator deploy (the control-ui
# fails closed otherwise), so an unconnected self-hosted deploy still won't show
diff --git a/docs/how-to/connect-to-registry.md b/docs/how-to/connect-to-registry.md
index ed19d4bc4..0d419264d 100644
--- a/docs/how-to/connect-to-registry.md
+++ b/docs/how-to/connect-to-registry.md
@@ -61,25 +61,22 @@ one of two state machines, depending on how the registry is configured:
[Publish a plugin to the registry](publish-plugin-to-registry.md).
- **SSO** to registry API keys from your own Control UI.
-## Enable registry authentication (to manage API keys)
+## API keys for programmatic publishing
Once connected, browsing the public catalog, publishing, and image push/pull all
work using the credential stored when you claimed the connection — no further
setup is needed for those.
**Creating and managing API keys** (`efrk_` org keys, used for CI and other
-programmatic publishing) is a separate surface that requires **registry
-authentication** to be enabled. If you see a banner saying registry
-authentication is disabled, or you want to issue org API keys, enable it:
-
-1. Set `CLERUM_REGISTRY_AUTH_ENABLED=true` in the control-api config (e.g. the
- `control-api-config` ConfigMap, or your env file).
-2. Restart control-api. The flag is read at boot only — there is no hot-reload.
-
-Note the boot guard this enables: with auth on and `REGISTRY_CONNECTION_MODE=self-hosted`,
-control-api requires a completed connection (which you already have once
-claimed) and the registry URL must be in the allowlist — `registry.evenfire.ai`
-is allowed by default; add others via `CLERUM_REGISTRY_URL_ALLOWLIST`.
+programmatic publishing) needs registry authentication active. In self-hosted,
+connecting is sufficient: authentication turns on automatically the moment
+this deployment holds machine credentials, which is as soon as the connect
+flow above completes. There is no flag to set and no restart.
+
+The registry URL allowlist still applies regardless of authentication: any
+explicitly self-hosted deployment with a registry URL configured must have
+that URL in the allowlist. `registry.evenfire.ai` is allowed by default; add
+others via `CLERUM_REGISTRY_URL_ALLOWLIST`.
## If something goes wrong