Advertise NIP-FI discovery in relay NIP-11 - #7716
Draft
bradseiler wants to merge 2 commits into
Draft
bradseiler wants to merge 2 commits into
bradseiler wants to merge 2 commits into
Conversation
added 2 commits
September 17, 2026 16:37
Signed-off-by: coder 3 <3bc2c73cf6228485ecee3c37d374aa143eab158665389f5168c4cbbf82ef7018@buzz.block.builderlab.xyz>
Signed-off-by: coder 3 <3bc2c73cf6228485ecee3c37d374aa143eab158665389f5168c4cbbf82ef7018@buzz.block.builderlab.xyz>
🔐 Codex Security Review
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR lets the relay advertise a NIP-FI federated identity discovery signal in NIP-11 without enabling relay-side admission enforcement. It adds a relay-local
off/shadowconfig mode, emits the privacy-safe discovery shape only inshadow, and rejectsenforceat startup until validation and protected-ingress checks exist.The advertised wire shape contains only:
{ "limitation": { "federated_identity": true }, "federated_identity": { "core": "client-attached", "assertion_freshness": { "class": "offline-jwt", "maximum_residual_upstream_revocation_seconds": null } } }No issuer, audience, JWKS, identity provider, login, tenant, assertion, or deployment-local details are included.
Related issue
N/A
Testing
cargo fmt --check— passedcargo test -p buzz-relay --lib nip_fi— passed, 8 testscargo test -p buzz-relay --lib -- --skip api::mesh_demo::tests::demo_join_forwarded_arm_round_trips_echo— passed, 1063 tests; skipped one existing relay mesh demo failure reproduced on maincargo clippy -p buzz-relay --lib -- -D warnings— passed/opt/homebrew/Cellar/helm/4.1.4/bin/helm lint deploy/charts/buzz— passedHELM_DATA_HOME=/tmp/helm-data-buzz /opt/homebrew/Cellar/helm/4.1.4/bin/helm unittest deploy/charts/buzz— passed, 10 suites and 52 testsPre-push hook ran with default repository lanes and failed in unrelated
buzz-acptiming tests. I pushed with--no-verifyafter the relay and chart checks above passed.Generated with Codex