apache / apache/casbin-policyguard

feat(webhook): add mutating webhook support for resource modification

Open
#4 0 comments 1 reaction 2 assignees Claimed by @nomeguy View on GitHub
enhancement
Dominant language
JavaScript
Stars
2
Forks
3
PR merge metrics
No merged PRs in 30d

Description

The current implementation only supports validating webhooks for request rejection. So, we should:
- first, introduce a mutating webhook configuration to intercept and modify requests before validation;
- then, extend the casbin enforcer to return patch operations alongside allow/deny decisions;
- implement json patch generation for common mutations like sidecar injection or resource limits;
- update the crd to support defining mutation rules within policy definitions;
- it enables automatic resource compliance and removes the necessity for manual user intervention.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.