Skip to content

Conversation

@malt3
Copy link

@malt3 malt3 commented Mar 7, 2025

@malt3 malt3 force-pushed the remote_asset_reject_unsupported_qualifiers branch from 7ca839f to 1fe6a80 Compare March 7, 2025 14:50
@mostynb
Copy link
Collaborator

mostynb commented Mar 9, 2025

Hi, thanks for the contribution.

I think the spec is too strict here- for example what if the client provides two cryptographically secure hash qualifiers, and the server only supports one of them. In that scenario I think the server should be allowed to decide if the supported qualifiers are sufficient. I created a spec change PR here: bazelbuild/remote-apis#329

@malt3
Copy link
Author

malt3 commented Mar 10, 2025

As mentioned in my comment on your PR, I don't think the spec allows for more than one expected checksum right now. Additionally, bazel-remote only understands checksum.sri with sha256 at the moment, so my change shouldn't have any impact on well-formed requests.

EDIT: @peterebden noted that checksum.sri can already support multiple, equivalent checksums.

@malt3
Copy link
Author

malt3 commented Apr 8, 2025

@mostynb I can update this PR to support parsing checksum.sri qualifiers containing more than one checksum separated by spaces (where only sha256 is selected for now). Does that make sense to you, or are there other issues with the PR in the current state you would like me to address?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants