Skip to content

Feat: Add relay disclosure endpoint - #73

Open
talvasconcelos wants to merge 2 commits into
mainfrom
feat/relay_list_transparency
Open

Feat: Add relay disclosure endpoint#73
talvasconcelos wants to merge 2 commits into
mainfrom
feat/relay_list_transparency

Conversation

@talvasconcelos

Copy link
Copy Markdown
Collaborator

Users events are broadcasted to every configured third-party relay with no way to discover which. Disclosing the list is a transparency/consent best practice.

Adds GET /nostrclient/api/v1/relays/urls, which returns the list of relays this instance is currently connected to.

It's locked behind require_admin_key, so only someone with an admin key can hit it — no public exposure. It returns just the URLs, nothing else.

it reads the live relay list from relay_manager, not the DB, so it reflects what's actually connected at runtime.

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