The console
The console is a web application on Sefra’s operator listener, under /console/. It shows what went through the gateway and calls the operator API’s existing writes. It never edits or uploads a bundle, stores no users or roles, and is off unless configured.
Enabling it
Section titled “Enabling it”The console signs people in through the approval page’s OpenID Connect client, so approval_page must be configured; without it, sefra serve refuses to start with the console on. In sefra.yaml:
console:
enabled: true
deployment_label: production
The other keys are in Configuration. Then check that it is served:
curl -sS -o /dev/null -w '%{http_code}\n' https://sefra-operator.example/console/
Expect 200. With the console off, nothing is served under /console/.
Before exposing it:
- Serve the operator listener over https, with
oauth.resource.operatoranhttps://URL. Sefra then marks its cookiesSecureand gives them the__Host-prefix. - Set
Strict-Transport-Securityat your TLS proxy. Sefra does not terminate TLS and does not send it. - Keep the operator listener off the public internet, as you would any administrative interface, and rate-limit
/sign-inper client at the proxy. Sefra’s own limit is global (600 starts a minute), so one client could otherwise delay other people’s sign-ins.
Roles and what each sees
Section titled “Roles and what each sees”Roles come from your identity provider’s claims. Sefra stores none, and nobody can be given a role in the console. Only principals of type human may sign in.
| Role | Sees and does |
|---|---|
sefra_viewer |
Executions, steps (statuses, attempts, hashes), audit events, chain status, approvals (status, requirements, requester, deciders), controls, bundles, principals, insights, system status. No payload bodies, approval summaries or text a policy wrote |
sefra_auditor |
Everything a viewer sees, plus redacted payload bodies, approval summaries and the audit export |
sefra_operator |
Everything an auditor does, plus cancel, the three intervention calls and the kill switches |
sefra_admin |
Everything an operator does, plus activating a stored bundle |
| A role named in an approval requirement | The approvals that name it: list, open, decide. With no other role, the console shows the Approvals section only |
What to know about the values on screen:
- Payloads are the redacted audit copy: a sensitive field appears as its keyed hash. The one exception is an approval’s detail, for a person eligible to decide it.
- A viewer does not read names an agent made up. In a validation finding, a property that no schema of the bundle declares is shown as
*; an intent the bundle does not declare reads(unknown intent); a malformed step id readsstep_<n>. A well-formed step id is shown as the agent wrote it. - A viewer does read the notes people write on operator actions and bundle activations. Do not put payload values or secrets in a note.
- Webhook URLs on the System screen show their path and username as
[redacted]unlesssefra.yamlwrites them as${NAME}. - Reading a payload body, and exporting, are logged with the reader’s principal. An export also writes an
audit.exportedevent.
Sessions and fresh sign-in
Section titled “Sessions and fresh sign-in”- A session lasts
timings.console_session(default 8 hours) from the sign-in. - A write needs a sign-in within
timings.page_session(default 1 hour), an approval decision included. An older session is sent through sign-in and returns to where it was. A replay changes nothing and does not need it. - Approvals are decided on the approval page, which the console links to, never through the console’s API.
- Sign-out ends Sefra’s session only. The session at your identity provider stays, so the next sign-in may not ask for a password. On a shared computer, sign out at the provider too.
Cutting someone off
Section titled “Cutting someone off”Suspending a person ends their sessions at once and refuses new sign-ins:
SEFRA_OPERATOR_TOKEN=$ADMIN sefra control suspend user:u_example --note "left the team"
SEFRA_OPERATOR_TOKEN=$ADMIN sefra control unsuspend user:u_example --note "back"
Two limits:
- A role removed at the identity provider takes effect at the next sign-in, so it can last up to
console_sessionfor reads. Suspend the person if it must take effect now. - A suspension does not reach bearer tokens on
/v1. They expire on their own, and this is how an operator lifts a suspension if every operator’s session has been cut off. Revoke the person’s access at the provider as well.
The review flow: upload, compare, replay, activate
Section titled “The review flow: upload, compare, replay, activate”A rule change is written and reviewed in git. The console is where its effect is checked before it goes live.
-
Upload. CI, or a person with
sefra_admin, stores the bundle without activating it:SEFRA_TOKEN=$ADMIN sefra bundle upload ./my-bundleIt prints
stored <digest>, oralready stored <digest>, then any warnings. The active bundle does not change. -
Compare. In Policy, open the candidate and compare it with the active bundle: files, intents and grants that differ.
-
Replay. On the comparison, follow Replay the To bundle to run the recorded decisions against the candidate. It shows which decisions would change effect and changes nothing. The same from the command line, which reads PostgreSQL directly and needs a role that may read the audit tables:
SEFRA_DATABASE_URL=postgres://… sefra policy replay --bundle ./my-bundle -
Activate. A
sefra_adminactivates the digest in the console, with a note. It needs a recent sign-in and writes abundle.activatedevent. To roll back, activate the earlier digest.
What the self-check is, and is not
Section titled “What the self-check is, and is not”The chain status in the console is a self-check: a Sefra worker recomputes the audit chain every timings.audit_self_check (default 5 minutes) and the console shows the result. It catches a changed event quickly, and every page shows a failure.
It is not independent proof. A service cannot vouch for its own record, and someone who controls Sefra could control what the self-check reports. The independent check reads PostgreSQL directly, from outside Sefra:
sefra audit verify
Expect OK: events 1 to N, head N <hash>. For an auditor, run it against an exported file on a machine you trust, and compare the head with one recorded earlier.