mirror of
https://github.com/wshobson/agents.git
synced 2026-03-18 09:37:15 +00:00
remove jules
This commit is contained in:
@@ -1,3 +0,0 @@
|
|||||||
## 2024-05-23 - Thread Pool Overhead in Iterative Tasks
|
|
||||||
**Learning:** Recreating `ThreadPoolExecutor` inside a frequently called loop (like an optimization loop) introduces significant overhead, especially when the individual tasks are short-lived.
|
|
||||||
**Action:** Initialize `ThreadPoolExecutor` once in the class `__init__` and reuse it across method calls to amortize the setup cost.
|
|
||||||
@@ -1,4 +0,0 @@
|
|||||||
## 2024-05-23 - Default Security Middleware in FastAPI Templates
|
|
||||||
**Vulnerability:** Missing default security headers and CORS configuration in API templates.
|
|
||||||
**Learning:** Developers often copy templates directly into production. If templates lack security headers by default, new services will be insecure.
|
|
||||||
**Prevention:** Always include `TrustedHostMiddleware` and `CORSMiddleware` in API templates with strict comments on how to configure them for production. Use safe defaults where possible, but permissive defaults with warnings (like `*`) are acceptable for templates if clearly marked with TODOs.
|
|
||||||
Reference in New Issue
Block a user