NIP-29: define explicit role permissions and access schema on kind 39003#2316
NIP-29: define explicit role permissions and access schema on kind 39003#23161amKhush wants to merge 2 commits intonostr-protocol:masterfrom
Conversation
|
I can't really read everything but looks good. There is an ambiguity though: if I create a group and give delete-user permission to someone else, can they delete me? Or if I give them permission to delete-event, can they delete my events? |
|
This behavior is relay policy. If a relay wants founder protection or hierarchy rules (for example, cannot moderate equal/higher roles), it should enforce that locally. Also as i understand NIP-29 does not define a protocol-level creator/owner who is automatically protected. So if a relay grants someone remove-user permission, they can remove any member in that group, including the person who delegated that permission. Hence in the current proposal, permissions are capability-based, not target-scoped. Though I agree we should add a clarifying note so this is explicit and not ambiguous. |
This PR scopes to NIP-29 only (per coracle/flotilla#47) and centralizes role semantics on kind 39003.
Changes
Clarifies authorization model:
Extends kind 39003 role schema with:
Tightens assignment/listing behavior:
Adds compatibility guidance:
[NIP-43 follow-up tracked separately: https://gitea.coracle.social/coracle/flotilla/issues/192 ]