Mask personal data instead of hiding it

Aperta
#29 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
35/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
python, sql, sqlite

Direzione di ricerca

Start with src/sqlguardllm/rules/masking.py and src/sqlguardllm/policy.py, and check whether issue #5 is merged, since this issue depends on it. The done state is tests/test_masking.py passing, with masked queries executed on SQLite and no real values returned. The partial strategy and the per-dialect SHA-256 hashing are not defined in the issue, so confirm them with the maintainer before implementing.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

area:rls area:security size:m type:feature
Goal

Let models answer questions about people without ever seeing their personal data (docs/DESIGN.md#protecting-personal-data).

Acceptance criteria
  • masked_columns: {"table.column": strategy} with strategies null, redact, hash (SHA-256 hex per dialect) and partial
  • Masked columns are rewritten in the select list keeping their output name; any use in predicates, joins, grouping or ordering is hidden_column
  • SELECT * over a table with masked columns is expanded with the masks when schema is known, and rejected otherwise
  • Tests that execute masked queries on SQLite and check no real value comes back
Relevant files
  • src/sqlguardllm/rules/masking.py
  • src/sqlguardllm/policy.py
  • tests/test_masking.py
Size

M (1-2 days)

Notes
Lingua principale
Python
Stelle
0
Fork
0
Merge medio
1m
PR unite (30g)
2

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di jmmana/sqlguardllm

Tutte le issue di jmmana/sqlguardllm

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.