Bitwarden Secret Manager for Go (bws-g)
This is a Go package that provides a function to retrieve secrets from Bitwarden secret manager.
Getting Started
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
Prerequisites
Installing
- Get the module from Github
go get github.com/JCStaples/bwsgo
- Import it
import "github.com/JCStaples/bwsgo"
Usage
To use the GetSecret
function, pass the name of the environment variable that holds the secret key as an argument. Here's an example:
import "github.com/JCStaples/bwsgo"
secret := bws.GetSecret("UUID_ENVIRONMENT_VAR")
License
This project is licensed under the MIT License - see the LICENSE.md file for details