feat(cli): download an artifact with a ready CAS credential
Closed
JA
13d ago+417+417+012345678901234567890123456789-27-27-01234567890123456789
chainloop artifact download can now use a CAS credential that the client got before.
- Set it with the
CHAINLOOP_ARTIFACT_CAS_TOKENenvironment variable (preferred) or the--artifact-cas-tokenflag. - With a credential, the command connects to the CAS API directly, and needs no API token and no control plane call.
- The credential has precedence over an API token. Without one, the command works as before.
- When the CAS does not accept the credential, the error now says so instead of "artifact not found".
An AI assistant (Claude Code) helped write this change.