Buckets:
AnonymousSpottedToad/candidate_bucket / preliminary_without_sequence /mappings /java /authentication_pwd /Fi0x_HomeServerStuff.json
| { | |
| "role_mappings": [ | |
| { | |
| "role": "Subject", | |
| "status": "missing", | |
| "symbol": "", | |
| "file": "", | |
| "lines": "", | |
| "notes": "The login form (login.jsp posting to /login) is tracked in git under modules/*/src/main/webapp/WEB-INF/jsp but is not present in the checked-out working tree; no in-repo Java client sends credentials. The caller is an outside browser user." | |
| }, | |
| { | |
| "role": "Enforcer", | |
| "status": "present", | |
| "symbol": "securityFilterChainSetup", | |
| "file": "modules/util/src/main/java/io/github/fi0x/util/config/HomeServerUtilSecurityConfig.java", | |
| "lines": "51", | |
| "notes": "Shared SecurityFilterChain builder in HomeServerUtilSecurityConfig, invoked by the hub bean hubSecurityFilterChain (modules/hub/src/main/java/io/github/fi0x/hub/config/SpringSecurityConfig.java:29). It enables formLogin with loginProcessingUrl(\"/login\") at line 64-66, installing Spring's UsernamePasswordAuthenticationFilter that rejects bad credentials." | |
| }, | |
| { | |
| "role": "Verification manager", | |
| "status": "external", | |
| "symbol": "authenticate", | |
| "file": "modules/util/src/main/java/io/github/fi0x/util/config/HomeServerUtilSecurityConfig.java", | |
| "lines": "64", | |
| "notes": "Reached from the Enforcer's http.formLogin(...) at HomeServerUtilSecurityConfig.java:64; Spring Security's DaoAuthenticationProvider.authenticate (auto-configured from the UserDetailsManager and PasswordEncoder beans in HomeServerUtilConfig) loads the user and checks the password. No in-repo verification code." | |
| }, | |
| { | |
| "role": "Password store", | |
| "status": "external", | |
| "symbol": "loadUserByUsername", | |
| "file": "modules/util/src/main/java/io/github/fi0x/util/config/HomeServerUtilConfig.java", | |
| "lines": "112", | |
| "notes": "DaoAuthenticationProvider calls JdbcUserDetailsManager.loadUserByUsername; the manager is built in userDetailsManager bean (HomeServerUtilConfig.java:108) with new JdbcUserDetailsManager(dataSource) at line 112, using Spring's default users table with bcrypt hashes. Users are created via AuthenticationService.registerUser and the default admin via createUser (line 134)." | |
| }, | |
| { | |
| "role": "Hasher", | |
| "status": "external", | |
| "symbol": "matches", | |
| "file": "modules/util/src/main/java/io/github/fi0x/util/config/HomeServerUtilConfig.java", | |
| "lines": "131", | |
| "notes": "Spring's BCryptPasswordEncoder.matches, invoked internally by DaoAuthenticationProvider, both hashes the submitted password with the stored salt and compares; one call covers Hasher and Comparator. Encoder configured by passwordEncoder bean (HomeServerUtilConfig.java:129) at line 131." | |
| }, | |
| { | |
| "role": "Pepper store", | |
| "status": "missing", | |
| "symbol": "", | |
| "file": "", | |
| "lines": "", | |
| "notes": "No pepper/secret is applied to password hashes; searched util/hub configs and AuthenticationService. Only the bcrypt per-hash salt exists, which is not a pepper." | |
| }, | |
| { | |
| "role": "Encrypter", | |
| "status": "missing", | |
| "symbol": "", | |
| "file": "", | |
| "lines": "", | |
| "notes": "No encryption of the password hash with a pepper key on the verification path; BCryptPasswordEncoder (HomeServerUtilConfig.java:131) only hashes." | |
| }, | |
| { | |
| "role": "Comparator", | |
| "status": "external", | |
| "symbol": "matches", | |
| "file": "modules/util/src/main/java/io/github/fi0x/util/config/HomeServerUtilConfig.java", | |
| "lines": "131", | |
| "notes": "Same BCryptPasswordEncoder.matches call as the Hasher (one call covers both roles), invoked by DaoAuthenticationProvider reached from formLogin at HomeServerUtilSecurityConfig.java:64; it compares the recomputed bcrypt hash with the stored one." | |
| }, | |
| { | |
| "role": "System", | |
| "status": "present", | |
| "symbol": "showHomePage", | |
| "file": "modules/hub/src/main/java/io/github/fi0x/hub/rest/MainController.java", | |
| "lines": "24", | |
| "notes": "After successful login the Enforcer redirects via defaultSuccessUrl(\"/\", true) (HomeServerUtilSecurityConfig.java:67) to the hub's GET / handler showHomePage, which shows the authenticated username and connected services. Caveat: \"/\" is also publicly reachable (anyRequest().permitAll())." | |
| } | |
| ] | |
| } | |
Xet Storage Details
- Size:
- 4.3 kB
- Xet hash:
- b392a10f4e3894ae513f35b53e1e0b1119e2e2ad4f9cdb2bd193a3c9baa6169b
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.