Governate
Sign in Start a trial

Setup guide

A new installation asks six things, one step at a time. It starts with the licence, which is required; the four steps after it each have a default that works, so Continue alone is a valid answer. This page says what each choice means and what to have ready. It can be read from the setup screen before any account exists.

What is kept where

ThingKept inChosen at step
Accounts, permissions, the activity recordThe databaseDatabase
Each file's own key, sealedThe databaseDatabase
The protected files, already encryptedThe file storeFile store
The key that seals all the othersA key file, or your key serviceRoot key

Every file has its own key. Those are sealed by the installation's keys, and the installation's keys are sealed by one root key. The file store never holds a key, so whoever runs it can read nothing. Whoever holds the root key and the database together can open everything.

Running one on the same machineThis screen connects to things that already exist. To have PostgreSQL, OpenBao or an S3 store run in a container beside Governate, set up for you with nothing to fill in, choose "here" for it in the installer. That can be done, or changed, by running the installer again at any time before the administrator is created; the unfinished installation is then started afresh, and a licence already added has to be added again.

A step that changes the address, the database or the root key is checked first, then the server restarts itself and the screen carries on at the next step.

Licence

Nothing can be protected without a licence, so setup starts with it and no other step opens until the installation has one.

Get the licence from your Governate customer portal and paste it into the step. Nothing about the installation needs to be known to make one, and the installation checks it by itself: it contacts nobody. The licence carries its own ID, the number of full and reader seats, the features, and the dates it is valid for.

The licence stays with the installation if you go on to choose another database or root key in the next steps. To replace it during setup, open Use a different licence on this step and paste the newer one: the most recently issued licence is the one in force. A renewal is added later under Licence.

Address

The domain, with https://, that people type to reach the installation. It is written, signed, into every protected file, so files keep pointing at it. Your DNS and proxy must already send that domain to this server; nothing on this step changes them.

Signing in and saving only work at the installation's own address. If you opened the setup screen at another address (an IP address, or localhost), the step says so; either open it at the right one or change the address.

The document viewer's address is where browsers reach the document viewer from your installation kit. Without it, Office documents cannot be opened in the browser; everything else works. It can be added later under Settings → Infrastructure.

When Governate was put in place by the installer, both addresses are the ones given there and this step shows them without fields. They are kept in the installation's folder (/opt/governate/.env). To change them, run the installer again and give the new ones: it hands them to the server and to the proxy, which obtains certificates for them. This works at any time, before or after setup. Files protected under the old address keep pointing at it, so keep the old name working if any are in circulation.

Database

Built in (SQLite) is the default. One database file in the server's data folder, made and looked after by the server. Nothing to install or fill in. It suits one server; back it up by backing up the data folder.

PostgreSQL is a server you already run, on this machine or another. Before the step:

Then give the host, port, database name, user and password. Fill these in even when PostgreSQL is on the same machine; the host is then localhost. The tables are made for you.

ConnectionMeaning
Encrypted; certificate and name checkedsslmode=verify-full. Use this for a database on another machine.
Encrypted; certificate checkedsslmode=verify-ca
Encrypted; certificate not checkedsslmode=require
Not encryptedsslmode=disable. Only for a database on the same machine.

Certificate authority. With either of the two checked connections, the database's certificate must lead back to an authority this server trusts. If it was issued by a public authority, or by one already installed on this machine, leave the field empty. If it was signed by your own authority, paste that authority's certificate (PEM) into the field; it is kept in the server's data folder and trusted for every connection the server makes. It can be changed later under Settings → Infrastructure → Outgoing connections.

A separate database for file keys is optional, and asks for the same details as the first. Keys are normally kept in the same database, in their own table. A second database keeps them apart from the records, so that neither database alone says which key opens which person's file.

Choose nowAn installation cannot be moved to another database from the website once accounts exist.

Root key

A file on this machine is the default. The server made a key file in its data folder, readable only by the account it runs as. Back it up somewhere apart from the database: without it nothing can be opened, and with it and the database everything can.

OpenBao or HashiCorp Vault is a key service you already run. The root key never leaves it; the server asks it to seal and unseal. If the service is unreachable, the server cannot start. Before the step, in your key service:

bao secrets enable transit
bao write -f transit/keys/governate

Then make a token whose policy allows only this:

path "transit/encrypt/governate" { capabilities = ["update"] }
path "transit/decrypt/governate" { capabilities = ["update"] }

Give the step the service's address and that token. The mount and key name are only needed if yours are not transit and governate. The token is kept in the server's data folder, readable only by the server.

With Vault the commands are the same with vault in place of bao. The product is developed and tested against OpenBao; Vault offers the same transit interface.

The root key can be moved between a file and a key service later, under Settings → Infrastructure.

File store

A folder on this machine is the default: a files folder inside the server's data folder. It suits one server with enough disk; back it up with the rest of the data folder.

S3 or a compatible store is a bucket you already have: Amazon S3, MinIO, SeaweedFS, Ceph, Cloudflare R2 and the like. The bucket must exist; the server only reads, writes and removes objects in it.

FieldNotes
EndpointThe address of the S3 service, not of the bucket
Bucket, regionRegion can be left empty for most self-run stores
Access key, secret keyLimited to this bucket
PrefixOptional. Keeps the files under one prefix in a shared bucket
Bucket in the host nameLeave off for self-run stores such as MinIO, SeaweedFS and Ceph

Google Drive needs a folder shared with a service account, and that account's key file. OneDrive or SharePoint needs an application registered in Microsoft Entra, with its tenant, client ID and secret, and the drive to use.

Test writes a small file, reads it back and removes it. Continue does the same before saving.

Choose nowOnce files exist, the store cannot be changed from the website; only its credentials can.

Administrator

The first account, with an email address and a password of at least 12 characters. The administrator adds everyone else and can change every choice above except the database, under Settings.

Signing in with Google or Microsoft Entra is switched on afterwards, under Settings → Infrastructure → Sign-in. That page shows the callback address to register with the provider for your domain.

If the installer set parts of the installation up, their steps are already ticked and the screen opens on the first one left to choose.

Do it before anyone else canUntil the first administrator exists, whoever reaches the address can complete the setup screen. Set an installation up before opening it to your network.