feat(cli): download an artifact with a ready CAS credential

Closed
JA
13d ago
+417-27

chainloop artifact download can now use a CAS credential that the client got before.

  • Set it with the CHAINLOOP_ARTIFACT_CAS_TOKEN environment variable (preferred) or the --artifact-cas-token flag.
  • 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.