Replies: 4 comments 3 replies
-
Yes please. We’ve run into a few situations where this would be really valuable. |
Beta Was this translation helpful? Give feedback.
-
I think this is a great idea. We could also have some level of spot checking during the certification process. |
Beta Was this translation helpful? Give feedback.
-
The HTML standard has a very similar specification (but with different goals) that we could lean on: Subresource Integrity (SRI) spec, MDN. In HTML world, it looks like this: <script
src="https://example.com/example-framework.js"
integrity="sha384-oqVuAfXRKap7fdgcCY5uykM6+R9GqQ8K/uxy9rx7HNQlGYl1kPzQho1wx4JwY8wC"
crossorigin="anonymous"></script> What I like about this spec is that the algorithm is specified inline to make one logical value. We can use a single field on the media resource instead of introducing a new shape. A media item might look like {
"@odata.id": "https://example.com/Property('1')/Media('1-asdf')"
"Order": 1,
"MediaURL": "https://cdn.example.com/asdf-original.jpg",
"MediaKey": "asdf",
// 👇
"Checksum": "sha1-wE/JfOePkzSgyUOGJ8x9m9xXtFw="
} A couple of questions we might need to resolve if we go this route:
|
Beta Was this translation helpful? Give feedback.
-
This would go a long way to help solve one of our larger pain points! I would love to see this discussed in a workgroup meeting. (This message brought to you by the request at the last workgroup meeting to review the discussions and comment on anything we think is important.) |
Beta Was this translation helpful? Give feedback.
-
Having an byte array checksum on the
Media
resource that can used to validate that the media byte stream would be nice to be able to reduce excess media transitions. This would allow clients to avoid pulling the byte stream when modification timestamp has changed for other reasons like photo order as they can check the checksum against their local copy. For the implementers it could reduce the the repetitive fetching of media on their solutions.A implementation could support multiple checksum algorithms so communicating it as a collection which include the type of checksum would be needed. The checksums should be and documented, open enumerated lookup so that it's easy for the clients to identified the algoithm on their side. The type of checksum and that algorithm's industry-standard, text friendly output format (non-binary) would be each attribute set in each instance of the collection.
It would be good to recommend/require one checksum algorithm to be standard by the RESO to align the implementations for ease of use with other algorithms for advanced cases and future migration as industry standards change.
A checksums on a media record could look something like this:
Beta Was this translation helpful? Give feedback.
All reactions