Commit 52b716f
committed
Collapse CIMDFetcher onto ssrf_safe_fetch, remove redundant SSRF tests
CIMDFetcher.fetch() was a near-duplicate of ssrf_safe_fetch (DNS pinning,
streaming, size limits, timeouts). Replace with a direct call + simple TTL
cache, cutting ~280 lines. HTTP cache revalidation (ETag/304/Cache-Control)
removed in favor of a 1-hour TTL—these are static config documents.
Delete test_cimd_ssrf_protection.py (643 lines) since CIMD no longer has
its own SSRF implementation to test. Remove broken ssrf_safe_stream. Add
explicit timeout to non-SSRF JWKS fetch path. Bound verifier cache size.1 parent d807448 commit 52b716f
File tree
7 files changed
+56
-1326
lines changed- src/fastmcp/server/auth
- providers
- tests/server/auth
7 files changed
+56
-1326
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | | - | |
| 51 | + | |
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
| |||
0 commit comments