w3cli icon indicating copy to clipboard operation
w3cli copied to clipboard

Add options for passing client's credentials with env variables

Open leszko opened this issue 3 years ago • 2 comments

Allow interaction with web3.storage service using credentials (principal key and delegation proof) passed as base64-encoded env variables.

Rationale

Taking AWS CLI as an example, you can either use aws configure and store the credentials in your local config file or use aws with "inline" credentials.

export AWS_ACCESS_KEY_ID=<access-key-id>
export AWS_SECRET_ACCESS_KEY=<secret-access-key>

This PR will help the w3 in the ad-hoc usage and for the multi-tenant environments.

leszko avatar Feb 03 '23 16:02 leszko

This is super cool!...it'll also simplify a bit when https://github.com/web3-storage/w3up-client/pull/74 is merged and released.

alanshaw avatar Feb 10 '23 12:02 alanshaw

This is super cool!...it'll also simplify a bit when web3-storage/w3up-client#74 is merged and released.

Great that you like it! Do you plan to merge this PR?

leszko avatar Feb 13 '23 08:02 leszko