Skip to content

Feat/upgrade slsa attestation - #791

Open
Derekwalter999 wants to merge 2 commits into
RevoraOrg:masterfrom
Derekwalter999:feat/upgrade-slsa-attestation
Open

Feat/upgrade slsa attestation#791
Derekwalter999 wants to merge 2 commits into
RevoraOrg:masterfrom
Derekwalter999:feat/upgrade-slsa-attestation

Conversation

@Derekwalter999

Copy link
Copy Markdown

Description
Resolves #711 Contract upgrade orchestrator: reproducible build attestation verification.

Context
To prevent supply-chain attacks where a malicious actor substitutes unverified Soroban code, we must enforce reproducible-build attestations matching SLSA Level 3 requirements. This ensures that any uploaded target code-id has explicit, cryptographically verifiable provenance from an authorized builder identity configured in the tenant settings.

Changes Made
Attestation Verifier Tests: The core verification logic already existed but lacked test coverage. Added src/security/attestationVerifier.test.ts with comprehensive edge-case assertions.
Security & Correctness Assumptions Validated:
Rejects attestations from unknown or unauthorized builder identities.
Rejects missing builder IDs, mismatched target_code_id digests, and unsupported SLSA predicate types.
Verification is wired directly into the orchestrator's createUpgrade flow.
Emits upgrade.attestation.verified audit trails for compliance.
Checklist
Attestation verification logic rigorously covered under test.
Correctly rejects unknown and unauthorized builders.
Emits required audit event (upgrade.attestation.verified).
95%+ test coverage maintained.

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.

Contract upgrade orchestrator: reproducible build attestation verification

1 participant