I am working on a tool to fetch secrets from a secret vault and try to use the secret from the vault as environment variable when I am configuring my laptop.

The secret vault I would like to use is bitwarden secrets manager: https://bitwarden.com/help/secrets-manager-overview/

For a fact, the bitwarden secrets manager has a sdk at https://github.com/bitwarden/sdk-sm
You are free to go through the repo to understand how can I use it. The sdk is written in rust, there is documentation at : https://contributing.bitwarden.com/architecture/sdk

I want to write a tool in rust that uses the bitwarden secret manager sdk to authenticate and read data from bitwarden secrets manager.

Then the tool should create a env file:
KEY1=value1
KEY2=value2

for me.

The tool should handle authenticate to bitwarden. This will be a 2 stage procedure:

1. The API_TOKEN that can be used to access bitwarden secret manager is stored in Google Cloud Secret Manager. Please research of using Google Cloud SDK, and `google_cloud_secretmanager_v1` at https://docs.rs/google-cloud-secretmanager-v1/latest/google_cloud_secretmanager_v1 
2. The tool should read the secret value from google cloud secret manager, the secret key should be configurable (maybe for first phase we read it from the command line tool)
3. The tool should them be able to use the API token to access bitwarden secret manager and read all my credentials there

ulw