Skip to content

Waiting rooms: optional fail-open when Hibira can't be reached - #8

Merged
deflinhec merged 1 commit into
mainfrom
claude/project-thread-gm87nb
Nov 30, 2026
Merged

deflinhec merged 1 commit into
mainfrom
claude/project-thread-gm87nb

Conversation

@deflinhec

Copy link
Copy Markdown
Member

Requested by Danny · project thread

Why

On 2026-11-30 (11:45–12:40 UTC) connections from Cloudflare's European locations to the origin failed intermittently. Sites send every visitor without a pass to the hosted waiting page, so visitors who could not load that page could not reach the protected page either. The waiting room guards fail closed today. Same option as hibira-io/waiting-room#12.

What

Adds WAITING_ROOM_FAIL_OPEN (env HIBIRA_WAITING_ROOM_FAIL_OPEN, off by default) and WAITING_ROOM_FAIL_OPEN_TIMEOUT (1.5 s). Before sending a visitor without a pass to the queue, the middleware/decorator probes the room's status URL; a timeout, network error or 5xx lets the request through with request.hibira_fail_open = True. Results are cached 15 s per room. @waiting_room(..., fail_open=True) overrides per view. Same behaviour as hibira-io/waiting-room#12.

Tests

pytest: 67 passed (3 new fail-open tests). mypy/ruff: no new findings on changed files.


Generated by Claude Code

WAITING_ROOM_FAIL_OPEN (off by default) lets visitors without a pass through
when the room's status URL times out, errors or returns 5xx (1.5 s timeout,
cached 15 s per room).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SHtsCE1cNfaBFMXftioQLg
@deflinhec deflinhec self-assigned this Nov 30, 2026
@deflinhec
deflinhec marked this pull request as ready for review November 30, 2026 16:46
@deflinhec
deflinhec merged commit c95fcab into main Nov 30, 2026
9 checks passed
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.

2 participants