Skip to content

Commit e6976ff

Browse files
authored
[remote asset api] Clarify encoding of checksum.sri (#330)
The SRI specification specifically allows for more than one checksum to be part of integrity metadata (https://www.w3.org/TR/SRI/). The possible presence of more than one checksum is not immediately obvious without reading the specification, so we add a clarification.
1 parent 2721568 commit e6976ff

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

build/bazel/remote/asset/v1/qualifiers.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,9 @@ The following standard qualifier `name`s are defined:
2828
```
2929

3030
* `checksum.sri`: The value represents a [Subresource Integrity](https://www.w3.org/TR/SRI/)
31-
checksum of the content.
31+
checksum of the content. Multiple checksums may be specified, separated by
32+
whitespace. The Qualifier is satisfied if the server validates at least one of the
33+
provided checksums, although it may choose to validate more than one.
3234

3335
Example:
3436
```json

0 commit comments

Comments
 (0)