Policy files in YAML and JSON with a published JSON Schema

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

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
Mezza giornata
Idoneità per principianti
55/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
json, python, yaml
Ambito
backend

Direzione di ricerca

Start in src/sqlguardllm/policy.py, where Policy.from_file() and Policy.from_dict() would need to accept YAML and JSON input, and read examples/policy.yaml to see the expected shape. The YAML dependency belongs in an optional sqlguardllm[yaml] extra, so the core runtime stays sqlglot-only. schema/policy.schema.json must be generated and must reject unknown keys with the key path in the error. Done means the valid and invalid policy file tests pass. This issue depends on #2, so check that it is merged first.

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

Descrizione

area:core size:s type:feature
Goal

Let teams keep policies in version control and review them like code.

Acceptance criteria
  • Policy.from_file() and Policy.from_dict() load examples/policy.yaml; YAML support through the optional extra sqlguardllm[yaml] so the runtime stays sqlglot-only
  • JSON Schema generated to schema/policy.schema.json; unknown keys are errors that name the key path
  • Tests for valid and invalid files
Relevant files
  • src/sqlguardllm/policy.py
  • schema/policy.schema.json
  • examples/policy.yaml
Size

S (up to half a day)

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.