Skip to content

feat: dynamic casbin storage and 3 new policy management steps#1

Merged
intel352 merged 2 commits intomainfrom
feat/dynamic-storage
Feb 26, 2026
Merged

feat: dynamic casbin storage and 3 new policy management steps#1
intel352 merged 2 commits intomainfrom
feat/dynamic-storage

Conversation

@intel352
Copy link
Contributor

Summary

  • Support loading casbin model/policy from dynamic storage backends: memory (default), file, gorm (postgres/mysql/sqlite)
  • Polling watcher for automatic policy reload at configurable interval
  • New step types: step.authz_add_policy, step.authz_remove_policy, step.authz_role_assign
  • 30 new tests covering storage backends and new steps

Test plan

  • 12 storage backend tests (memory, file, gorm)
  • 18 step tests (add_policy, remove_policy, role_assign)
  • All existing tests still pass

🤖 Generated with Claude Code

intel352 and others added 2 commits February 26, 2026 05:25
… new steps

- Support loading casbin model/policy from dynamic storage backends:
  memory (default), file, gorm (postgres/mysql/sqlite)
- Polling watcher for automatic policy reload at configurable interval
- New step types: step.authz_add_policy, step.authz_remove_policy,
  step.authz_role_assign
- 30 new tests covering storage backends and new steps
- Updated plugin.json with new step declarations

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@intel352 intel352 merged commit 4d2ce7c into main Feb 26, 2026
2 checks passed
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