Aggregate-only tables with a minimum group size (k-anonymity)

Abierto
#30 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
35/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
python, sqlite

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

area:security size:m type:feature
Goal

Allow statistics over sensitive tables while making it impossible to single out a person.

Acceptance criteria
  • aggregate_only: {table: k} policy option
  • The SELECT that reads the table may only project aggregates and GROUP BY columns; raw reads are aggregate_required (new code)
  • The guard adds HAVING COUNT(*) >= k to that SELECT, combined with any existing HAVING
  • Tests on SQLite proving that groups smaller than k never come back
Relevant files
  • src/sqlguardllm/rules/aggregate_only.py
  • src/sqlguardllm/policy.py
  • tests/test_aggregate_only.py
Size

M (1-2 days)

Notes
Lenguaje dominante
Python
Estrellas
0
Forks
0
Merge medio
1 min
PR fusionados (30 d)
2

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de jmmana/sqlguardllm

Todos los issues de jmmana/sqlguardllm

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.