Aggregate-only tables with a minimum group size (k-anonymity)
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 35/100
Línea de trabajo
Start with the issue's dependency on #4 and the existing rule in src/sqlguardllm/rules/aggregate_only.py, then see how policy.py loads per-table options. The change adds an aggregate_only: {table: k} option, rejects raw reads with aggregate_required, and appends HAVING COUNT(*) >= k while keeping any existing HAVING. Done when tests/test_aggregate_only.py passes on SQLite and shows that groups smaller than k never come back.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Goal
Allow statistics over sensitive tables while making it impossible to single out a person.
Acceptance criteria
-
aggregate_only: {table: k}policy option - The
SELECTthat reads the table may only project aggregates andGROUP BYcolumns; raw reads areaggregate_required(new code) - The guard adds
HAVING COUNT(*) >= kto thatSELECT, combined with any existingHAVING - Tests on SQLite proving that groups smaller than k never come back
Relevant files
src/sqlguardllm/rules/aggregate_only.pysrc/sqlguardllm/policy.pytests/test_aggregate_only.py
Size
M (1-2 days)
Notes
- Depends on: #4
- Milestone: v0.3 · More power
- 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 66/100
Los mantenedores suelen responder en 1 día
-
bug (unverified)
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
scikit-hep/awkward#4581 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
ci-cd priority: low
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
LearningCircuit/local-deep-research#9163 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 85/100
Los mantenedores suelen responder en 1 día
-
Specifically suppress IsEnoughWorkspace, instead of all MIopen warnings in denoiser/config.pyAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
supersonic-lumina/ENM156#50 ·
Los mantenedores suelen responder en 2 días