Buckets:
AnonymousSpottedToad/candidate_bucket / preliminary /mappings /java /authentication_pwd /Zeus-2-0_api-gateway.json
| { | |
| "role_mappings": [ | |
| { | |
| "role": "Subject", | |
| "status": "missing", | |
| "symbol": "", | |
| "file": "", | |
| "lines": "", | |
| "notes": "No in-repo client (UI/SDK/CLI) sends credentials to POST /zeus/jwt/authenticate; the caller is outside the repo. Only integration tests under src/test call it, which do not count." | |
| }, | |
| { | |
| "role": "Enforcer", | |
| "status": "present", | |
| "symbol": "jwtAuthentication", | |
| "file": "src/main/java/com/brihaspathee/zeus/web/resource/impl/AuthenticationAPIImpl.java", | |
| "lines": "50", | |
| "notes": "Login endpoint POST /zeus/jwt/authenticate (AuthenticationAPI.java:62, whitelisted in ZeusSecurityConfig.java:48). It calls authenticationManager.authenticate(UsernamePasswordAuthenticationToken) at line 52 and rethrows BadCredentialsException at line 57, so the token is issued only on success." | |
| }, | |
| { | |
| "role": "Verification manager", | |
| "status": "external", | |
| "symbol": "DaoAuthenticationProvider", | |
| "file": "src/main/java/com/brihaspathee/zeus/config/BeanConfig.java", | |
| "lines": "31", | |
| "notes": "Reached from Enforcer AuthenticationAPIImpl.java:52 via the AuthenticationManager (ZeusSecurityConfig.java:101), which delegates to the Spring Security DaoAuthenticationProvider bean built here. The bean is wired with zeusUserDetailsService (line 32) and bCryptPasswordEncoder (line 33) and fetches the user, then calls matches." | |
| }, | |
| { | |
| "role": "Password store", | |
| "status": "present", | |
| "symbol": "findUserByUsername", | |
| "file": "src/main/java/com/brihaspathee/zeus/domain/repository/UserRepository.java", | |
| "lines": "21", | |
| "notes": "DaoAuthenticationProvider (BeanConfig.java:32) calls ZeusUserDetailsService.loadUserByUsername (ZeusUserDetailsService.java:30), which calls userRepository.findUserByUsername at line 32. This is a Spring Data JPA query over the User entity, whose password column holds the bcrypt hash (User.java:58, encoded at UserServiceImpl.java:76)." | |
| }, | |
| { | |
| "role": "Hasher", | |
| "status": "external", | |
| "symbol": "BCryptPasswordEncoder", | |
| "file": "src/main/java/com/brihaspathee/zeus/config/PasswordEncoderConfig.java", | |
| "lines": "21", | |
| "notes": "Spring Security BCryptPasswordEncoder is instantiated here and injected into DaoAuthenticationProvider at BeanConfig.java:33. One library call, matches(), both hashes the candidate with the stored salt and compares it (tie-break 3). The DelegatingPasswordEncoder bean at ZeusSecurityConfig.java:60 is not used by the provider." | |
| }, | |
| { | |
| "role": "Pepper store", | |
| "status": "missing", | |
| "symbol": "", | |
| "file": "", | |
| "lines": "", | |
| "notes": "No pepper exists. The verification path (BeanConfig.java:31-33, PasswordEncoderConfig.java:21) uses plain bcrypt, and grep found no pepper, secret or HMAC used for passwords. The bcrypt salt is not a pepper." | |
| }, | |
| { | |
| "role": "Encrypter", | |
| "status": "missing", | |
| "symbol": "", | |
| "file": "", | |
| "lines": "", | |
| "notes": "The bcrypt hash is not encrypted with a key anywhere on the path from DaoAuthenticationProvider to BCryptPasswordEncoder.matches. A password hash is not an Encrypter." | |
| }, | |
| { | |
| "role": "Comparator", | |
| "status": "external", | |
| "symbol": "matches", | |
| "file": "src/main/java/com/brihaspathee/zeus/config/BeanConfig.java", | |
| "lines": "33", | |
| "notes": "DaoAuthenticationProvider.additionalAuthenticationChecks calls BCryptPasswordEncoder.matches inside the library. Per rule 4a, the entity is the library symbol matches, cited at the setPasswordEncoder line where the repo configures it; the repo never calls matches directly. One matches() call covers both the Hasher and the Comparator." | |
| }, | |
| { | |
| "role": "System", | |
| "status": "present", | |
| "symbol": "getAuthenticationResponse", | |
| "file": "src/main/java/com/brihaspathee/zeus/service/impl/APIGatewayUserServiceImpl.java", | |
| "lines": "43", | |
| "notes": "After authentication succeeds, the Enforcer calls apiGatewayUserService.getAuthenticationResponse(username) at AuthenticationAPIImpl.java:63. It loads the user and issues a JWT through getAuthenticationResponse(User) at line 49, which calls zeusJwtUtil.generateToken at line 50." | |
| } | |
| ] | |
| } | |
Xet Storage Details
- Size:
- 4.31 kB
- Xet hash:
- 121060a23da19a34b84cebf32feceb66c3a8528265c7ca246f5a66326c352b0c
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.