Skip to content

Add syft-permissions package#142

Open
koenvanderveen wants to merge 1 commit intomainfrom
koen/init-permissions
Open

Add syft-permissions package#142
koenvanderveen wants to merge 1 commit intomainfrom
koen/init-permissions

Conversation

@koenvanderveen
Copy link
Collaborator

Summary

  • Add syft-permissions workspace package implementing ACL tree-based permission system (Python port of Go server's syft.pub.yaml system)
  • spec layer: Pydantic models for Access, Rule, RuleSet with YAML serialization
  • engine layer: ACLService with trie-based tree traversal, glob/template/exact matchers, specificity-based rule ordering, terminal ruleset support
  • Add separate permission-tests CI job in unit-tests workflow
  • 46 tests covering parsing, access control, patterns, templates, tree traversal, terminal behavior, and deny-by-default

Test plan

  • uv run pytest packages/syft-permissions/tests/ -n auto -v — all 46 tests pass
  • Pre-commit hooks pass (ruff, prettier)

🤖 Generated with Claude Code

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Comments