Skip to content

Add bookmark options to load username/password from env vars #638

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

Merged
merged 1 commit into from
Jan 20, 2023
Merged

Add bookmark options to load username/password from env vars #638

merged 1 commit into from
Jan 20, 2023

Conversation

jenbroek
Copy link
Contributor

@jenbroek jenbroek commented Jan 20, 2023

We keep our configuration for pgweb in a private Git repository. Currently we still have to input the username and password every time, but it would be nice to refer to an environment variable in the bookmarks. That'll allow us to have the 'click-and-go' functionality without the security implications of keeping passwords stored in the repository itself. Using SSH keys is unfortunately not an option.

@sosedoff
Copy link
Owner

Is https://github.com/AGWA/git-crypt not an option? You can securely store the encrypted data right in your repo

@jenbroek
Copy link
Contributor Author

jenbroek commented Jan 20, 2023

Thanks for the quick reply. git-crypt isn't suitable for us I'm afraid; we'd like to use existing Kubernetes secrets to specify username/password. I opened this PR in case this might be of value to you or other users of pgweb, but I also understand this is a very specific situation 😅

@sosedoff sosedoff merged commit 06212b4 into sosedoff:master Jan 20, 2023
@sosedoff
Copy link
Owner

Thank you!

@jenbroek
Copy link
Contributor Author

Likewise, and thanks for the great tool!

@sosedoff
Copy link
Owner

Would you mind dropping me an email with some info on how you run pgweb in your org? This helps me plan for new features/improve things etc.

jonaz pushed a commit to jonaz/pgweb that referenced this pull request Apr 10, 2024
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