feat: server side support for authorized retrievals#250
Conversation
6694c43 to
4684250
Compare
f4f0e09 to
793f289
Compare
c262d19 to
9654108
Compare
Codecov Report❌ Patch coverage is
... and 1 file with indirect coverage changes 🚀 New features to boost your workflow:
|
volmedo
left a comment
There was a problem hiding this comment.
this looks good overall. I think the code is becoming a bit unwieldy but and it'd be nice to do a refactor at some point.
to confirm: the indexing-service can be authorized to retrieve (index) blobs by the node that has the blob or directly by the client, yes? In the latter scenario, Alice would issue a delegation to the indexing-service so it can retrieve from a space they have access to, right?
Co-authored-by: Vicente Olmedo <vicente@storacha.network>
Yes exactly right. |
1f21462
into
ash/feat/authorized-retrievals-client
This PR add server side support for authorized retrievals. This involves 2 different authorized retrieval types:
space/content/retrieve) from the relevant node (if not cached).assert/index, the indexer will now obtain a service delegation from the node that is storing the index (usingaccess/grant) before making a UCAN authorized retrieval (blob/retrieve) to obtain the index. See rfc: on-demand service authorization RFC#68 for details of on-demand service retrievals.TODO: a test for (2)