-
Notifications
You must be signed in to change notification settings - Fork 225
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
editorial: Clarify language in VSA spec #882
Changes from all commits
8b0b25e
1233829
68adac3
956dc5a
b0a877b
60396db
a71652a
0d386cf
f841bcf
46dcb8f
abe634c
b1ef965
7800f4b
ee07742
359c50a
79fdfe1
2f22cf3
4cde255
c0e01a1
d0ef5f4
f2e1d11
614a115
a219938
3c8ee37
1febf58
1fa3fa9
e214c2a
03fe050
ead4e1c
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,8 +4,9 @@ description: SLSA v1.0 specification for a verification summary of artifacts by | |
layout: standard | ||
--- | ||
|
||
Verification summary attestations communicate that an artifact has been verified | ||
at a specific SLSA level and details about that verification. | ||
Verification summary attestations convey high-level information about an | ||
artifact's verification, allowing consumers to delegate verification decisions | ||
to trusted third parties. | ||
|
||
This document defines the following predicate type within the [in-toto | ||
attestation] framework: | ||
|
@@ -21,17 +22,17 @@ attestation] framework: | |
|
||
## Purpose | ||
|
||
Describe what SLSA level an artifact or set of artifacts was verified at | ||
and other details about the verification process including what SLSA level | ||
the dependencies were verified at. | ||
Assert that the VSA producer has verified an artifact or set of artifacts. | ||
Optionally include details about the verification process, such as the verified | ||
SLSA level(s) and the verifier's expectations. | ||
|
||
This allows software consumers to make a decision about the validity of an | ||
VSAs allow software consumers to make a decision about the validity of an | ||
artifact without needing to have access to all of the attestations about the | ||
artifact or all of its transitive dependencies. They can use it to delegate | ||
complex policy decisions to some trusted party and then simply trust that | ||
party's decision regarding the artifact. | ||
artifact or all of its transitive dependencies. The software consumer delegates | ||
complex policy decisions to a trusted party and then acts on those decisions by | ||
consuming the VSA. | ||
|
||
It also allows software producers to keep the details of their build pipeline | ||
VSAs also allow software producers to keep the details of their build pipeline | ||
confidential while still communicating that some verification has taken place. | ||
This might be necessary for legal reasons (keeping a software supplier | ||
confidential) or for security reasons (not revealing that an embargoed patch has | ||
|
@@ -41,23 +42,20 @@ been included). | |
|
||
A Verification Summary Attestation (VSA) is an attestation that some entity | ||
(`verifier`) verified one or more software artifacts (the `subject` of an | ||
in-toto attestation [Statement]) by evaluating the artifact and a `bundle` | ||
of attestations against some `policy`. Users who trust the `verifier` may | ||
assume that the artifacts met the indicated SLSA level without themselves | ||
needing to evaluate the artifact or to have access to the attestations the | ||
`verifier` used to make its determination. | ||
|
||
The VSA also allows consumers to determine the verified levels of | ||
all of an artifact’s _transitive_ dependencies. The verifier does this by | ||
either a) verifying the provenance of each non-source dependency listed in | ||
the [resolvedDependencies](/provenance/v1#resolvedDependencies) of the artifact | ||
being verified (recursively) or b) matching the non-source dependency | ||
listed in `resolvedDependencies` (`subject.digest` == | ||
`resolvedDependencies.digest` and, ideally, `vsa.resourceUri` == | ||
`resolvedDependencies.uri`) to a VSA _for that dependency_ and using | ||
`vsa.verifiedLevels` and `vsa.dependencyLevels`. Policy verifiers wishing | ||
to establish minimum requirements on dependencies SLSA levels may use | ||
`vsa.dependencyLevels` to do so. | ||
in-toto attestation [Statement]) by evaluating the artifact and its associated | ||
attestation(s) against the `policy` for `resourceUri`. Consumers who trust | ||
the `verifier` may assume that the artifacts identified by the | ||
`(subject, resourceUri)` pair met the indicated SLSA level without | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. to be more general and follow earlier wording, we could say There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think including both may be more helpful, i.e. "... met the indicated SLSA level and other criteria in the policy". We are implementing a producer/consumer of VSA v1.0 and realized that there are two different scenarios:
So, if we are producing a VSA without foreknowledge of who will consume it, we should put in both SLSA levels and the extension attributes in the VSA. |
||
themselves needing to evaluate the artifact or to have access to the | ||
attestations the `verifier` used to make its determination. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. may add another example that the VSA works in cases where the repository is not public. That's why we can't verify SLSA provenance directly for closed-source software. |
||
|
||
VSAs can also be chained together to meet higher level goals, such as tracking | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. what does higher-level goal mean? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think "chained" refers to the following:
These two properties feed each other, so that a VSA is able to summarize the verification results on all transitive dependencies. A VSA represents cumulative verification along the dependency chains of an artifact. Maybe it is more accurate to describe VSAs subsumes from one another. For a native example, a system image with 20 packages, each with 50 dependency libraries. Without VSA, the attestation bundle of the system image will look like:
With VSA and staging repo verification, the attestation bundle of the system image will look like:
After the system image get verified, the attestation bundle of the system image can be reduced to just:
|
||
the verified SLSA level(s) for the `subject`'s transitive dependencies. Rather | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. same comment as before: if we're saying that levels and other verified metadata is optional, we could be more generic |
||
than verifying provenance for the artifact and each of its transitive | ||
dependencies all at once, the verifier can verify each dependency independently | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If a verifier can verify provenance and generate VSA, why does it need to verify them independently? Is this for security or is it a caching (optimization) mechanism? Is there an assumption in the sentence that maybe there are multiple There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think this part refers to the "divide-and-conquer" strategy the VSA enables. For a naive example, if a system image has 20 software packages, and each package has 50 dependency libraries. A complete transitive dependency verification would involve checking 1+20+20*50 = 1021 artifacts during a single verification, which may consume too much time and violate the verifier's latency SLO. However, with VSA, what can happen is that, when the 20 software packages get staged in an artifact repo, the repo invokes transitive verification for each, so each verification only checks 1+50 artifacts; and the verification produces VSAs, which propagate to the system image's attestation bundle. Then, when we verify the system image, the verifier will only need to perform at 1+20 checks, because the presence of VSAs of the packages eliminates the need to check the dependency libraries (since VSA is a proof that they are already checked). Effectively, VSA functions as a "distributed dynamic programming table" and facilitates efficient transitive dependency verification. |
||
and produce VSAs. Finally, the verifier combines those VSAs; the artifact | ||
is the final VSA's `subject` and each transitive dependency is an | ||
entry in `dependencyLevels`. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. same comment: do we want to be generic about "verified metadata" or mention verified levels? If the former, we could have a dedicated section with examples for different types of metadata, starting with a verified level. Just an idea... |
||
|
||
## Schema | ||
|
||
|
@@ -129,7 +127,7 @@ of the other top-level fields, such as `subject`, see [Statement]._ | |
> can sign provenance for the "Google Cloud Deploy" verifier, but "GitHub" cannot | ||
> sign for the "Google Cloud Deploy" verifier. | ||
> | ||
> The field is required, even if it is implicit from the signer, to aid readability and | ||
> This field is required, even if it is implicit from the signer, to aid readability and | ||
> debugging. It is an object to allow additional fields in the future, in case one | ||
> URI is not sufficient. | ||
|
||
|
@@ -147,6 +145,12 @@ of the other top-level fields, such as `subject`, see [Statement]._ | |
`resourceUri` _string ([ResourceURI]), required_ | ||
|
||
> URI that identifies the resource associated with the artifact being verified. | ||
> | ||
> This field is required to prevent confusion attacks. E.g., a VSA indicating | ||
> that a package can be published as `foo` should not be usable to publish | ||
> the package as `bar`; a VSA indicating that a package passed the policy for | ||
> a `dev` environment should not be usable to deploy the package to a `prod` | ||
> environment. | ||
|
||
<a id="policy"></a> | ||
`policy` _object ([ResourceDescriptor]), required_ | ||
|
@@ -179,8 +183,8 @@ of the other top-level fields, such as `subject`, see [Statement]._ | |
> Indicates the highest level of each track verified for the artifact (and not | ||
> its dependencies), or "FAILED" if policy verification failed. | ||
> | ||
> Users MUST NOT include more than one level per SLSA track. Note that each SLSA | ||
> level implies all levels below it (e.g. SLSA_BUILD_LEVEL_3 implies | ||
> VSA producers MUST NOT include more than one level per SLSA track. Note that | ||
> each SLSA level implies all levels below it (e.g. SLSA_BUILD_LEVEL_3 implies | ||
> SLSA_BUILD_LEVEL_2 and SLSA_BUILD_LEVEL_1), so there is no need to | ||
> include more than one level per track. | ||
|
||
|
@@ -193,8 +197,8 @@ of the other top-level fields, such as `subject`, see [Statement]._ | |
> that were verified at the indicated level. Absence of a given level of | ||
> [SlsaResult] MUST be interpreted as reporting _0_ dependencies at that level. | ||
> | ||
> Users MUST count each dependency only once per SLSA track, at the highest | ||
> level verified. For example, if a dependency meets SLSA_BUILD_LEVEL_2, | ||
> VSA producers MUST count each dependency only once per SLSA track, at the | ||
> highest level verified. For example, if a dependency meets SLSA_BUILD_LEVEL_2, | ||
> you include it with the count for SLSA_BUILD_LEVEL_2 but not the count for | ||
>SLSA_BUILD_LEVEL_1. | ||
|
||
|
@@ -235,7 +239,7 @@ WARNING: This is just for demonstration purposes. | |
} | ||
], | ||
"verificationResult": "PASSED", | ||
"verifiedLevels": ["SLSA_LEVEL_3"], | ||
"verifiedLevels": ["SLSA_BUILD_LEVEL_3"], | ||
"dependencyLevels": { | ||
"SLSA_BUILD_LEVEL_3": 5, | ||
"SLSA_BUILD_LEVEL_2": 7, | ||
|
@@ -269,7 +273,7 @@ Users MAY use custom values here but MUST NOT use custom values starting with | |
|
||
## Change history | ||
|
||
- 1: | ||
- 1.0: | ||
- Replaced `materials` with `resolvedDependencies`. | ||
- Relaxed `SlsaResult` to allow other values. | ||
- Converted to lowerCamelCase for consistency with [SLSA Provenance]. | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
verifier's expectations
==policy
? In the rest of the text we saypolicy
. Shall we use the same term throughout the doc? It's a bit confusing otherwise, at least for me.