Optional cost guard with EXPLAIN for PostgreSQL and MySQL
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 45/100
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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
- Lenguaje dominante
- Python
- Estrellas
- 0
- Forks
- 0
- Merge medio
- 1 min
- PR fusionados (30 d)
- 2
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de jmmana/sqlguardllm
-
area:security good first issue size:s type:feature
Dificultad 2/5 Medio día Aptitud para principiantes 68/100
jmmana/sqlguardllm#16 ·
-
area:integrations size:s type:feature
Dificultad 4/5 Medio día Aptitud para principiantes 25/100
jmmana/sqlguardllm#38 ·
-
area:security size:m type:infra
Dificultad 4/5 1-2 días Aptitud para principiantes 30/100
jmmana/sqlguardllm#37 ·
-
Official .NET client on NuGetAbiertoarea:integrations help wanted size:m type:feature
Dificultad 4/5 3-5 días Aptitud para principiantes 30/100
jmmana/sqlguardllm#36 ·
-
area:integrations help wanted size:m type:feature
Dificultad 4/5 3-5 días Aptitud para principiantes 35/100
jmmana/sqlguardllm#35 ·
Todos los issues de jmmana/sqlguardllm
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
vllm-project/vllm#70030 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
TigreGotico/tugaphone#408 ·
Los mantenedores suelen responder en 1 día
-
t: bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 3 días
-
needs-triage
Dificultad 1/5 Menos de una hora Aptitud para principiantes 85/100
Azure/azure-sdk-for-python#50155 · 1 reacción ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 66/100
Los mantenedores suelen responder en 1 día