Skip to content

Sequence diagram of a registered install - #226

Merged
rbardaji merged 1 commit into
mainfrom
docs/225-registered-install-diagram
Aug 4, 2026
Merged

Sequence diagram of a registered install#226
rbardaji merged 1 commit into
mainfrom
docs/225-registered-install-diagram

Conversation

@rbardaji

@rbardaji rbardaji commented Aug 4, 2026

Copy link
Copy Markdown
Collaborator

Closes #225.

The companion to the standalone diagram: the same lightest install — no local catalog, defaults everywhere — but registered with the Federation.

The part worth having is what the registration itself does. Answering yes sets off a chain of calls the operator never sees, across three services a standalone install never touches:

  • a Keycloak client ep-<config-id>, confidential;
  • a group ndp_ep/ep-<config-id>, with the registering user as its administrator;
  • an API token for the staging catalog, minted with that user's own access token;
  • an entry in Affinities.

The diagram shows each of them, and the page then says which the Endpoint actually uses: the group gates every write through GROUP_NAMES, the staging token lands in PRE_CKAN_API_KEY, and the client is created but not used — its tokens carry no sub claim, so sign-in through it fails after a successful login (#219, and why the installer stopped offering it in 0.34.3).

Also: the .env values that differ from a standalone install and where each comes from, and the trap that a token minted before the group existed does not carry it — so a fresh one has to be copied after registering, or writes are denied for reasons that look like an Endpoint fault.

Verified

Drawn from an actual registered install performed today, not from reading the code: the configuration id it printed, the record the Federation holds for it, the rendered .env (21 values set), the container answering /health and /ready, and four metrics reports already accepted with 201. The Mermaid source renders through mermaid-cli.

The standalone diagram shows the Federation never being contacted. This is
the other case, and the opaque one: answering yes to the registration sets off
a chain of calls to three services, and until now nothing said what was
created on the operator's behalf or which of it their Endpoint uses.

It follows the run from the first prompt to the metrics going out, opens up
what happens inside POST /ep/simple — Keycloak client, group with the
registering user as administrator, staging-catalog token, Affinities entry —
and lists the .env values that differ from a standalone install, with where
each comes from.
@rbardaji
rbardaji merged commit b7e0f63 into main Aug 4, 2026
1 check passed
@rbardaji
rbardaji deleted the docs/225-registered-install-diagram branch August 4, 2026 11:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Document what a registered install does, end to end

1 participant