Skip to content

Commit

Permalink
Nomad docs: LUKS encryption
Browse files Browse the repository at this point in the history
Explains how to enable LUKS encryption for hcloud volumes.
  • Loading branch information
zefixlluja committed Dec 17, 2023
1 parent 873e0aa commit 58f066d
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 Encrypted 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 58f066d

Please sign in to comment.