PolicySet: one file with a base policy and roles
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- Half a day
- Newbie friendliness
- 42/100
Research direction
Start in src/sqlguardllm/policy_set.py, where PolicySet.from_file() needs to read a base policy plus roles and merge overrides and extends. Check tests/test_policy_set.py for existing Policy and Guard conventions, and look at examples/roles.yaml for the target file shape. Done when base/role merging, extends with cycle rejection as PolicyError, and cached for_role() lookups are covered by tests; the issue depends on #11, so confirm that work is merged first.
Written by the indexing model from the issue text.
Description
Goal
Keep every role's policy in one reviewed file instead of building them in code.
Acceptance criteria
-
PolicySet.from_file()withbaseandroles; a role overrides or extends lists and mappings of the base -
extends: other_rolefor inheritance, with cycles rejected asPolicyError -
policy_set.for_role(name)returns aPolicyand caches the compiledGuard - Example file in
examples/roles.yamland tests for overrides, inheritance and unknown roles
Relevant files
src/sqlguardllm/policy_set.pyexamples/roles.yamltests/test_policy_set.py
Size
S (up to half a day)
Notes
- Depends on: #11
- Milestone: v0.3 · More power
- 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