Skip to content

Commit

Permalink
Final demo setup
Browse files Browse the repository at this point in the history
Signed-off-by: Marcela Melara <marcela.melara@intel.com>
  • Loading branch information
marcelamelara committed Dec 28, 2023
1 parent f99d315 commit ce5b2fb
Show file tree
Hide file tree
Showing 13 changed files with 173 additions and 73 deletions.
4 changes: 3 additions & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
module github.com/in-toto/scai-demos

go 1.20
go 1.21

toolchain go1.21.5

require (
github.com/google/cel-go v0.18.2
Expand Down
72 changes: 72 additions & 0 deletions go.sum

Large diffs are not rendered by default.

18 changes: 16 additions & 2 deletions kccncna2023-demo/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,17 @@ the build
These two attestations are signed using cosign OIDC-based keyless signing,
and uploaded to the public Rekor log.

### Verified Policies

This demo verifies the following policies using the generated attestations:

* [in-toto Layout] checks that the expected attestations were generated for each step
of the demo workflow.
* [SCAI policy] checks the attested attributes against the evidence indicated in the
SCAI Attribute Report.

This verification flow is implemented in the [verification-flow.sh] script.

### Additional Tools

This demo makes use of the following additional tools:
Expand All @@ -37,9 +48,12 @@ This demo makes use of the following additional tools:
[Anchore SBOM generator]: https://github.com/anchore/sbom-action
[attestation-verifier]: https://github.com/in-toto/attestation-verifier
[demo workflow]: https://github.com/marcelamelara/private-data-objects/blob/intoto-kccncna2023-demo/.github/workflows/intoto-kccncna2023-demo.yml
[in-toto Layout]: ./policies/layout.yml
[in-toto Maintainer Track talk]: https://kccncna2023.sched.com/event/1R2mx
[SLSA generic Provenance generator]: https://github.com/slsa-framework/slsa-github-generator
[SLSA Provenance]: https://github.com/in-toto/attestation/blob/main/spec/predicates/provenance.md
[SCAI Attribute Report]: https://github.com/in-toto/attestation/blob/main/spec/predicates/scai.md
[SLSA Provenance]: https://github.com/in-toto/attestation/blob/v1.0.1/spec/predicates/provenance.md
[SCAI Attribute Report]: https://github.com/in-toto/attestation/v1.0.1/main/spec/predicates/scai.md
[SCAI policy]: ./policies/has-slsa.yml
[scai-gen GitHub Actions]: https://github.com/in-toto/scai-demos/tree/main/.github/actions
[strace]: https://strace.io/
[verification-flow.sh]: ./verification-flow.sh
1 change: 1 addition & 0 deletions kccncna2023-demo/attestations/build.452e628a.json

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion kccncna2023-demo/attestations/build.e060fc8d.json

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"payloadType":"application/vnd.in-toto+json","payload":"eyJfdHlwZSI6Imh0dHBzOi8vaW4tdG90by5pby9TdGF0ZW1lbnQvdjEiLCJzdWJqZWN0IjpbeyJuYW1lIjoicGRvX2NsaWVudF93YXdha2EiLCJkaWdlc3QiOnsic2hhMjU2IjoiOWZiN2VmNTUyMjk4ZjhmYmFkODQ2MDRkMDYxMDBlNzYwYjdiOGM0Y2I0ZDZjNGI3Mjc4NjVmMWYyODVkMDZhYyJ9fV0sInByZWRpY2F0ZVR5cGUiOiJodHRwczovL2luLXRvdG8uaW8vYXR0ZXN0YXRpb24vc2NhaS9hdHRyaWJ1dGUtcmVwb3J0L3YwLjIiLCJwcmVkaWNhdGUiOnsiYXR0cmlidXRlcyI6W3siYXR0cmlidXRlIjoiSGFzU0JPTSIsImV2aWRlbmNlIjp7ImRpZ2VzdCI6eyJzaGEyNTYiOiJkOTVjMjAyZTBlNDAyMTQ0ZDYzNjM4MGU5ODJlYWZmNTRiZTU1OWI1NTU5OGZkMTgwNzFlOTZkNmYzYTdlYjAzIn0sImRvd25sb2FkTG9jYXRpb24iOiJodHRwczovL2dpdGh1Yi5jb20vbWFyY2VsYW1lbGFyYS9wcml2YXRlLWRhdGEtb2JqZWN0cy9zdWl0ZXMvMTU0MTc3MjYxNDIvYXJ0aWZhY3RzLzg4MDQwMzM5NSIsIm1lZGlhVHlwZSI6ImFwcGxpY2F0aW9uL3NwZHgranNvbiIsIm5hbWUiOiJwZG9fY2xpZW50X3dhd2FrYS5zcGR4Lmpzb24ifX0seyJhdHRyaWJ1dGU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comment.