acrnogor/symfony-opa-form
Symfony middleware for authorization via build.security PDP/Open Policy Agent. Configure PDP host/port/policy path and timeouts in services.yaml, then use the OpenPolicyAgent service to send authz checks. Requires PHP 8+ and Symfony 4.4+.
DELETE requests).department, is_auditor).Adopt if:
users:create only if requester.role == 'admin'").Look elsewhere if:
lexik/jwt-authentication-bundle may suffice.*"This package lets us enforce granular, auditable permissions across our Symfony apps using Open Policy Agent—a battle-tested, policy-as-code standard. By centralizing authorization in OPA, we can:
if statements in code).PII data export unless the user’s department is whitelisted—defined once in OPA, enforced everywhere.
Tradeoff: Minimal upfront cost (OPA PDP setup), but long-term scalability for complex rules."**"This middleware integrates OPA into Symfony’s middleware stack, letting us:
data:read requires user.tenure > 90_days).services.yaml (e.g., http://localhost:8181/authz/allow).authz_resource: "user_profile").test command locally before deploying.Voter interface or Votum."*How can I help you explore Laravel packages today?