-
Notifications
You must be signed in to change notification settings - Fork 106
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
Require digest verification for related resources. #1567
base: main
Are you sure you want to change the base?
Changes from all commits
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 | ||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
@@ -3191,12 +3191,13 @@ <h2>Integrity of Related Resources</h2> | |||||||||||||||||||||||||||||||||||||||||||||
</p> | ||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||
<p> | ||||||||||||||||||||||||||||||||||||||||||||||
Specification authors that write algorithms that fetch a resource based on the | ||||||||||||||||||||||||||||||||||||||||||||||
`id` of an object inside a [=conforming document=] need to consider whether | ||||||||||||||||||||||||||||||||||||||||||||||
that resource's content is vital to the validity of that document. If it is, the | ||||||||||||||||||||||||||||||||||||||||||||||
specification MUST produce a validation error unless the resource matches the | ||||||||||||||||||||||||||||||||||||||||||||||
expected media type and cryptographic digest. | ||||||||||||||||||||||||||||||||||||||||||||||
A [=conforming verifier implementation=] that makes use of a resource based on | ||||||||||||||||||||||||||||||||||||||||||||||
the `id` of an object inside a [=conforming document=] with a corresponding | ||||||||||||||||||||||||||||||||||||||||||||||
cryptographic digest MUST check the digest against the retrieved resource. If | ||||||||||||||||||||||||||||||||||||||||||||||
Comment on lines
+3195
to
+3196
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. Just being picky...
Suggested change
It is pickiness. I will a accept either way. 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. Hmm, this is in the related resource section. The Note the sentence right before the above paragraph says:
This "an object" ^ is the same one referred to in the paragraph above. |
||||||||||||||||||||||||||||||||||||||||||||||
the digest of the retrieved resource does not match the one provided by the | ||||||||||||||||||||||||||||||||||||||||||||||
[=issuer=], the [=conforming verifier implementation=] MUST produce an error. | ||||||||||||||||||||||||||||||||||||||||||||||
Comment on lines
+3194
to
+3198
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. Should this end something like "MUST produce an error that SHOULD indicate type _____"?
Suggested change
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. Revised based on conversation between @dlongley and @iherman above. Still wondering whether this should end with something like "MUST produce an error that SHOULD indicate type _____"?
Suggested change
|
||||||||||||||||||||||||||||||||||||||||||||||
</p> | ||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||
<p> | ||||||||||||||||||||||||||||||||||||||||||||||
Implementers are urged to consult appropriate sources, such as the | ||||||||||||||||||||||||||||||||||||||||||||||
<a href="https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.180-4.pdf"> | ||||||||||||||||||||||||||||||||||||||||||||||
|
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.
If necessary for clarity, here's an alternative suggestion to what Ivan suggests below:
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.
Yep, that works and is mathematically more precise.
👍