Buckets:

download
raw
4.66 kB
{
"role_mappings": [
{
"role": "Subject",
"status": "missing",
"symbol": "",
"file": "",
"lines": "",
"notes": "No in-repo client (UI/SDK/CLI) sends the ix.session cookie to LegacyAuthenticationFilter; the browser/front-end is outside this starter repo. Searched for .js/.ts/.html and client code, none found outside tests."
},
{
"role": "Authentication enforcer",
"status": "present",
"symbol": "doFilterInternal",
"file": "gsrs-spring-boot-autoconfigure/src/main/java/gsrs/security/LegacyAuthenticationFilter.java",
"lines": "74",
"notes": "doFilterInternal in LegacyAuthenticationFilter (OncePerRequestFilter), registered via addFilterBefore in filterChain at LegacyGsrsSecurityConfiguration.java:110, reads the ix.session cookie (line 84) and resolves the session; with no auth it returns 403 (line 231) unless allownonauthenticated, and .anyRequest().authenticated() (line 113) blocks otherwise. Session verification is inline here (see Verifier)."
},
{
"role": "Verifier",
"status": "present",
"symbol": "isExpired",
"file": "gsrs-core-entities/src/main/java/gsrs/security/SessionConfiguration.java",
"lines": "45",
"notes": "Called by doFilterInternal at LegacyAuthenticationFilter.java:100 after the session lookup; isExpired in SessionConfiguration decides whether the session is still open (expired flag / created+timeout). The null-check and building of SessionIdAuthentication with the principal happen inline in doFilterInternal (lines 99-105)."
},
{
"role": "Session manager",
"status": "present",
"symbol": "findById",
"file": "gsrs-spring-boot-autoconfigure/src/main/java/gsrs/security/LegacyAuthenticationFilter.java",
"lines": "99",
"notes": "doFilterInternal (Enforcer, line 99) calls sessionRepository.findById(UUID) on SessionRepository (gsrs-core-entities/src/main/java/gsrs/repository/SessionRepository.java:12, Spring Data JpaRepository<Session,UUID>); the repo declares the Session entity/table (ix.core.models.Session) whose profile is the principal. findById itself is inherited from Spring Data; sessions are created in SessionConfiguration.cleanUpSessionsThenGetSession (line 54)."
},
{
"role": "Authorisation enforcer",
"status": "external",
"symbol": "PreAuthorize",
"file": "gsrs-core-entities/src/main/java/gsrs/security/canManageUsers.java",
"lines": "11",
"notes": "After doFilterInternal sets SecurityContext (LegacyAuthenticationFilter.java:255), Spring method security (enabled by @EnableGlobalMethodSecurity(prePostEnabled=true) at LegacyGsrsSecurityConfiguration.java:48) intercepts calls to UserController (class-annotated @canManageUsers, UserController.java:22). The meta-annotation @canManageUsers carries @PreAuthorize(\"@permission.canDo('Manage Users')\"); interception is Spring's MethodSecurityInterceptor, so no in-repo method enforces it."
},
{
"role": "Decider",
"status": "present",
"symbol": "canUserPerform",
"file": "gsrs-core-entities/src/main/java/gsrs/services/PrivilegeService.java",
"lines": "114",
"notes": "The @PreAuthorize expression at canManageUsers.java:11 calls canDo (PrivilegeService.java:107, bean 'permission'), which delegates at line 109 to canUserPerform; canUserPerform takes the current UserProfile principal and returns MayPerform/MayNotPerform/RoleNotFound based on its roles."
},
{
"role": "Policy provider",
"status": "present",
"symbol": "canRolePerform",
"file": "gsrs-core-entities/src/main/java/gsrs/services/PrivilegeService.java",
"lines": "144",
"notes": "Called by canUserPerform at PrivilegeService.java:121; canRolePerform looks up the role in configuredRoles (loaded from gsrs.security.info.filepath by setupConfig line 45, or setDefaultConfig line 65) and checks its privileges including included roles. getPrivilegesForConfiguredRole (line 165) also yields privileges but is used by the filter to populate authorities, not on the canDo decision path."
},
{
"role": "System",
"status": "present",
"symbol": "userSummary",
"file": "gsrs-spring-boot-autoconfigure/src/main/java/gsrs/controller/UserController.java",
"lines": "51",
"notes": "GET api/v1/users handler in UserController, registered by GsrsApiSelector.java:71 and protected by class-level @canManageUsers (UserController.java:22); runs only after the filter authenticates the session and canDo('Manage Users') passes. Returns all user profiles."
}
]
}

Xet Storage Details

Size:
4.66 kB
·
Xet hash:
69face74c919424d7fc6e1c55231395790713086e0437a52fcb7440a82b6bb28

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.