Repository navigation
Use native FastAPI websocket security when available - #384
Merged
Merged
Conversation
Signed-off-by: Tim Paine <[email protected]>
Contributor
Test Results1 130 tests +15 1 120 ✅ +15 11m 5s ⏱️ + 1m 16s Results for commit a0413d4. ± Comparison against base commit 652b6a6. This pull request removes 1 and adds 16 tests. Note that renamed tests count towards both.♻️ This comment has been updated with latest results. |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #384 +/- ##
==========================================
- Coverage 88.37% 88.28% -0.09%
==========================================
Files 165 166 +1
Lines 20875 20946 +71
Branches 1914 1920 +6
==========================================
+ Hits 18448 18493 +45
- Misses 2427 2453 +26 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
timkpaine
marked this pull request as ready for review
October 20, 2026 16:48
timkpaine
requested review from
arhamchopra,
emilybarrettp72,
feussy,
hintse,
ptomecek and
vstolin
as code owners
October 20, 2026 16:48
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.
Description
Use FastAPI's native API-key dependencies when their request annotations support
HTTPConnection, first released in FastAPI 0.144.0 via fastapi/fastapi#10147. Retain the existing websocket-compatible fallback on older versions without raising the dependency floor.auto_error=Falseso native FastAPI's different default errors do not change gateway authentication responses.Verified on FastAPI 0.141.1 and 0.144.0. The full Python suite on 0.144.0 passed: 1,101 passed, 7 skipped, 1 expected failure. All 15 focused compatibility tests pass on both versions.
make lintand all 5 JavaScript tests pass.Type of Change
Checklist
make lint)make test-js)