Skip to content

Restricted reads#250

Draft
theAnuragMishra wants to merge 3 commits into
hoytech:masterfrom
theAnuragMishra:extend-auth
Draft

Restricted reads#250
theAnuragMishra wants to merge 3 commits into
hoytech:masterfrom
theAnuragMishra:extend-auth

Conversation

@theAnuragMishra

@theAnuragMishra theAnuragMishra commented Jun 24, 2026

Copy link
Copy Markdown
Contributor

we add support for two configuration options:
restrictedReadKinds and restrictReadToInvolvedPubkey.

If a req filter contains a kind which is also in restrictedReadKinds, the client will have to be authenticated for a successful subscription.

If restrictReadToInvolvedPubkey is set to true, events are filtered based on whether the client is the author or one of the pubkeys tagged in the event.

These restrictions apply to REQ/COUNT/NEG-OPEN.

@theAnuragMishra theAnuragMishra changed the title Extended auth metrics and support for pre and post auth plugins Restricted reads Jul 23, 2026
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.

1 participant