Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions app/spicedb/concepts/datastores/page.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,14 @@ Support for schema changes will likely come in a future version.

##### Setting up relationship integrity

To run with relationship integrity, the following flags must be given to SpiceDB:
First, generate an HMAC key and save it to a file.
For example, using OpenSSL to generate a 256-bit key:

```bash
openssl rand 32 > some.key
```

Then run SpiceDB with the following flags:

```zed
spicedb serve ...existing flags...
Expand All @@ -163,7 +170,8 @@ spicedb serve ...existing flags...
--datastore-relationship-integrity-current-key-filename="some.key"
```

Place the generated key contents (which must support an HMAC key) in `some.key`.
The `--datastore-relationship-integrity-current-key-id` value is an arbitrary identifier you choose for this key, used to track which key signed each relationship.
The `--datastore-relationship-integrity-current-key-filename` should point to the file containing the raw key bytes generated above.

##### Deployment Process

Expand Down
Loading