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

オープン
#30 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
35/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
python, sqlite

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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
主要言語
Python
スター
0
フォーク
0
平均マージ
1分
マージ済み PR(30日)
2

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

jmmana/sqlguardllm のほかの issue

jmmana/sqlguardllm の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。