Skip to content

Commit

Permalink
Doc: variable cilium_ipsec_key must be base64 encoded (kubernetes-sig…
Browse files Browse the repository at this point in the history
…s#10781)

Signed-off-by: serge Hartmann <serge.hartmann@gmail.com>
  • Loading branch information
ledroide authored and pedromcpedro committed May 8, 2024
1 parent 40d15f0 commit 361718c
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions docs/cilium.md
Original file line number Diff line number Diff line change
Expand Up @@ -141,15 +141,19 @@ cilium_encryption_enabled: true
cilium_encryption_type: "ipsec"
```

The third variable is `cilium_ipsec_key.` You need to create a secret key string for this variable.
The third variable is `cilium_ipsec_key`. You need to create a secret key string for this variable.
Kubespray does not automate this process.
Cilium documentation currently recommends creating a key using the following command:

```shell
echo "3 rfc4106(gcm(aes)) $(echo $(dd if=/dev/urandom count=20 bs=1 2> /dev/null | xxd -p -c 64)) 128"
```

Note that Kubespray handles secret creation. So you only need to pass the key as the `cilium_ipsec_key` variable.
Note that Kubespray handles secret creation. So you only need to pass the key as the `cilium_ipsec_key` variable, base64 encoded:

```shell
echo "cilium_ipsec_key: "$(echo -n "3 rfc4106(gcm(aes)) $(echo $(dd if=/dev/urandom count=20 bs=1 2> /dev/null | xxd -p -c 64)) 128" | base64 -w0)
```

### Wireguard Encryption

Expand Down

0 comments on commit 361718c

Please sign in to comment.