File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed
src/content/docs/explanations/secrets Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -85,12 +85,11 @@ into the string `"***"`.
8585
8686In general, Tenzir does not assume that a secret is valid UTF-8, although most
8787operators will make that constraint. Conversely some secret stores may require
88- your secrets to be UTF-8, while some operators expect a binary secret.
88+ your secrets to be UTF-8, while some operators expect a binary or otherwise
89+ encoded secret.
8990
90- To bridge this gap, you can base64-decode secrets using the
91- [ ` decode_base64 ` ] ( /reference/functions/decode_base64 ) function and
92- base64-encode them using the [ ` encode_base64 ` ] ( /reference/functions/encode_base64 )
93- function:
91+ To bridge this gap, you can use Tenzir's [ encoding] ( /reference/functions#encoding )
92+ and [ decoding] ( /reference/functions#decoding ) functions:
9493
9594``` tql
9695let $binary_secret = secret("my-encoded-secret").decode_base64()
You can’t perform that action at this time.
0 commit comments