Skip to content

Commit f801239

Browse files
committed
Update secrets explanation page
1 parent 68bd1ed commit f801239

File tree

1 file changed

+4
-5
lines changed
  • src/content/docs/explanations/secrets

1 file changed

+4
-5
lines changed

src/content/docs/explanations/secrets/index.mdx

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -85,12 +85,11 @@ into the string `"***"`.
8585

8686
In general, Tenzir does not assume that a secret is valid UTF-8, although most
8787
operators 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
9695
let $binary_secret = secret("my-encoded-secret").decode_base64()

0 commit comments

Comments
 (0)