Policy files in YAML and JSON with a published JSON Schema
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- Half a day
- Newbie friendliness
- 55/100
Research direction
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.
Written by the indexing model from the issue text.
Description
Goal
Let teams keep policies in version control and review them like code.
Acceptance criteria
-
Policy.from_file()andPolicy.from_dict()loadexamples/policy.yaml; YAML support through the optional extrasqlguardllm[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.pyschema/policy.schema.jsonexamples/policy.yaml
Size
S (up to half a day)
Notes
- Depends on: #2
- Milestone: v0.2 · Row-level security & CLI
- Design: docs/DESIGN.md · threat model · attack gallery
- Dominant language
- Python
- Stars
- 0
- Forks
- 0
- Avg merge
- 1m
- Merged PRs (30d)
- 2
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from jmmana/sqlguardllm
-
area:security good first issue size:s type:feature
Difficulty 2/5 Half a day Newbie friendliness 68/100
jmmana/sqlguardllm#16 ·
-
area:integrations size:s type:feature
Difficulty 4/5 Half a day Newbie friendliness 25/100
jmmana/sqlguardllm#38 ·
-
area:security size:m type:infra
Difficulty 4/5 1-2 days Newbie friendliness 30/100
jmmana/sqlguardllm#37 ·
-
area:integrations help wanted size:m type:feature
Difficulty 4/5 3-5 days Newbie friendliness 30/100
jmmana/sqlguardllm#36 ·
-
area:integrations help wanted size:m type:feature
Difficulty 4/5 3-5 days Newbie friendliness 35/100
jmmana/sqlguardllm#35 ·
All issues in jmmana/sqlguardllm
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
vllm-project/vllm#70030 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
TigreGotico/tugaphone#408 ·
Maintainers usually reply within 1 day
-
t: bug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 3 days
-
needs-triage
Difficulty 1/5 Under an hour Newbie friendliness 85/100
Azure/azure-sdk-for-python#50155 · 1 reaction ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
Maintainers usually reply within 1 day