Skip to content

fix(buzz-relay): log missing relay_member row before kind:9033 auth gate - #4995

Open
santhiprakash wants to merge 1 commit into
block:mainfrom
santhiprakash:fix/est-1867-relay-admin-9033-log
Open

fix(buzz-relay): log missing relay_member row before kind:9033 auth gate#4995
santhiprakash wants to merge 1 commit into
block:mainfrom
santhiprakash:fix/est-1867-relay-admin-9033-log

Conversation

@santhiprakash

Copy link
Copy Markdown

Summary

Adds a tracing::debug! log in crates/buzz-relay/src/handlers/relay_admin.rs when get_relay_member returns None for a kind:9033 workspace profile event. The log captures the sender pubkey, community, and event kind before may_set_workspace_profile denies the request, making format-mismatch failures in relay_members.pubkey observable server-side.

Fixes #4982.

Test plan

  • cargo fmt -p buzz-relay -- --check
  • cargo clippy -p buzz-relay
  • cargo test -p buzz-relay --lib -- relay_admin (24 passed; Postgres-backed integration tests ignored)

When `get_relay_member` returns `None` for a `kind:9033` workspace
profile event, emit a `tracing::debug!` log capturing the sender pubkey,
community, and event kind before `may_set_workspace_profile` denies the
request. This makes format-mismatch failures in the `relay_members.pubkey`
column (e.g. `\x`-prefixed hex) observable server-side for operators.

Fixes block#4982

Signed-off-by: Santhi Prakash <b.santhiprakash@gmail.com>
@santhiprakash
santhiprakash requested a review from a team as a code owner August 6, 2026 01:53
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.

kind:9033 auth failure logs nothing server-side when get_relay_member returns None

1 participant