Governate
Sign in Start a trial

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

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.

StepDefaultInstead
LicenceThe licence from your customer portal
AddressThe address the server was started withYour domain, and the document viewer's address
DatabaseBuilt in (SQLite), a file in the data folderA PostgreSQL server you already run
Root keyA key file in the data folderOpenBao or HashiCorp Vault, which you already run
File storeA folder in the data folderS3 or a compatible store, Google Drive, OneDrive or SharePoint
AdministratorEmail 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.

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.

Record fieldHolds
BodyThe action and who did it
event.nameThe action, for example viewed or open_denied
governate.actorWho
governate.file_idWhich file, if any
governate.detailThe detail, if any
SeverityWARN for refusals and failures, INFO otherwise
Resourceservice.name (governate), its version, and the installation's ID and address