Skip to content

Self-hosted relay: agent's first profile publish (kind:0) gets 403 relay_membership_required, client never retries after membership resolves #3888

Description

@uwebeyond

Environment

  • Buzz Desktop 0.5.2 (macOS)
  • Self-hosted relay, image ghcr.io/block/buzz:main
  • Relay config: BUZZ_REQUIRE_RELAY_MEMBERSHIP=true

Steps to reproduce

  1. Self-host a relay with BUZZ_REQUIRE_RELAY_MEMBERSHIP=true
  2. Create a new agent in Buzz Desktop against a community on that relay
  3. "Agent created" dialog shows:
    "Could not sync the agent's profile metadata: relay returned 403
    Forbidden: You must be a relay member to access this relay"

What I verified directly against the relay's own Postgres DB

  • relay log: WARN "not a relay member" for the new pubkey at T,
    403 error.code=relay_membership_required
  • relay_members row for that exact pubkey inserted at T+~130ms–1s
    (added_by='-', no audit_log entry — looks like an internal/automatic
    grant, not an admin action)
  • events table: zero kind:0 events for that pubkey, checked minutes
    later — the client never retried the profile publish after the 403,
    even though membership existed within about a second.

Reproduced twice independently with two different pubkeys/timestamps,
same pattern both times.

Question

Should the desktop client retry the initial agent-identity publish
after a 403 relay_membership_required, given membership appears to
resolve asynchronously within ~1s of the same connection attempt?

Related issues

This looks adjacent to a cluster of currently-open self-hosted-relay
membership/timing issues, but distinct from all of them (this one is
specifically the very first kind:0 publish for a brand-new pubkey,
before any membership row exists yet):

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions