-
Notifications
You must be signed in to change notification settings - Fork 103
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
Add query
to list of supported actions for authors/recipients
#285
Comments
Should add |
query
to list of supported actions for protocol-based message authorizationquery
and read
to list of supported actions for protocol-based message authorization
Needs to be complete by EOD May 14th at the latest |
I will note that 'completed' here = in a released version of the DWN SDK and Web5 JS, so probably needs to land as a PR well before that. |
I've thought about protocol query a bit more. I think I've figured out what the "difficult" part is and I have an idea of how to approach it. Difficult PartThe current ApproachIf Open Questions
|
I would require |
Agree that enforcing
This seems super heavy on processing. Is it possible to perhaps "flip" the logic? As in, go through the entire protocol definition hierarchy to find the authorized protocol paths matching the query, then perform a scoped query for each matched protocol path? Also maybe I misinterpreted it, I vaguely recall @csuwildcat told us a couple days ago that he was okay for a protocol-authorized query to return records of a specific protocol path only? If that's true, then we can just make |
I have no issue making protocolPath required for protocol-related queries |
I like this. But you're right that requiring
Nice. This makes things way easier. |
@csuwildcat and @diehuxx, should/can we add an extra requirement that |
Adding a note for my own benefit: Someone at DWN office hours on discord flagged that they have a use case for I'll update this week or next with a timeline for implementing |
query
and read
to list of supported actions for protocol-based message authorizationquery
to list of supported actions for protocol-based message authorization
I understand the problem here, and at first blush it seems like on write of a record we should index the DIDs that would be able to access it, if we didn't want to do that dynamically. |
Summary of a discussion just now: There a few cases to break protocol queries into. SummaryAdd a new index For
|
query
to list of supported actions for protocol-based message authorizationquery
to list of supported actions for authors/recipients
Currently only
write
is supported.The text was updated successfully, but these errors were encountered: