Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

updated usage example #9081

Merged
merged 4 commits into from
Aug 24, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions changelog/9081.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@

```release-note:improvement
website/docs: changed to echo for all string examples instead of (<<<) here-string.
```
2 changes: 1 addition & 1 deletion website/content/api-docs/secret/transit.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -577,7 +577,7 @@ mechanism for this data as part of a JSON payload is to base64-encode it.
Fist, encode the plaintext with base64:

```shell-session
$ base64 <<< "the quick brown fox"
$ echo "the quick brown fox" | base64
dGhlIHF1aWNrIGJyb3duIGZveAo=
```

Expand Down
2 changes: 1 addition & 1 deletion website/content/docs/secrets/consul.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ management tool.
Write a policy and proceed to link it to the role:

```shell-session
$ vault write consul/roles/my-role policy="$(base64 <<< 'key "" { policy = "read" }')"
$ vault write consul/roles/my-role policy="$(echo 'key "" { policy = "read" }' | base64)"
Success! Data written to: consul/roles/my-role
```

Expand Down
2 changes: 1 addition & 1 deletion website/content/docs/secrets/transit/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ the proper permission, it can use this secrets engine.
mechanism for this data as part of a JSON payload is to base64-encode it.

```text
$ vault write transit/encrypt/my-key plaintext=$(base64 <<< "my secret data")
$ vault write transit/encrypt/my-key plaintext=$(echo "my secret data" | base64)

Key Value
--- -----
Expand Down