People and sign-in
A node has no login page, no passwords and no user table. People sign in where they already do, at your institution’s identity provider, and the node checks the token each request carries.
How signing in works
You sign in at your institution’s identity provider (Keycloak, Microsoft Entra, gov.br’s login, or any OpenID Connect provider your institution trusts), with your password and a second factor. The provider gives the node’s web interface an access token, which goes with every request to the node.
- The node checks each token itself, against the provider’s published signing keys, which it keeps. If the provider is briefly down, tokens already issued keep working until they expire.
- Only providers the node is told to trust count. That list is a file on the server, never something an administrator can change through the API, so a stolen admin account cannot add a provider of its own.
- Tokens live in this page’s memory only, never in the browser’s storage. Closing the tab forgets them. On reload, the interface asks the provider again, without a prompt, and you stay signed in for as long as the provider’s own session lasts.
- Signing out ends the session at the provider too.
Who you are to the node: a code
The node never reads or keeps your name, your e-mail address or the provider’s own ID for you. It records you as a code: a keyed hash of the provider’s name for you, under a secret only the node holds.
Issuer (iss)
https://id.hospital.example/realms/genomics
Your id there (sub)
8c2e41f0-7b9d-4a52-9e1c-3f6d0b7a2c55
The node’s secret
••••••••••••••••
HMAC-SHA256
Your code on this node
p-f76se46otkgpcqzuqzbxd4r4qa
Your name
Shown to you in the web interface, from the ID token. Never sent to the node, never in its log.
- That code is what the event log records beside everything you do, and what an audit shows.
- Your institution can work out anyone’s code for an audit, from the provider’s ID and the node’s secret. Nobody else can turn a code back into a person.
- The account menu shows you your code, so you can send it to an administrator.
This matters most with gov.br, whose ID for a person is their CPF: the node never stores it.
Roles
What you may do comes from roles, held in a department or at the institution’s level. They come from the groups your institution already manages: an administrator maps a group to a role once, and people joining or leaving are the provider’s business. Where the provider has no groups (gov.br’s login), an administrator gives a role to a person’s code, optionally until a date.
| Role | Held in | May |
|---|---|---|
reader | a department | Read its records, and what other departments granted it. Patient data stays withheld. |
writer | a department | Read, and record lineage, facets, corrections and cohorts; propose concept mappings. |
curator | a department | Read, and decide concept mappings. |
log_reader | a department, or the institution | Read, and read the event log: every write in order, who recorded it and why. A record’s own history needs only reader. |
unindexed_reader | a department | Read, and search by fields the node’s index doesn’t cover, which costs more (searching). |
phi_reader | a department | Ask to see patient data, record by record, with a reason, every read audited. People only. |
admin | the institution | Declare departments, grant between them, map groups to roles. Reads no department’s records. |
erasure | the institution | Find what the node holds about a person, and plan or apply their erasure. People only. |
auditor | the institution | Read the audit of patient-data reads and check the log’s chains. Changes nothing. People only. |
committee | the institution | Decide access requests from other institutions. People only. |
- No role implies another. An administrator who should also read a department’s records holds both roles.
- A request acts for one department. If you hold roles in several, the account menu’s “Acting for” picks which. What you write lands there.
- Someone whose groups map to no role can sign in and see their own code, and nothing else.
Reading never writes
Every request the node’s web interface sends while you browse asks only for roles that read, reader and, where you hold them, log_reader and unindexed_reader, even when you also hold writer or curator. Browsing can never write, whoever is signed in; a change is always a form you submit, sent with the one role it needs. The one exception is Admin → People, which reads the group mappings as an administrator and manages accounts at the identity provider, never at the node.
Machines
Loaders, the relay, the MCP server and the chat are not people. Each gets a token of its own, kept by the node only as a hash, with an expiry, a name that says which service it is (loader-core, never a person’s name) and its own roles.
- People-only roles (
phi_reader,erasure,auditor,committee) are refused to any machine. - An institution that manages its services in its identity provider can let a machine sign in there instead. Its roles still come from the node’s file, never from the provider’s groups.
- A token can be rotated without a restart, and every token has its own request rate.
What sign-in does not protect
- The database’s own credentials still open everything. On a deployed node nobody’s daily work needs them: the command line uses them only for maintenance, and where OpenBao runs it hands them out an hour at a time and records each lease.
- The node does not encrypt its own traffic. Put it behind a proxy that terminates TLS, as the Caddy of the node’s web interface does.
- Only reads of patient data are audited record by record. Every write records who made it; every other request is in the request log by route, without the record it named.