WARN_DIGEST_SRI_INVALID
Warning Code: WARN_DIGEST_SRI_INVALID
This warning is reported when verification using digestSRI fails for a property of the image datatype. It is not treated as a verification failure, but it is planned to become an error after 2027.
Warning Message
- "digestSRI verification failed. This will become an error after 2027. See: https://docs.originator-profile.org/opb/context/#the-image-datatype"
Causes
- The image retrieved from the
idURL does not match the hash value indigestSRI. The image may have been replaced, or thedigestSRIvalue may be incorrect. digestSRIdoes not contain any supported hash algorithm.- The image could not be retrieved from the
idURL.
Examples
- The image was updated, but
digestSRIwas not.
{
"image": {
"id": "https://example.com/image.png",
"digestSRI": "sha256-OYP9B9EPFBi1vs0dUqOhSbHmtP+ZSTsUv2/OjSzWK0w="
}
}
Resolution
- Make sure the image can be retrieved from the
idURL. - Recalculate
digestSRIfrom the image currently being served and set it again. The verification method fordigestSRIcan be found in VerifyingimageDatatype.