From f428116387b125ad1e7a74c396b3b3e00fcfa38c Mon Sep 17 00:00:00 2001 From: Hoat Le Date: Thu, 27 Apr 2017 23:35:38 +0700 Subject: [PATCH] Use pipeline to remove new line char (#3458) When -w option is not available for base64, for example, when using alpine Docker image. `echo -n "" | base64 | tr -d '\n'` should be used, it works better. --- docs/concepts/configuration/secret.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/concepts/configuration/secret.md b/docs/concepts/configuration/secret.md index dae317ab0f..3740d10d44 100644 --- a/docs/concepts/configuration/secret.md +++ b/docs/concepts/configuration/secret.md @@ -135,7 +135,8 @@ secret "mysecret" created encoded as base64 strings. Newlines are not valid within these strings and must be omitted. When using the `base64` utility on Darwin/OS X users should avoid using the `-b` option to split long lines. Conversely Linux users *should* add -the option `-w 0` to `base64` commands. +the option `-w 0` to `base64` commands or the pipeline `base64 | tr -d '\n'` if +`-w` option is not available. #### Decoding a Secret