Security of the Continuum for software supply chain CLI
AWS Continuum for software supply chain is in preview release and is subject to change.
The Continuum for software supply chain CLI runs a package manager on your workstation or build host, and it requests a package decision for each package as the package manager downloads it. This topic describes what the CLI sends to AWS and how it inspects your downloads. It also covers how the CLI uses your credentials and how it behaves when Continuum for software supply chain is unavailable.
For how to install and run the CLI, see Protecting package installs with the Continuum for software supply chain CLI.
Data sent to AWS
For each package, the CLI sends only its package URL (purl), such as
pkg:npm/lodash@4.17.21. The purl names the ecosystem, the package's namespace if it
has one, the name, and the version. The request is signed with your AWS credentials, and its
user agent includes the CLI version.
The CLI never sends any of the following to Continuum for software supply chain:
-
Your repository credentials or authentication headers.
-
The contents of a package.
-
URLs that carry secrets.
For more information about the data that Continuum for software supply chain stores and how long it keeps it, see Data protection in AWS Continuum.
How downloads are inspected
The CLI runs the real package manager command through a local TLS proxy on the same host. The proxy inspects each download before the package manager installs the package.
The proxy uses a temporary certificate authority (CA) that only the wrapped package manager and its child processes trust, for the duration of the run. The CA and the CLI's run files are removed when the run ends. The CLI doesn't change your global package manager settings or the system trust store.
For each download, the CLI requests a package decision from Continuum for software supply chain. The CLI blocks a package that Continuum for software supply chain denies, and it lets an allowed package install.
For what the CLI doesn't check, see Considerations.
Credentials
The CLI uses the default AWS SDK credential chain. It calls Continuum for software supply chain with the credentials that the AWS SDKs find for your account and AWS Region.
The CLI needs one action, continuum:CreatePackageDecision. The following
example policy grants it:
{ "Version": "2012-10-17", "Statement": [ { "Effect": "Allow", "Action": "continuum:CreatePackageDecision", "Resource": "*" } ] }
If the credentials are missing, expired, or rejected, the CLI blocks every package and
returns with exit code 1. It doesn't fail open on authentication errors.
For more information about Continuum for software supply chain permissions, see Identity and access management for AWS Continuum.
Availability and fail-open behavior
By default, the CLI fails open. When it can't get a package decision, it lets the package
install, lists it as unverified, and returns with exit code 3. This happens
when:
-
Continuum for software supply chain is unreachable or returns an error.
-
A lookup, including retries, takes longer than 30 seconds.
-
Continuum for software supply chain still throttles the lookup after five attempts.
To block these packages instead, set the CSCF_FAIL_CLOSED environment variable.
Any value other than empty, 0, false, no, or
off turns it on. With fail-closed on, the CLI blocks the package and returns with
exit code 1. Use it where an unverified package must not install, such as in
CI:
PROMPT>CSCF_FAIL_CLOSED=1 cscf npm install express
Authentication failures always block, whatever CSCF_FAIL_CLOSED is set
to.
For all of the CLI exit codes, see Exit codes and fail-open behavior.