Skip to content

Commit

Permalink
docs: Skip export keyword in notification docs (#14633) (#14645)
Browse files Browse the repository at this point in the history
This change does three things:

1. It removes the `export` keyword. It's not required since the example
   executes a script where the variables are evaluated as an inline
   string. One could even argue that there is a slight security issue
   with using `export` here, since that will expose the credentials to
   all applications started in the current context.
2. It adds a space (` `) before the `PASSWORD` variable. This will keep
   it out of the user's Bash history by default. See [HISTIGNORE][bash].
3. Add a newline for clarity.

[bash]: https://www.gnu.org/software/bash/manual/bash.html#index-HISTIGNORE

Signed-off-by: Andreas Lindhé <[email protected]>
Co-authored-by: Andreas Lindhé <[email protected]>
  • Loading branch information
gcp-cherry-pick-bot[bot] and lindhe authored Jul 21, 2023
1 parent f627b62 commit 2fa12c8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions docs/operator-manual/notifications/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,9 @@ kubectl apply -n argocd -f https://raw.githubusercontent.com/argoproj/argo-cd/st
* Add Email username and password token to `argocd-notifications-secret` secret

```bash
export EMAIL_USER=<your-username>
export PASSWORD=<your-password>
EMAIL_USER=<your-username>
PASSWORD=<your-password>

kubectl apply -n argocd -f - << EOF
apiVersion: v1
kind: Secret
Expand Down

0 comments on commit 2fa12c8

Please sign in to comment.