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

Feature: Add support for Bitwarden Vault and password manager #65

Open
MurzNN opened this issue Dec 14, 2021 · 8 comments
Open

Feature: Add support for Bitwarden Vault and password manager #65

MurzNN opened this issue Dec 14, 2021 · 8 comments

Comments

@MurzNN
Copy link

MurzNN commented Dec 14, 2021

Bitwarden Vault is a popular e2ee opensource password manager, with very good ability to share passwords between teams!
It also provides command line interface, description is here https://bitwarden.com/help/article/cli/

So will be good to see integration of Bitwarden with vals too, is it hard to implement?

@mumoshu
Copy link
Collaborator

mumoshu commented Dec 14, 2021

@MurzNN Hey! Thanks for writing this up.

is it hard to implement?

Honestly, I'm not sure. But anyway- I intend to add support for backends that provides mature Go sdk/client which is crucial to keep this project maintainable.
Does bitwarden provides such sdk/client?

@MurzNN
Copy link
Author

MurzNN commented Dec 14, 2021

Seems something like this exists here: https://github.com/arhat-dev/bitwarden-api-go
Also here https://github.com/VictorNine/bitwarden-go is another implementations, but seems abandoned :(

@carnei-ro
Copy link
Contributor

carnei-ro commented Dec 12, 2023

Hey @mumoshu and @MurzNN, sorry for bringing up such an old thread, but now BitWarden has its own “Secrets Manager” that is a K/V store.
Also, they now have the monorepo https://github.com/bitwarden/sdk with a GoLang example.

Yesterday I was playing with the Go example to adapt to Vals… the thing is: the Golang would be just “a shell”/"wrapper" calling the “libbitwarden_c.so”. It means, “vals” and helmfile would need to have the library exported on the LD_LIBRARY_PATH to work.

Also, they don't provide an “easy to use” SDK, to build the Golang part we would need to clone their repo, run some cargo and npm commands, and then build our stuff. It is easy to understand reading the Dockerfile from my example app.

What do you guys think about it?

@carnei-ro
Copy link
Contributor

@yxxhero hey, sorry to tag you, but I think your thoughts about my last post ^ would be appreciated 😊

@yxxhero
Copy link
Member

yxxhero commented Dec 13, 2023

@mumoshu WDYT?

@MurzNN
Copy link
Author

MurzNN commented Jan 3, 2024

If the library integration is too tough, maybe just use the bitwarden cli tool bw?

So, to retrieve the password from a string like ref+bitwarden://35ab2e78-7d47-49e5-b72f-d8c7cbc32531/password we need just to run the command like:

bw get password 35ab2e78-7d47-49e5-b72f-d8c7cbc32531

and that's it!

@MurzNN
Copy link
Author

MurzNN commented Jan 3, 2024

And even more, seems we can implement a cli plugin that will just compose the command from a ref, and parse the resulting output. But this smells more like a great general idea, so I filled a separate feature request about it: #193

@smerschjohann
Copy link
Contributor

oh, I missed this issue. The bw cli has a REST-API with bw serve. I described a way I would like to implement it here: #276

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

No branches or pull requests

5 participants