-
Notifications
You must be signed in to change notification settings - Fork 13
fix: handling content-serve delegations #189
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
Conversation
0d033c5 to
1b798f4
Compare
- use the full signer + did:web as the authority for the server - do not fail when multiple delegations are stored by content/serve - pass blocks with each stored delegation when serving - allow alternate authority on content serve delegations # Why - The first issue we're having is attestations must match the authority, and we were using the signer, as opposed to the identity, so the dids did not match - Second, we didn't support storing multiple delegations, which is problematic cause the `claim` check in the implementation of access/delegate will fail if you don't also give it the attestation - Third, we were not passing in attached blocks with the our delegations - Finally, it's never come up before, but who exactly is the "authority" on a storing of space/content/serve? Here, my belief is it should be the upload-service, as it's the ultimate arbiter of whether egress can be billed. I don't know if the upload service is properly checking each submitted content serve for validity, but if it is, its authority will be itself. So I added facilities to use the upload service as the authority -- of note, the authority does NOT require a private key, so don't worry we're just storing the upload service pub key in wrangler.toml
3e71792 to
97236b4
Compare
travis
left a comment
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.
some fairly aesthetic changes, though removing unnecessary logs and comments are both relatively important - approving since they are easy to change now or later
hannahhoward
left a comment
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.
LGTM -- suggestions are non blocking. you should remove CONTENT_SERVE_AUTHORITY_PUB_KEY I think though.
fa33344 to
8601eb8
Compare
🤖 I have created a release *beep* *boop* --- ## [2.36.1](v2.36.0...v2.36.1) (2025-12-09) ### Bug Fixes * handling content-serve delegations ([#189](#189)) ([21491b4](21491b4)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Added Validator Proof to be able to validate attestations issued by the upload service when clients attempt to store
content/servedelegations.Related to storacha/project-tracking#592