Buckets:

download
raw
4.18 kB
{
"role_mappings": [
{
"role": "Subject",
"status": "missing",
"symbol": "",
"file": "",
"lines": "",
"notes": "The repo is a reusable Spring Boot security base library with no in-repo client (no UI/SDK/CLI); callers are outside the repo. Only tests send credentials, which do not count."
},
{
"role": "Authentication enforcer",
"status": "missing",
"symbol": "",
"file": "",
"lines": "",
"notes": "No opaque session id flow: securityFilterChain sets SessionCreationPolicy.STATELESS (src/main/java/br/com/bossawebsolutions/base_api/infrastructure/web/security/WebSecurityConfig.java:94) and requests are authenticated by a self-contained HS512 JWT (access_token cookie or Bearer header) in doFilterInternal of JWTAuthorizationFilter (src/main/java/br/com/bossawebsolutions/base_api/infrastructure/web/security/JWTAuthorizationFilter.java:44). This is the verifiable-token pattern, not a session, so the role is missing."
},
{
"role": "Verifier",
"status": "missing",
"symbol": "",
"file": "",
"lines": "",
"notes": "The only token check is getAuthentication in JWTAuthorizationFilter (src/main/java/br/com/bossawebsolutions/base_api/infrastructure/web/security/JWTAuthorizationFilter.java:72), which verifies the JWT signature with jjwt verifyWith/parseSignedClaims; no lookup of a session id against server-side state exists."
},
{
"role": "Session manager",
"status": "missing",
"symbol": "",
"file": "",
"lines": "",
"notes": "No session store (HttpSession, Redis, DB token table) exists; sessions are disabled (STATELESS at src/main/java/br/com/bossawebsolutions/base_api/infrastructure/web/security/WebSecurityConfig.java:94). AppUserRepository.findByUsername is only used for password login (UserDetailsServiceImpl), not for resolving a session."
},
{
"role": "Authorisation enforcer",
"status": "present",
"symbol": "securityFilterChain",
"file": "src/main/java/br/com/bossawebsolutions/base_api/infrastructure/web/security/WebSecurityConfig.java",
"lines": "80",
"notes": "Reached from the request path after JWTAuthorizationFilter.doFilterInternal (JWTAuthorizationFilter.java:63 chain.doFilter) puts the principal in the SecurityContext. The securityFilterChain @Bean in WebSecurityConfig installs Spring's framework AuthorizationFilter via authorizeHttpRequests (line 90), which rejects requests not allowed by the rules; the filter itself is framework-provided."
},
{
"role": "Decider",
"status": "external",
"symbol": "check",
"file": "src/main/java/br/com/bossawebsolutions/base_api/infrastructure/web/security/WebSecurityConfig.java",
"lines": "92",
"notes": "Called by the Authorisation enforcer (Spring AuthorizationFilter configured at WebSecurityConfig.java:90). Spring Security's RequestMatcherDelegatingAuthorizationManager / AuthenticatedAuthorizationManager.check decides: permitAll for open endpoints (line 91), anyRequest().authenticated() otherwise (line 92). No role-based checks: the JWT principal carries AuthorityUtils.NO_AUTHORITIES (JWTAuthorizationFilter.java:82)."
},
{
"role": "Policy provider",
"status": "present",
"symbol": "openEndpointsList",
"file": "src/main/java/br/com/bossawebsolutions/base_api/infrastructure/web/security/WebSecurityConfig.java",
"lines": "32",
"notes": "Consulted by the Decider via the rules built at WebSecurityConfig.java:90-93. The policy is held in config: field openEndpointsList bound from property open.endpoints.list (permitAll), with everything else requiring authentication; no method holds the policy, so the field is cited."
},
{
"role": "System",
"status": "missing",
"symbol": "",
"file": "",
"lines": "",
"notes": "The repo is a security base library with no controllers or protected business handlers (searched src/main for @Controller/@RestController/handlers); the only main class is BwsBaseApiApplication. Per rule 7, System is missing."
}
]
}

Xet Storage Details

Size:
4.18 kB
·
Xet hash:
fb15992e700af327ad3c40e13239943c92f6b350d9851e701779161765770377

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