Implement and document SLSA v1.2 Build Level 3 compliance

Open
#1,136 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Documentation
Clarity
Mostly clear
Activity status
Stale

Research direction

Start by reviewing the repository's existing requirements and tests, then compare them with the SLSA v1.2 Level 3 requirements. Document the compliance mapping and Level 4 roadmap, update the targeted requirements, and add the SLSA badge to the README.

Written by the indexing model from the issue text.

Description

Goal and agreed completion condition

Implement and demonstrate SLSA v1.2 Build Level 3 for amp-devcontainer's published release container images, then document the evidence and add an accurately scoped README badge.

An assessment or a list of future remediation issues is not sufficient to close this issue: all applicable L3 gaps must be fixed and evidenced. If a necessary platform capability or repository setting requires maintainer action, record the blocker and keep this issue open.

SLSA v1.2 defines Build Levels 1, 2, and 3, not Level 4. Replace the original "Level 4" roadmap with an explicitly non-normative beyond-L3 hardening roadmap. Do not claim Source-track compliance, certification, or obsolete-version Level 4 compliance.

Current implementation and starting points

Inspected at af840070c907d71ce06334ea65eded00dc3946a4; recheck before starting.

  • docs/requirements/security.feature: req-sec-0001 currently targets SLSA v1.0 Build L3; req-sec-0002 addresses signing and req-sec-0003 addresses SBOMs.
  • .github/workflows/wc-build-push.yml: platform builds, digest artifacts, index merge, SBOM, and actions/attest provenance with registry publication.
  • Existing verification restricts repository and signer workflow. Its SBDL annotation test-sec-0001 currently links to the signing requirement, not a complete L3 assessment.
  • .github/workflows/release-build.yml: draft-release check, build/test, release evidence, and subsequent publication.
  • docs/reusable-build-system.md: shared-workflow caller contract, including configurable runner labels and registry support.

The presence of signed provenance or GitHub-hosted runners alone is not evidence that the full L3 requirements are satisfied.

Scope and trust boundary

Cover all release image flavors and their published multi-platform indexes, including the relationship to platform image builds. Identify the exact producer repository, source/ref, workflows and revisions, builder identity, runner infrastructure, registry, and release-publication path covered by the claim.

The compliance claim is for amp-devcontainer's own release pipeline. Preserve reusable-workflow compatibility, but document downstream obligations separately: arbitrary caller configuration, external services, registries, and self-hosted runners do not automatically inherit this result. Evaluate their position relative to the chosen platform trust boundary rather than declaring all self-hosted configurations compliant or noncompliant.

Implementation work

  1. Build a requirement-by-requirement matrix against SLSA v1.2 Build requirements, covering producer duties and build-platform duties. For each applicable MUST and SHOULD, record applicability, status, implementation, immutable source/document links, verification method, and retained evidence. Explain treatment of SHOULD requirements; do not silently omit them.
  2. Document the threat model and platform trust boundary. Follow the complete flow from source checkout through platform builds, digest handoff, index merge, provenance generation/signing, verification, and release publication.
  3. Evaluate and remediate provenance authenticity and unforgeability: signing material/token access, trusted identity, source/workflow binding, generated/verified provenance fields, fully enumerated external parameters, and resistance to tenant-controlled steps altering claims. Merely moving a signing step to another job is not proof of a trusted control plane. Select a supported isolated generator/builder architecture if the current arrangement cannot meet the requirements.
  4. Evaluate and remediate build isolation: ephemeral environments; overlapping and successive build separation; platform-secret isolation; cache poisoning protections; and remote interfaces/external influence within the chosen trust boundary. Include artifact/digest handoff between jobs and the multi-platform assembly path. Use authoritative provider evidence where controls are platform-owned and tests where controls are repository-owned.
  5. Ensure provenance identifies the actual build, source revision, trusted builder, artifact digest, and relevant inputs. Document any permitted tenant-supplied fields and why they satisfy the specification. Verify that final index provenance does not conceal an unsupported claim about how its platform images were built.
  6. Implement all changes required by the matrix, including workflow/reusable-workflow contracts, permissions, cache boundaries, generator isolation, verification policy, and release gates. Keep unrelated supply-chain redesign out of scope. Identify required repository settings explicitly and obtain maintainer action where the agent cannot apply them.
  7. Require successful provenance-policy verification before publishing the release. Preserve draft-first publication and evidence delivery. Update downstream caller guidance for any changed contract; do not silently weaken existing supported paths.
  8. Update req-sec-0001 and related links to v1.2 Build L3, and maintain SBDL requirement/test/evidence traceability. Add a stable documentation page containing the matrix, architecture, trust assumptions, verification procedure, and concrete release evidence.
  9. Add the README badge only after the L3 evidence is complete. Link it to the scoped assessment; make clear this is a project assessment, not an external certification. Include a maintenance/reassessment process for platform, workflow, permissions, cache, or runner changes.
  10. Add a beyond-L3 roadmap with prioritized hardening opportunities and measurable outcomes. Label these as additional goals, not requirements for a nonexistent v1.2 Level 4.

Verification and evidence

  • Run a real representative release-path build using the revised trusted builder/generator; retain digest-addressed provenance and verification results with stable links. Map evidence to every in-scope flavor/platform; shared-control evidence may be reused when justified.
  • Positive verification validates the expected artifact digest, source/revision, builder/signer identity, repository/workflow trust, and required provenance fields.
  • Negative fixtures reject wrong digest, wrong source/revision, untrusted signer/workflow, altered provenance, and missing/incorrect required fields. Tests must exercise policy checks, not just signature existence.
  • Demonstrate that tenant-controlled build steps cannot obtain signing authority or forge protected provenance fields for the trusted builder identity. Test feasible repository controls in disposable fixtures; substantiate provider isolation properties with authoritative evidence rather than claiming a unit test proves them.
  • Verify cache and cross-build isolation controls against the stated boundary, including the build-to-merge handoff.
  • Deliberately fail provenance verification and show that release publication cannot proceed. Preserve existing build/integration checks and run relevant workflow linters.
  • Clearly distinguish demonstrated controls, platform guarantees, assumptions, and remaining gaps. No unknown/unmet applicable MUST may remain when the issue closes.

Acceptance criteria

  • SLSA v1.2 Build L3 is the consistent target in requirements and documentation.
  • Scope, trust boundary, full requirement matrix, and stable evidence links are published.
  • All applicable L3 MUST requirements are implemented and evidenced; necessary configuration changes are applied, not merely proposed.
  • Provenance unforgeability, build isolation, complete external parameters, and multi-platform handoff are addressed.
  • Positive and negative verification tests pass; release publication is demonstrably gated.
  • Reusable-workflow consumers have accurate compatibility and applicability guidance, including self-hosted configurations.
  • The README badge links to substantiated, scoped evidence; a reassessment process and beyond-L3 roadmap exist.

Dependencies and references

philips-software/amp-devcontainer#1134 provides evidence-retention policy; philips-software/amp-devcontainer#1135 adds SBOM attestation. Coordinate shared workflow changes, but neither an SBOM attestation nor an issue's closure substitutes for satisfying the L3 requirements. SBOM attestation is not itself a normative SLSA Build L3 requirement.

Dominant language
Shell
Stars
136
Forks
8
Avg merge
17h 19m
Merged PRs (30d)
53

Getting set up

Open in Codespaces

Starts the project's dev container in your browser, under your own GitHub account.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from philips-software/amp-devcontainer

All issues in philips-software/amp-devcontainer

Similar issues

More Shell/Bash issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.