Mask personal data instead of hiding it

Đang mở
#29 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
35/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
python, sql, sqlite
Lĩnh vực
databases, security

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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
Ngôn ngữ chính
Python
Star
0
Fork
0
Merge trung bình
1 phút
Pull request đã merge (30 ngày)
2

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của jmmana/sqlguardllm

Tất cả issue của jmmana/sqlguardllm

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.