[codex] Enforce NIP-OA authorization bounds (BUZZ-SEC-002)#1984
Open
jmecom wants to merge 1 commit into
Open
Conversation
jmecom
force-pushed
the
codex/fix-buzz-sec-002
branch
from
July 16, 2026 18:50
f5cfba9 to
53477f0
Compare
jmecom
force-pushed
the
codex/fix-buzz-sec-002
branch
from
July 16, 2026 20:11
53477f0 to
3084a74
Compare
jmecom
marked this pull request as ready for review
July 16, 2026 20:26
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.
What changed
The relay now evaluates signed NIP-OA
created_at<andcreated_at>conditions against the signed authentication event on every membership-gated transport. WebSocket auth, HTTP bridge requests, huddles, Git, invites, operator calls, and media reads/uploads all carry the authenticated timestamp into the same verifier.The ACP harness now treats
owner-onlyliterally. It accepts the configured owner pubkey and no longer infers sibling authority from another agent's profile metadata. Explicit allowlists still support intentional multi-actor access.Why
Buzz previously verified that an owner signed the NIP-OA condition string but did not evaluate its time bounds. Anyone holding an old delegated agent key and credential could therefore reconnect indefinitely while the owner remained a member. Profile-based sibling discovery also let stale or unrelated delegations trigger owner-only agents.
Valid unbounded credentials and credentials whose signed authentication timestamp is inside the requested window continue to work. Direct relay members are unchanged.
Testing
cargo fmt --all --checkcargo test -p buzz-sdk nip_oacargo test -p buzz-relay nip_oa_time_conditionscargo test -p buzz-acp author_gate_tests