Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is Spring ACL a good ACL implementation? [closed]

I have read about Spring ACL but it does not seem to be very competent. For example:

  1. No way to list all objects of type X with permission Y
  2. No way to automatically create the schemas for new deployments

What are you using for ACL? Is it clever to have the ACL so decoupled from the domain model?

like image 231
Piotr Avatar asked Oct 20 '10 09:10

Piotr


People also ask

What is spring ACL?

Spring Security Access Control List is a Spring component which supports Domain Object Security. Simply put, Spring ACL helps in defining permissions for specific user/role on a single domain object – instead of across the board, at the typical per-operation level.

Is Spring security necessary?

Spring Security is probably the best choice for your cases. It became the de-facto choice in implementing the application-level security for Spring applications. Spring Security, however, doesn't automatically secure your application. It's not a kind of magic that guarantees a vulnerability-free app.

Which annotation can be used with Spring Security to apply method level security?

Method-level security is implemented by placing the @PreAuthorize annotation on controller methods (actually one of a set of annotations available, but the most commonly used). This annotation contains a Spring Expression Language (SpEL) snippet that is assessed to determine if the request should be authenticated.


1 Answers

We attempted to use the Spring ACL model and found it unwieldy. We ended up rolling our own, much simpler (but also less generic), implementation and then writing the Spring Security pieces (accessDecisionManagers, Voters, Interceptors) to handle our schema. Hope that helps.

like image 79
Gandalf Avatar answered Nov 15 '22 00:11

Gandalf