From 893a12e81fafa6d23a5bca54641373d167fdd1fd Mon Sep 17 00:00:00 2001 From: Rajakavitha Kodhandapani Date: Sat, 22 Oct 2022 10:41:50 +0530 Subject: [PATCH] [Docs] Encryption at Rest: added a note for macOS - added a note about the command for macOS and the command to view the key. - updated the key in the example --- content/enterprise-features/encryption-at-rest.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/content/enterprise-features/encryption-at-rest.md b/content/enterprise-features/encryption-at-rest.md index 96436061..184f2fa0 100644 --- a/content/enterprise-features/encryption-at-rest.md +++ b/content/enterprise-features/encryption-at-rest.md @@ -37,7 +37,9 @@ desired key size): ```bash tr -dc 'a-zA-Z0-9' < /dev/urandom | dd bs=1 count=32 of=enc_key_file ``` - +{{% notice "note" %}} +On a macOS you may have to use `LC_CTYPE=C; tr -dc 'a-zA-Z0-9' < /dev/urandom | dd bs=1 count=32 of=enc_key_file`. To view the key use `cat enc_key_file`. +{{% /notice %}} Alternatively, you can use the `--vault` [superflag's]({{< relref "deploy/cli-command-reference.md" >}}) options to enable encryption, as [explained below](#example-using-dgraph-cli-with-hashicorp-vault-configuration). ## Turn on Encryption @@ -71,7 +73,7 @@ To use [Hashicorp Vault](https://www.vaultproject.io/), meet the following prere "cas": 0 }, "data": { - "enc_key": "1234567890123456" + "enc_key": "qIvHQBVUpzsOp74PmMJjHAOfwIA1e6zm%" } } ```