Infrastructure
Everything an installation runs on can be chosen in the website: when it is first set up, and afterwards under Settings, on the Infrastructure tab. Only administrators can see or change it.
Three rules
- The environment wins. A value given where the server is started (its environment, or the compose file of the install kit) is used, and shown in the website as fixed. This is how container installs keep their addresses in one place, known to their proxy as well.
- Secrets go one way. Once saved, a secret is never sent back to the website. Its field is empty and says one is saved; leaving it empty keeps it. Secrets are kept sealed under the installation's own keys.
- Nothing is saved untried. A file store is written to and read back. A database is opened. A root key seals and unseals. A collector is sent a test event when you ask.
Every change is recorded in Activity, without the secrets.
At first run
A new installation walks through six steps, one at a time. The first is the licence, which is required. Each of the next four has a default that works and says what it is, so Continue alone is a valid answer to them.
| Step | Default | Instead |
|---|---|---|
| Licence | The licence from your customer portal | |
| Address | The address the server was started with | Your domain, and the document viewer's address |
| Database | Built in (SQLite), a file in the data folder | A PostgreSQL server you already run |
| Root key | A key file in the data folder | OpenBao or HashiCorp Vault, which you already run |
| File store | A folder in the data folder | S3 or a compatible store, Google Drive, OneDrive or SharePoint |
| Administrator | Email and password |
What is kept where. The database holds accounts, permissions, the activity record, and each file's own key, sealed. The file store holds only the protected files, already encrypted, with no key beside them. The root key seals the installation's keys, which seal the file keys.
Nothing is installed for you. Choosing PostgreSQL or a key service means giving the address and credentials of one that exists; the server creates its tables in an empty database, and uses one existing transit key in the key service. For that key: bao secrets enable transit, then bao write -f transit/keys/governate, and a token allowed only update on transit/encrypt/governate and transit/decrypt/governate. HashiCorp Vault has the same transit interface; the product is developed and tested against OpenBao.
A step that changes the address, database or root key is checked, then the server restarts itself and the screen carries on at the next step. The database is the one choice that cannot be changed from the website afterwards.
Sign-in with Google or Microsoft Entra is not part of setup. The first administrator has a password, and switches those on under Settings → Infrastructure → Sign-in, where the callback address for your domain is shown.
Do it before anyone else canUntil the first administrator exists, whoever reaches the address can complete this screen, including pointing the installation at a database or key service of their choosing. Set it up before opening it to your network.
Addresses
The address people use, the document viewer's address, and the server's address as the viewer reaches it. Changing them restarts the server.
The address people use is written, signed, into every protected file. Files protected under an old address keep pointing at it, so keep the old address working if you change this. Your proxy and DNS must already send the addresses to the server; changing them here does not change those.
Database
Shown, not changed. Moving an installation to another database means moving its data, which the website does not do.
Root key
Where the key that seals the installation's own keys is kept. It can be moved between a file and OpenBao (or Vault) at any time: the installation's keys are sealed again under the new root key, and nothing else changes. The installation keeps its identity and every file stays readable. The server restarts.
Remove what a move leaves behindSo that a move can be undone, the keys as they were are kept in the data folder as keyring.json.previous, beside the old root.key if there was one. Together those two still open everything. Once you are satisfied, delete both.
The settings file, config.json in the data folder, holds the key service token when OpenBao is used. It is readable only by the server's own user; protect the data folder accordingly.
Outgoing connections
One policy covers every connection the server makes: to the key service, the file store, sign-in providers and the activity collector.
- TLS 1.3 is required unless you switch that off for a service that offers nothing newer than TLS 1.2.
- Certificate authorities of your own can be added to the system's, for services signed by a private authority.
Changing the policy restarts the server. If the key service could no longer be reached under a new policy, the change is refused and nothing is saved.
Connections from browsers end at your proxy; set it to TLS 1.3 as well. The proxy in the install kit already is. A PostgreSQL connection is governed by its own address (sslmode).
File store
A folder on the machine, S3 or a compatible store, Google Drive, or OneDrive and SharePoint. Test writes a small file, reads it back and removes it; Save does the same and then switches.
While protected files are kept in the current store, the place cannot be changed from the website: they would not be found in the new one. Credentials for the same place can be changed at any time.
Sign-in
Google and Microsoft Entra can be turned on, changed and turned off. Each shows the redirect address to register. Accounts must still be added under Users first; see Sign-in.
Activity export
A copy of every activity record can be sent to an OpenTelemetry collector, as log records over OTLP/HTTP.
- The record in the installation's database stays the record of truth. Nothing is released without it, whatever the collector's state.
- Sending never holds up the work. If the collector is away, records wait, are retried, and beyond ten thousand are dropped and counted. The page shows how many were sent, are waiting and were dropped, and the last problem.
- Headers, typically an authorisation, are kept sealed and never shown again.
- Records name people and files, so use
httpsunless the collector is on the same machine.
| Record field | Holds |
|---|---|
| Body | The action and who did it |
event.name | The action, for example viewed or open_denied |
governate.actor | Who |
governate.file_id | Which file, if any |
governate.detail | The detail, if any |
| Severity | WARN for refusals and failures, INFO otherwise |
| Resource | service.name (governate), its version, and the installation's ID and address |