Skip to content

docs: Skip export keyword in notification docs (cherry-pick #14633)#14644

Merged
crenshaw-dev merged 1 commit intorelease-2.6from
cherry-pick-c6fa1d-release-2.6
Jul 21, 2023
Merged

docs: Skip export keyword in notification docs (cherry-pick #14633)#14644
crenshaw-dev merged 1 commit intorelease-2.6from
cherry-pick-c6fa1d-release-2.6

Conversation

@gcp-cherry-pick-bot
Copy link

Cherry-picked docs: Skip export keyword in notification docs (#14633)

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.
  3. Add a newline for clarity.

Signed-off-by: Andreas Lindhé andreas@lindhe.io

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é <andreas@lindhe.io>
@crenshaw-dev crenshaw-dev merged commit ce87bf9 into release-2.6 Jul 21, 2023
@crenshaw-dev crenshaw-dev deleted the cherry-pick-c6fa1d-release-2.6 branch July 21, 2023 14:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants