Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ Sections used: Added, Changed, Deprecated (an API that still works but will be r

### Added

- **`classify --sample N`, value checks and Spanish names** (#294): `sqlguardllm classify --sample N` also looks at up to N values per column (off by default, at most 1000 values and 500 columns, read-only, never printed) and checks them with an email shape, Luhn, CURP, RFC, SSN, CLABE and IBAN checks; each proposal says whether name, values or both support it. Spanish and Mexican names (`tarjeta`, `numero_cuenta`, `pasaporte`, `imss`) are recognised, and a descriptive first word (`tipo_tarjeta`, `fecha_curp`) is not a match. 130 corpus cases pin each class action in five dialects, per-role overrides in policy sets are documented and tested, and the threat model lists what classes do not cover.
- **Advice per table, and `advice` / `data_classes` in the Node.js and .NET clients** (#291, #294): `Advice.tables` gives the columns used per physical table and clause, resolved through aliases, subqueries and the policy `schema`. The protocol schema lists both optional fields, a conformance test checks that in-process, stdio and HTTP explanations agree, `Explanation` (Node.js) and `ExplainResult.Advice` / `.DataClasses` (.NET) are typed, and the Node.js generated types now include the policy fields added since 1.0 (`advice`, `data_classes`, `column_classes`, `not_sensitive`), which were missing.
- **`sqlguardllm diff`** (#293, [guide](docs/POLICY_DIFF.md), experimental): runs authored cases under a base and a candidate policy (or policy set) and reports the decision, codes, rewritten-SQL diff, row filters, masks, limit and advice score, plus the changes between the policies themselves. `--fail-on` gates (`newly-allowed`, `newly-denied`, `filter-removed`, `mask-removed`, `hidden-removed`, `limit-raised`, `any-change`) make the exit code 1 for CI; output as text, JSON (versioned schema) or Markdown for a PR summary; `--redact` replaces literals. An example workflow and fixtures are in `examples/policy-diff/`.
- **Sensitive data classes** (#294, [guide](docs/CLASSES.md), experimental): `Policy.data_classes`, `column_classes` and `not_sensitive` say once what a kind of data is (`hide` or `mask`) and which columns are of it. They compile into `hidden_columns` and `masked_columns`, so enforcement is unchanged and an explicit entry wins. `Guard.explain()` and `explain_query` report the classes a query reads, `lint` skips columns marked `not_sensitive`, and `sqlguardllm classify --db URL` proposes the mapping from column names only (never a row).
Expand Down
Loading
Loading