Skip to content

fix(relay): allow longer NIP-42 AUTH window via env - #7083

Open
Trevongit wants to merge 1 commit into
block:mainfrom
Trevongit:fix/relay-nip42-auth-timeout-ghcr
Open

fix(relay): allow longer NIP-42 AUTH window via env#7083
Trevongit wants to merge 1 commit into
block:mainfrom
Trevongit:fix/relay-nip42-auth-timeout-ghcr

Conversation

@Trevongit

Copy link
Copy Markdown

Summary

Self-hosted Desktop over Tailscale often misses the hardcoded 5s NIP-42 AUTH timeout, which aborts Projects enumeration (and looks like AUTH=0).

Read BUZZ_NIP42_AUTH_TIMEOUT_SECS (default 5, clamp 5–60) so operators can give AUTH a longer window without a rebuild.

Small relay-only slice. No Desktop extras. No Listen.

Test plan

  • Relay unit / existing AUTH tests
  • Optional: self-host over Tailscale with BUZZ_NIP42_AUTH_TIMEOUT_SECS=25 and confirm Projects catalog loads

Self-host Desktop over Tailscale often misses the hardcoded 5s AUTH
timeout, which aborts Projects enumeration. Read
BUZZ_NIP42_AUTH_TIMEOUT_SECS (default 5, clamp 5–60).

Signed-off-by: Trevor P <trev2005@gmail.com>
@Trevongit
Trevongit requested a review from a team as a code owner August 31, 2026 02:36
@github-actions

Copy link
Copy Markdown

🔐 Codex Security Review

Status: review required for the current range.

The current range is c3132c3ee982d194cd0198ad07b57ec8bd726e4e...8cda7ba642c6f9ef063972a94d251564fef2d7bc.
A new review must complete for this exact range. When manual authorization
is required, a Block organization member must comment exactly
@buzz-security-review 8cda7ba642c6f9ef063972a94d251564fef2d7bc to authorize a new review.
Any previous review applies only to its recorded range.

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