Skip to content

Commit 8c03ae2

Browse files
authored
feat(materials): Add support for CSAF 2.0 and 2.1 schemas and remaining CSAF_* materials (#749)
Signed-off-by: Javier Rodriguez <[email protected]>
1 parent de32e7b commit 8c03ae2

31 files changed

+5930
-307
lines changed

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,11 +126,14 @@ Chainloop supports the collection of the following pieces of evidence types:
126126
- [Container Image Reference](https://github.com/opencontainers/image-spec)
127127
- [CycloneDX SBOM](https://github.com/CycloneDX/specification)
128128
- [SPDX SBOM](https://spdx.dev/specifications/)
129-
- [CSAF VEX](https://docs.oasis-open.org/csaf/csaf/v2.0/os/csaf-v2.0-os.html)
130129
- [OpenVEX](https://github.com/openvex)
131130
- [SARIF](https://docs.oasis-open.org/sarif/sarif/v2.1.0/)
132131
- [JUnit](https://www.ibm.com/docs/en/developer-for-zos/14.1?topic=formats-junit-xml-format)
133132
- [Helm Chart](https://helm.sh/docs/topics/charts/)
133+
- [CSAF Security Incident Report](https://docs.oasis-open.org/csaf/csaf/v2.0/os/csaf-v2.0-os.html#42-profile-2-security-incident-response)
134+
- [CSAF Informational Advisory](https://docs.oasis-open.org/csaf/csaf/v2.0/os/csaf-v2.0-os.html#43-profile-3-informational-advisory)
135+
- [CSAF Security Advisory](https://docs.oasis-open.org/csaf/csaf/v2.0/os/csaf-v2.0-os.html#44-profile-4-security-advisory)
136+
- [CSAF VEX](https://docs.oasis-open.org/csaf/csaf/v2.0/os/csaf-v2.0-os.html#45-profile-5-vex)
134137
- Attestation: existing Chainloop attestations.
135138
- Artifact Type: It represents a software artifact.
136139
- Custom Evidence Type: Custom piece of evidence that doesn't fit in any other category, for instance, an approval report in json format, etc.

app/controlplane/api/gen/frontend/workflowcontract/v1/crafting_schema.ts

Lines changed: 32 additions & 14 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/controlplane/api/workflowcontract/v1/crafting_schema.pb.go

Lines changed: 52 additions & 37 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/controlplane/api/workflowcontract/v1/crafting_schema.proto

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,19 +78,22 @@ message CraftingSchema {
7878
JUNIT_XML = 6;
7979
// https://github.com/openvex/spec
8080
OPENVEX = 7;
81-
// https://docs.oasis-open.org/csaf/csaf/v2.0/cs03/csaf-v2.0-cs03.html
82-
CSAF_VEX = 8;
8381
// Static analysis output format
8482
// https://github.com/microsoft/sarif-tutorials/blob/main/docs/1-Introduction.md
85-
SARIF = 9;
8683
HELM_CHART = 10;
84+
SARIF = 9;
8785

8886
// Pieces of evidences represent generic, additional context that don't fit
8987
// into one of the well known material types. For example, a custom approval report (in json), ...
9088
EVIDENCE = 11;
9189

9290
// Chainloop attestation coming from a different workflow.
9391
ATTESTATION = 12;
92+
// https://docs.oasis-open.org/csaf/csaf/v2.0/cs03/csaf-v2.0-cs03.html
93+
CSAF_VEX = 8;
94+
CSAF_INFORMATIONAL_ADVISORY = 13;
95+
CSAF_SECURITY_ADVISORY = 14;
96+
CSAF_SECURITY_INCIDENT_RESPONSE = 15;
9497
}
9598
}
9699
}

docs/docs/reference/operator/contract.mdx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,14 @@ Chainloop supports the collection of the following pieces of evidence types:
5151
- [Container Image Reference](https://github.com/opencontainers/image-spec)
5252
- [CycloneDX SBOM](https://github.com/CycloneDX/specification)
5353
- [SPDX SBOM](https://spdx.dev/specifications/)
54-
- [CSAF VEX](https://docs.oasis-open.org/csaf/csaf/v2.0/os/csaf-v2.0-os.html)
5554
- [OpenVEX](https://github.com/openvex)
5655
- [SARIF](https://docs.oasis-open.org/sarif/sarif/v2.1.0/)
5756
- [JUnit](https://www.ibm.com/docs/en/developer-for-zos/14.1?topic=formats-junit-xml-format)
5857
- [Helm Chart](https://helm.sh/docs/topics/charts/)
58+
- [CSAF Security Incident Report](https://docs.oasis-open.org/csaf/csaf/v2.0/os/csaf-v2.0-os.html#42-profile-2-security-incident-response)
59+
- [CSAF Informational Advisory](https://docs.oasis-open.org/csaf/csaf/v2.0/os/csaf-v2.0-os.html#43-profile-3-informational-advisory)
60+
- [CSAF Security Advisory](https://docs.oasis-open.org/csaf/csaf/v2.0/os/csaf-v2.0-os.html#44-profile-4-security-advisory)
61+
- [CSAF VEX](https://docs.oasis-open.org/csaf/csaf/v2.0/os/csaf-v2.0-os.html#45-profile-5-vex)
5962
- Attestation: existing Chainloop attestations.
6063
- Artifact Type: It represents a software artifact.
6164
- Custom Evidence Type: Custom piece of evidence that doesn't fit in any other category, for instance, an approval report in json format, etc.

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ require (
226226
github.com/gorilla/mux v1.8.1
227227
github.com/hashicorp/errwrap v1.1.0 // indirect
228228
github.com/hashicorp/go-cleanhttp v0.5.2 // indirect
229-
github.com/hashicorp/go-multierror v1.1.1 // indirect
229+
github.com/hashicorp/go-multierror v1.1.1
230230
github.com/hashicorp/go-plugin v1.4.10
231231
github.com/hashicorp/go-retryablehttp v0.7.5 // indirect
232232
github.com/hashicorp/go-rootcerts v1.0.2 // indirect

0 commit comments

Comments
 (0)