Repository navigation
Conversation
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.
Problem
Fixes #613.
With the default domain-blacklist and crawler checks both enabled, #508 made crawler detection effective in 0.7.1. The shared request callback processes these checks before box authorization: an unauthenticated crawler request to the dedicated HTTPS box API can set the global incident flag and lock out both management clients and enrolled Tonieboxes until restart.
This also affects intentional remote box access through TLS passthrough (including no-SNI boxes) when the management listeners themselves are private.
Change
security_mit.hardLockhandling for authenticated boxes.No new setting and no TLS termination/routing changes.
Verification
Built the server with the default ASan/UBSan configuration on x86_64 Linux using Nix-provided build tools.
make test_c: 19 C tests passed.make test_py TESTS="security_mit\|box_cert_check": 6 new security-mitigation cases and all 14 existing box-certificate checks passed.The new cases use fresh disposable server instances because incidents intentionally persist until restart. A minimal static index was used locally for harness readiness; no frontend behavior or actual hardware playback was tested. Full test suite not run.
AI assistance
This implementation, tests, and PR description were AI-assisted. Local verification results and remaining verification gaps are documented above.