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

Allow the credentials to be read in from environment variables #9

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

hookenz
Copy link

@hookenz hookenz commented May 22, 2018

Read username and password from the environment variables CB_USERNAME & CB_PASSWORD as defaults when not specified on the command line.

When environment variables are used it means that credentials are not exposed in the process list which is visible to all users on the host.

Typical usage could be:

e.g. in file /etc/couchbase/credentials

CB_USERNAME=username
CB_PASSWORD=password

Followed by sourcing the credentials file and running cbbackup like so
. ./etc/couchbase/credentials cbbackup http://localhost:8091 /backups/couchbase

This addresses this problem I raised in the forums for the community edition.
https://forums.couchbase.com/t/hiding-cbbackup-credentials/16894/2

CB_USERNAME/CB_PASSWORD which prevents these from otherwise
appearing in the process list.
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.

1 participant