/novafabric:novafabric-deployfrom novafabric
Deploys NovaFabric as a multi-user REST API server or experimental dashboard on Kubernetes (Helm) or Docker. Covers chart install, Postgres secret setup, port-forwarding, and token retrieval.
Ships in novafabric. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
This skill deploys a NovaFabric service backed by Postgres. It does not capture agent
runs; that is the novafabric-instrument skill. The two things it can run are different
programs. Say which one the user is getting:
| Server mode (Helm default) | Dashboard mode | |
|---|---|---|
| Command | nova server start | nova serve --experimental |
| What it is | Multi-user REST API under /v0/ (OpenAPI UI at /docs), no web dashboard | The web dashboard at /dashboard plus its /api/ routes |
| Container port | 7433 | 4321 |
| Auth | OIDC, or a generated local bearer token | A shared token with admin scope |
| Status | experimental | experimental, not read-only (it can delete runs and erase PII) |
Published artifacts, cut from each vX.Y.Z release tag:
ghcr.io/mskazemi/novafabric:<X.Y.Z>oci://ghcr.io/mskazemi/charts/novafabric --version <X.Y.Z>Ask the user which release to use. Do not guess a version number.
The bundled single-replica Postgres (evaluation) has no default password, and the chart
refuses to render until it has one. Keep the password in a Secret, created before the
install, so it is recorded and survives upgrades. Do not pass a freshly generated
--set postgres.auth.password=…: that value is recorded nowhere, and a later upgrade
that renders a different one rewrites the Secret and locks the server out of its own
database. Ask the user to create the Secret, with a password they keep in their own
password manager, in their own terminal (the agent should not see it):
kubectl create secret generic nova-pg --from-literal=password='<password>'
Then install:
helm install nova oci://ghcr.io/mskazemi/charts/novafabric --version <X.Y.Z> \
--set postgres.auth.existingSecret=nova-pg
kubectl rollout status deploy/nova-novafabric
For a later helm upgrade, pass the same --set postgres.auth.existingSecret=nova-pg
(or --reuse-values), never a new password.
To reach the API, run the port-forward in the background, then stop it:
kubectl port-forward svc/nova-novafabric 4321:4321 >/dev/null 2>&1 & # Service 4321 -> container 7433
PF_PID=$!
sleep 2
TOKEN=$(kubectl exec deploy/nova-novafabric -- sh -c 'cat "$NOVAFABRIC_HOME/.server-token"')
curl -s -o /dev/null -w '%{http_code}\n' -H "Authorization: Bearer $TOKEN" http://localhost:4321/v0/version
kill "$PF_PID"
The local bearer token is not printed to the pod logs. Under Kubernetes stderr is not a terminal, so the server logs only a fingerprint and the file path; the commands above read it from the pod into a shell variable and print only the HTTP status. Never print the token, and never paste it into a chat, an issue or a commit.
To pin a token you manage, store it in a Kubernetes Secret and pass it as
NOVAFABRIC_SERVER_TOKEN through extraEnv in a values file:
extraEnv:
- name: NOVAFABRIC_SERVER_TOKEN
valueFrom:
secretKeyRef: { name: nova-api-token, key: token }
A pinned token takes precedence over the .server-token file, so with one set, the
cat above returns a stale value. Read the pinned token from its Secret instead:
TOKEN=$(kubectl get secret nova-api-token -o jsonpath='{.data.token}' | base64 -d).
OIDC is configured with an oidc: block in a server.yaml mounted at
~/.config/novafabric/server.yaml for the container user. Without it the server runs in
local-token mode, and auth stays on.
mode: dashboard runs nova serve. A pod must bind 0.0.0.0, and nova serve refuses
a non-loopback bind without --insecure. The chart therefore refuses to render
unless both of these are set:
helm install nova oci://ghcr.io/mskazemi/charts/novafabric --version <X.Y.Z> \
--set postgres.auth.existingSecret=nova-pg \
--set mode=dashboard \
--set serve.insecure=true \
--set serve.acknowledgeInsecureExposure=i-accept-serving-evidence-over-plain-http
That serves the dashboard over plain HTTP. Its shared token holds admin scope, and with
serve.insecure the token is printed in kubectl logs. Only do this behind TLS and an
authenticating proxy, and explain the trade-off to the user before setting the flag.
From a checkout of the repository:
make compose-bootstrap # once: random passwords into deploy/docker/.env (prints names only)
docker compose -f deploy/docker/docker-compose.yml up --build -d # Postgres + the dashboard
Do not run make dev-up or make docker-token yourself: both print the dashboard URL
with its admin-scope token, which would put the token into this conversation. Ask the
user to run make docker-token in their own terminal, outside Claude Code, to get the
dashboard URL. Stop the stack with make dev-down.
deploy/docker/docker-compose.yml runs the dashboard (the image entrypoint's default,
NOVA_MODE=dashboard) and publishes it on 127.0.0.1:4321 only. Setting NOVA_MODE=server
in the container's environment runs the REST API on 7433 instead.
The published image's entrypoint waits for a Postgres at $PGHOST (default postgres),
runs nova db upgrade to the packaged schema head, then starts the service. It ignores
command arguments, so docker run <image> nova --help waits for Postgres. To run the CLI
alone, override the entrypoint (not exercised by this plugin's checks):
docker run --rm --entrypoint nova ghcr.io/mskazemi/novafabric:<X.Y.Z> --help.
postgres.enabled=true, the default) has no default
password: helm install fails until postgres.auth.existingSecret (recommended, see
above) or postgres.auth.password is set. It is a single-replica evaluation database.make compose-bootstrap (or
python3 scripts/compose_bootstrap.py) writes random values into
deploy/docker/.env (mode 0600, git-ignored) once, before the stack first starts.nova: keep the password
the database already has (put it in the Secret). Postgres applies a new value only when it first creates its
data directory, so a changed value locks the server out. Never delete the volume to
"fix" this.helm install nova oci://ghcr.io/mskazemi/charts/novafabric --version <X.Y.Z> \
--set postgres.enabled=false \
--set externalDatabase.host=<host> \
--set externalDatabase.existingSecret=<secret-name> \
--set externalDatabase.existingSecretPasswordKey=password
ingress.enabled=true, ingress.tls=[…]) and terminate TLS
there. nova server start has no TLS flags of its own. nova serve can serve HTTPS with
--tls-cert/--tls-key.persistence.enabled=true is the default (5 Gi PVC at /data), so
capsules and the server state survive pod restarts.allowPrivilegeEscalation: false, all capabilities dropped). No privileged or host
access is needed.server.workers > 1 needs Postgres. The CLI refuses SQLite across workers.kubectl rollout status completes. The readiness probe is /readyz (dependencies and
schema) and the liveness probe is /livez, in both modes.curl above prints 200. A 401
means a missing or wrong token (with a pinned token, read it from its Secret).make docker-token in their own terminal and
the URL it prints loads. Do not run it for them.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
2 skills in this plugin
npx claudepluginhub mskazemi/novafabric --plugin novafabricOther plugins' skills for the same job