Skip to content

Fix the slsa source loop of doom - #401

Merged
puerco merged 7 commits into
slsa-framework:mainfrom
puerco:doom-loop
Jun 5, 2026
Merged

Fix the slsa source loop of doom#401
puerco merged 7 commits into
slsa-framework:mainfrom
puerco:doom-loop

Conversation

@puerco

@puerco puerco commented Jun 5, 2026

Copy link
Copy Markdown
Member

This PR updates sourcetool to always generate provenance with the accurate source level.

When a repository has changes that downgrade its slsa level, instead of failing and refusing to issue provenance, we issue the right provenance attestation with the passing controls and the VSA with the downgraded level. sourcetool checklevel will still exit non-zero by default but having the provenance allows the user to recover without ugly hacks (see #400 for details).

The attestation evaluation now returns the details when we fail to meet the policy requirements. Also, we introduce a new --silent-downgrade flag to control if we exit non zero when the slsa level is downgraded.

Closes #400

puerco added 7 commits June 4, 2026 20:14
Signed-off-by: Adolfo García Veytia (Puerco) <puerco@carabiner.dev>
Signed-off-by: Adolfo García Veytia (Puerco) <puerco@carabiner.dev>
Signed-off-by: Adolfo García Veytia (Puerco) <puerco@carabiner.dev>
Signed-off-by: Adolfo García Veytia (Puerco) <puerco@carabiner.dev>
Signed-off-by: Adolfo García Veytia (Puerco) <puerco@carabiner.dev>
Signed-off-by: Adolfo García Veytia (Puerco) <puerco@carabiner.dev>
Signed-off-by: Adolfo García Veytia (Puerco) <puerco@carabiner.dev>
@puerco
puerco merged commit 95c5b62 into slsa-framework:main Jun 5, 2026
6 checks passed
@puerco
puerco deleted the doom-loop branch June 5, 2026 04:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Inescapable SLSA Source Doom Loop™ when policy fails.

1 participant