Skip to content

Conversation

@moticless
Copy link
Collaborator

Support reading Redis password from the LIBRDB_AUTH environment variable as
an alternative to the --password command line option. This avoids exposing
passwords in command line arguments, which can be visible to other users via
process listings and may appear in system logs.

The command line option takes precedence over the environment variable.

Closes #87

Support reading Redis password from LIBRDB_AUTH environment variable
as an alternative to the --password command line option. This avoids
exposing passwords in command line arguments which can be visible to
other users via process listings and may appear in system logs.

The command line option takes precedence over the environment variable.

Closes redis#87
tezc
tezc previously approved these changes Dec 25, 2025
@moticless moticless merged commit 3301f4d into redis:main Dec 25, 2025
14 checks passed
@moticless moticless deleted the env-var-password branch December 25, 2025 20:22
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.

Putting a password in a command line can be dangerous; supporting REDISCLI_AUTH as an env var would be great

2 participants