Buckets:
AnonymousSpottedToad/candidate_bucket / preliminary_without_sequence /mappings /java /authentication_pwd /rw00_rw-spring-boot-starter.json
| { | |
| "role_mappings": [ | |
| { | |
| "role": "Subject", | |
| "status": "missing", | |
| "symbol": "", | |
| "file": "", | |
| "lines": "", | |
| "notes": "No in-repo client (no HTML/JS UI, SDK or CLI) submits credentials; the form-login page is Spring Security's generated default /login page and the caller is a browser outside the repo." | |
| }, | |
| { | |
| "role": "Enforcer", | |
| "status": "present", | |
| "symbol": "adminSecurityFilterChain", | |
| "file": "rw-spring-boot-starter/src/main/java/com/rw/apps/starter/common/security/config/StarterSecurityConfig.java", | |
| "lines": "47", | |
| "notes": "Security-chain bean that installs Spring form login (.formLogin, line 61) for /login, /admin/**, /management/**, /actuator/** and requires ROLE_ADMIN (line 55); it wires the AuthenticationManager (line 56) that receives the posted username/password. The UsernamePasswordAuthenticationFilter itself is Spring's." | |
| }, | |
| { | |
| "role": "Verification manager", | |
| "status": "present", | |
| "symbol": "authenticate", | |
| "file": "rw-spring-boot-starter/src/main/java/com/rw/apps/starter/common/security/config/UsernameOnlyAuthProvider.java", | |
| "lines": "19", | |
| "notes": "Reached from the Enforcer via .authenticationManager(authenticationManager) (StarterSecurityConfig.java:56), whose default-active bean localAuthenticationManager (StarterSecurityConfig.java:42, @Profile(\"!live\"), active when no profile is set) wraps UsernameOnlyAuthProvider. authenticate loads the user by name (line 21) and returns an authenticated token WITHOUT ever checking the password. In the 'live' profile no in-repo AuthenticationManager bean exists (Spring's DaoAuthenticationProvider with the BCrypt bean would be the intended alternative)." | |
| }, | |
| { | |
| "role": "Password store", | |
| "status": "present", | |
| "symbol": "findByEmail", | |
| "file": "rw-spring-boot-starter/src/main/java/com/rw/apps/starter/accounts/repository/BaseAccountsRepository.java", | |
| "lines": "14", | |
| "notes": "Verification manager calls getUserDetailsService().loadUserByUsername (UsernameOnlyAuthProvider.java:21) -> CustomUserDetailsService.loadUserByUsername (CustomUserDetailsService.java:24) -> BaseAccountsService.getAccountByEmail (BaseAccountsService.java:22-23) -> Spring Data JPA derived query findByEmail over the accounts table, whose BaseAccountEntity.password column (BaseAccountEntity.java:34) holds the bcrypt hash. The stored hash is loaded but unused on the default path." | |
| }, | |
| { | |
| "role": "Hasher", | |
| "status": "missing", | |
| "symbol": "", | |
| "file": "", | |
| "lines": "", | |
| "notes": "On the default (non-'live') verification path no hashing happens: UsernameOnlyAuthProvider.authenticate overrides DaoAuthenticationProvider and skips password checks; its TruePasswordEncoder (UsernameOnlyAuthProvider.java:30) is identity and never invoked. Off path: BCryptPasswordEncoder bean at StarterSecurityConfig.java:37 is used only to encode seed passwords (LocalTestingInitializer.java:35) and would serve the 'live' profile alternative." | |
| }, | |
| { | |
| "role": "Pepper store", | |
| "status": "missing", | |
| "symbol": "", | |
| "file": "", | |
| "lines": "", | |
| "notes": "No pepper value or secret for password hashing anywhere in the repo (searched security config, accounts, config properties)." | |
| }, | |
| { | |
| "role": "Encrypter", | |
| "status": "missing", | |
| "symbol": "", | |
| "file": "", | |
| "lines": "", | |
| "notes": "No encryption of password hashes with a pepper; only JWT signing (JwtService) exists, unrelated to password verification." | |
| }, | |
| { | |
| "role": "Comparator", | |
| "status": "missing", | |
| "symbol": "", | |
| "file": "", | |
| "lines": "", | |
| "notes": "UsernameOnlyAuthProvider.authenticate (UsernameOnlyAuthProvider.java:19) never compares the submitted password to the stored hash; TruePasswordEncoder.matches (line 42, plain equals) is set but never called because authenticate is overridden. Off path: BCryptPasswordEncoder.matches via Spring's DaoAuthenticationProvider in the 'live' profile, which has no in-repo AuthenticationManager bean." | |
| }, | |
| { | |
| "role": "System", | |
| "status": "external", | |
| "symbol": "defaultSuccessUrl", | |
| "file": "rw-spring-boot-starter/src/main/java/com/rw/apps/starter/common/security/config/StarterSecurityConfig.java", | |
| "lines": "62", | |
| "notes": "After the Enforcer (adminSecurityFilterChain, line 47) authenticates, Spring Security's success handler establishes the session (maximumSessions(1), line 60) and redirects to /admin/api-docs, configured here; subsequent protected handlers are e.g. AdminAccountsApi (admin/api/AdminAccountsApi.java:28)." | |
| } | |
| ] | |
| } | |
Xet Storage Details
- Size:
- 4.73 kB
- Xet hash:
- debdbaeb0d2c3bfc185d82fd2046fff1351d129e6abb966a49d465815a60cdcd
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.