Repository navigation
v26.6.35
Spring Security parity — Tier 5c: ACL / domain-object security. The Rust
analog of spring-security-acl, answering hasPermission(object, permission)
from per-object access-control lists. Pure Rust — no new dependencies. All
additive. Adversarially reviewed before release.
Added
- ACL core (
spring-security-aclparity):Permission— theBasePermissionbitmask (READ=1,WRITE=2,
CREATE=4,DELETE=8,ADMINISTRATION=16), with cumulativeunion,
bit-contains, and case-insensitive name parsing.Sid(Principal/Authority— Spring'sPrincipalSid/
GrantedAuthoritySid),ObjectIdentity(type+identifier),
AccessControlEntry(sid + permission + granting), andAcl(owner- ordered ACEs + optional parent for inheritance).
AclService+InMemoryAclService(Spring'sMutableAclService),
and the freeis_grantedresolver.
AclPermissionEvaluator— bridges anAclServiceto the Tier 3
PermissionEvaluator, resolvinghasPermission(...)against per-object ACLs
by object reference or(type, id). The principal and its roles/authorities
map toPrincipalSid/GrantedAuthoritySid(each role matched both bare and
ROLE_-prefixed).PermissionEvaluator::has_permission_for_id+ the free
has_permission_for_id— Spring's id-basedhasPermissionoverload
(default-deny, backward compatible).
Security
- ACL evaluation is default-deny: a permission is granted only when an
applicable granting entry is found (locally or up the inheritance chain);
the first entry matching a(sid, permission)wins, so a deny placed
before a grant takes precedence (Spring'sDefaultPermissionGrantingStrategy).
The inheritance walk is bounded, so a cyclic or pathologically deep parent
chain terminates and denies rather than looping.