Skip to content

Commit

Permalink
docs: add instructions for LUKS encryption on Nomad (#550)
Browse files Browse the repository at this point in the history
Explains how to enable LUKS encryption for hcloud volumes.

---------

Co-authored-by: Jonas L <[email protected]>
  • Loading branch information
2 people authored and lukasmetzner committed Oct 10, 2024
1 parent 8191774 commit 5162d8b
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions docs/nomad/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -285,3 +285,19 @@ job "mariadb" {
```sh
nomad job run mariadb.hcl
```

### Volumes encryption with LUKS

To add encryption with LUKS you have to provide a secret containing the encryption passphrase as part of the volume definition. The secret must be named `encryption-passphrase`. The volume will then be LUKS encrypted on first use.

```hcl
# file: db-vol.hcl
secrets {
"encryption-passphrase" = "<your_encryption_value>"
}
```


> [!NOTE]
> Consider using HashiCorp Vault for secrets management, see https://developer.hashicorp.com/nomad/docs/job-specification/template#vault-kv-api-v2

0 comments on commit 5162d8b

Please sign in to comment.