Repository navigation
Waiting rooms: optional fail-open when Hibira can't be reached - #8
Merged
Merged
Conversation
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
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.
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(envHIBIRA_WAITING_ROOM_FAIL_OPEN, off by default) andWAITING_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 withrequest.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