canonical / pycloudlib

Python library to launch, interact and, snapshot cloud instances
GNU General Public License v3.0
18 stars 30 forks source link

[feature] Request for password manager integration #430

Open holmanb opened 1 month ago

holmanb commented 1 month ago

The configuration file used by pycloudlib contains secrets. It would be convenient if pycloudlib optionally integrated with a password manager, such as bitwarden (which has a snap) to manage these secrets.

TheRealFalcon commented 1 month ago

Can you give a few details as to what this integration would look like?

holmanb commented 1 month ago

Can you give a few details as to what this integration would look like?

I don't have much in mind. Maybe pycloudlib could check for the presence of bw prior to using pycloudlib.toml and then use an API key to get the required credential. It looks like the CLI outputs json.

The CLI provides the ability to retrieve individual usernames / password as well as files - so it could just get a file or multiple files depending on the cloud - or it could try to map individual values from pycloudlib.toml - though that sounds complicated and messy to impliment.