osc-cli icon indicating copy to clipboard operation
osc-cli copied to clipboard

Get credentials from environment variables

Open RomLecat opened this issue 4 years ago • 2 comments

Hello,

Currently, the only way to set credentials is through a file, which is not ideal with tools that manages secrets properly in environment variables, such as CI tools.

Could it be possible to gather credentials from env vars first, then fallback on files if they're not present ?

Thanks

RomLecat avatar Feb 26 '21 11:02 RomLecat

Note for future assignee, those env variable are already used in osc-sdk-go. We could use the same.

  • OSC_ACCESS_KEY
  • OSC_SECRET_KEY

jerome-jutteau avatar Mar 01 '21 09:03 jerome-jutteau

Hello,

Any progress on this ? Lacking env vars makes osc-cli pretty much unusable in any CI setup.

RomLecat avatar Dec 07 '22 11:12 RomLecat