apache / apache/casbin-policyguard

feat(enforcer): enable context-aware policy decisions via custom functions

Open
#5 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
2
Forks
3
PR merge metrics
No merged PRs in 30d

Description

Policy decisions rely solely on the incoming admission review request body at present. However a more dynamic approach is preferred:
- we should implement custom casbin functions to query the live kubernetes cluster state;
- it will allows policies to verify global constraints such as total pod counts;
- furthermore integrating a kubernetes client within the enforcer helps fetch related resources dynamically;
- caching frequent queries is also recommended to minimize api server load and latency;
- consequently these improvements empower complex policies that require a broader cluster context.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by tracing how the enforcer currently evaluates policies from the incoming admission review request. Then identify the existing enforcer entry points and determine how custom Casbin functions, a Kubernetes client, and query caching would fit together. Done means policies can query live cluster state, support global constraints such as total pod counts, and avoid unnecessary API server load.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, kubernetes
Domain
authorization, backend, security
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.