Optional cost guard with EXPLAIN for PostgreSQL and MySQL
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 45/100
Hướng nghiên cứu
Start in src/sqlguardllm/execution.py to see how queries reach the engines, then read tests/engines/test_cost_guard.py, which the issue names as the home for the new tests. The issue depends on #31, so check that issue's state first. Done means a max_cost option rejects queries whose JSON EXPLAIN cost exceeds it on PostgreSQL and MySQL, other engines skip the check with a message, and container tests for both engines pass in CI.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Goal
Reject queries whose plan is too expensive before they run.
Acceptance criteria
-
max_costoption of the MCP server and of a small execution helper; runsEXPLAIN(JSON format) and compares the estimated cost - PostgreSQL and MySQL supported; other engines skip the check and say so
- Tests with containers in CI for both engines
Relevant files
src/sqlguardllm/execution.pytests/engines/test_cost_guard.py
Size
M (1-2 days)
Notes
- Depends on: #31
- Milestone: v0.4 · MCP server
- Design: docs/DESIGN.md · threat model · attack gallery
- Ngôn ngữ chính
- Python
- Star
- 0
- Fork
- 0
- Merge trung bình
- 1 phút
- Pull request đã merge (30 ngày)
- 2
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của jmmana/sqlguardllm
-
area:security good first issue size:s type:feature
Độ khó 2/5 Nửa ngày Mức phù hợp với người mới 68/100
jmmana/sqlguardllm#16 ·
-
area:integrations size:s type:feature
Độ khó 4/5 Nửa ngày Mức phù hợp với người mới 25/100
jmmana/sqlguardllm#38 ·
-
area:security size:m type:infra
Độ khó 4/5 1-2 ngày Mức phù hợp với người mới 30/100
jmmana/sqlguardllm#37 ·
-
Official .NET client on NuGetĐang mởarea:integrations help wanted size:m type:feature
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 30/100
jmmana/sqlguardllm#36 ·
-
area:integrations help wanted size:m type:feature
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
jmmana/sqlguardllm#35 ·
Tất cả issue của jmmana/sqlguardllm
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
Maintainer thường phản hồi trong vòng 1 ngày
-
bug (unverified)
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
scikit-hep/awkward#4581 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
ci-cd priority: low
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
LearningCircuit/local-deep-research#9163 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Specifically suppress IsEnoughWorkspace, instead of all MIopen warnings in denoiser/config.pyĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
supersonic-lumina/ENM156#50 ·
Maintainer thường phản hồi trong vòng 2 ngày