Troubleshooting AWS Continuum for software supply chain
AWS Continuum for software supply chain is in preview release and is subject to change.
This topic provides information that can help you troubleshoot issues that might occur while you use Continuum for software supply chain. For explanations of the terms used here, see AWS Continuum for software supply chain concepts.
Access and permissions
Use this section when a request fails because the calling identity doesn't have the permissions it needs.
You get an AccessDeniedException for a supply chain action
A Continuum for software supply chain request returns an AccessDeniedException error. This happens
when the calling identity's identity-based policy doesn't allow the action on the resource that
the request tried to access. The error can name a missing action, a resource ARN that doesn't
match, or a tag condition that doesn't match.
To fix this error, grant the calling principal the action that the error names. Also confirm
that the resource ARN and any tag conditions match the request. The five decision actions
support only * as the resource. For the causes and the grants that resolve each
one, see I am not authorized to perform a supply chain action.
Unexpected decisions
Use this section when Continuum for software supply chain allows or blocks a package in a way that you didn't expect. The decision and its evidence show you why. For how to read them, see Reviewing package decisions and evidence.
A package is blocked and you don't know why
Continuum for software supply chain blocks a package install, and you don't know which rule caused it. A block happens when a customer rule matched the package in enforce mode and no active exception suppressed it. A block also happens when the malicious-package baseline matched the package and no active exception suppressed it.
To find the cause, read the decision for the package and its evidence. The decision's
reason field tells you whether a customer rule matched
(POLICY_RULE_MATCHED) or the baseline matched
(MALICIOUS_PACKAGE). The evidence names the rule or the baseline that matched.
For the reason fields, see Decision fields and reasons. To read the evidence, see Reading evidence.
A known-malicious package installed
A package on the malicious-package baseline was installed instead of blocked. This happens when an active policy exception targets the baseline rule
malicious-package for that package. An active exception on the baseline lets the
package install even though it is known to be malicious.
To confirm the cause, read the decision's evidence. A policyException evidence
entry shows that an exception suppressed the baseline match. For the exception evidence, see
Policy exception.
To block the package again, list the exceptions on the baseline, then update the exception to remove the package or delete the exception. For how exceptions on the baseline work and how to manage them, see Managing policy exceptions.
An exception doesn't apply to a package
You created a policy exception, but Continuum for software supply chain still blocks the package. An exception applies to a decision only when the package, the policy, and the rules of the decision match the exception. If any of these doesn't match, the exception doesn't apply. The exception might also have expired. Continuum for software supply chain judges the expiry at the time the package was evaluated.
To fix this, confirm that the exception is active and that its package identity, its policy, and its rule IDs match the decision. If the exception expired, create a new one. For status and expiry, see Scope, expiry, and status. To view an exception's status, see Status and expiry.
CLI
Use this section for problems that might occur when you run a package install through the Continuum for software supply chain CLI. For the CLI, see Protecting package installs with the Continuum for software supply chain CLI.
The CLI returns with exit code 3
The install succeeded, but the CLI didn't get a decision for at least one package. The end-of-run summary lists each one. This happens when Continuum for software supply chain is unreachable or returns an error, when a lookup takes longer than 30 seconds, when a lookup is still throttled after five attempts, or when the CLI doesn't recognize a download as a package (for example, from some private registry layouts).
To fix this, check your network, AWS Region, and endpoint, then run the command again.
Where an unverified package must not install, set CSCF_FAIL_CLOSED=1. For fail-open
and fail-closed behavior, see Availability and fail-open behavior.
The CLI returns with exit code 1 and blocks every package
Your AWS credentials are missing, expired, or don't allow
continuum:CreatePackageDecision. Authentication failures always block, even with
fail-open.
To fix this, configure or refresh your credentials, and check the IAM policy. For the permission that the CLI needs, see Credentials.
The CLI says that it doesn't support a proxy set in the package manager's configuration
The CLI stops before the install and returns with exit code 1 when npm
(https-proxy, proxy), pip (proxy, PIP_PROXY),
or Cargo (http.proxy, CARGO_HTTP_PROXY) sets its own proxy.
To fix this, remove that setting, and set HTTPS_PROXY (and
NO_PROXY) instead.
A request returns a ThrottlingException
A request returns a ThrottlingException error. This means that your requests
exceeded the request rate quota for the operation in the AWS Region. The Continuum for software supply chain CLI
retries a throttled decision request up to five times, so the install can pause. If it's still
throttled, the CLI fails open, and the package installs as unverified (exit code 3),
unless CSCF_FAIL_CLOSED is set.
To fix this, slow the rate of requests and retry with backoff. During the preview, the following request rate quotas apply to Continuum for software supply chain in each Region:
-
Decision operations: 600 requests per second for each account and each operation.
-
Policy and policy exception operations: 10 requests per second, with a burst of 10. This is one quota for each account, shared by every call to the
continuumendpoint.
You can't increase these quotas during the preview. For more information about quotas, see AWS Continuum quotas.
Requests that fail
Use this section when a create, update, or read request returns an error.
A create request returns a ValidationException for a quota
A create request returns a ValidationException error because it would pass a
quota. You can create one customer managed policy for each account in each AWS Region, so the
second CreateSupplyChainPolicy request returns a ValidationException.
You can have 10 active exceptions for each policy rule, so the 11th
CreateSupplyChainPolicyException request on a rule returns a
ValidationException.
To fix this, free a slot before you create the resource. Delete the existing policy to create a different one. For the exception quota, delete an active exception or wait for one to expire, because expired exceptions don't count toward the quota. You can't increase these quotas during the preview. For the values, see AWS Continuum quotas. For policy quotas, see Quotas. For exception quotas, see Quotas.
A policy update is rejected
An UpdateSupplyChainPolicy request is rejected. An update changes the existing
policy in place. It is rejected when you try to change the policy name, remove an existing rule,
or change a rule that has an active policy exception.
To fix this, keep the policy name the same, and include every existing rule ID in the request. To change a rule that has an active exception, wait for the exception to expire or delete it first. For what an update can and can't change, see What you can change.
A create returns a ConflictException for a reused token
A CreateSupplyChainPolicy or CreateSupplyChainPolicyException
request returns a ConflictException error. Within one hour, the same
clientToken with the same request body returns the resource that it created. The
same token with a different body, or a token reused after the resource was deleted, returns a
ConflictException. Continuum for software supply chain doesn't compare tags when it checks the
token.
To fix this, supply a new, unique clientToken for a new request. To retry the
same request safely, reuse the same token with the same body. The AWS CLI and generated AWS SDKs
fill in the token for you.
You can't update an expired exception
An UpdateSupplyChainPolicyException request on an expired exception returns a
ConflictException with the following message:
Expired policy exception '<id>' cannot be updated. Create a new exception
instead.
This happens because an expired exception can't be changed. To fix this, create a new exception with the suppression that you need. For how to create and update exceptions, see Updating an exception.
A versionRange returns a ValidationException
A request with a versionRange in a package identity returns a
ValidationException with a field path that ends in
packageIdentity/versionRange and the following message:
1 validation error detected. '<range>' is not a valid <ecosystem> package
version range.
This happens because the range isn't in the accepted form. A versionRange is
one or more comparisons separated by commas, such as >=1.0, <2.0. Ecosystem
shorthands such as ^1.0 or ~=1.2 aren't accepted. To fix this, write
the range as comparisons with the operators =, >,
>=, <, or <=. For versions and version ranges,
see Versions and version ranges.
A decision can't be found
A GetPackageDecision request returns a ResourceNotFoundException
error. Continuum for software supply chain stores each package decision for 45 days. After that time, the request
returns a ResourceNotFoundException for the decision ID. An unknown ID, or a
decision in another account, returns the same error.
To fix this, confirm the decision ID and the account. A decision older than 45 days is no longer available, and you can't recover it. For decision retention, see Retention.