Buckets:

download
raw
4.58 kB
{
"role_mappings": [
{
"role": "Subject",
"status": "missing",
"symbol": "",
"file": "",
"lines": "",
"notes": "No in-repo client sends credentials: the admin login page/static UI (classpath:/admin/) is not in the repo and there are no html/js sources; the caller of the form login is outside the repo."
},
{
"role": "Enforcer",
"status": "present",
"symbol": "filterChain",
"file": "icloud-starters/icloud-starter-admin/src/main/java/cn/isqing/icloud/starter/admin/config/SecurityConfig.java",
"lines": "39",
"notes": "Anchor: Spring Security chain bean that installs formLogin (loginPage /admin/login, SecurityConfig.java:44) and anyRequest().authenticated() (line 42), so the UsernamePasswordAuthenticationFilter rejects bad credentials. Caveat: SecurityConfig is @ConditionalOnProperty i.admin.enabled=true with matchIfMissing=false, yet UserServiceImpl needs its PasswordEncoder bean, so the admin module only works with the property set."
},
{
"role": "Verification manager",
"status": "external",
"symbol": "userDetailsService",
"file": "icloud-starters/icloud-starter-admin/src/main/java/cn/isqing/icloud/starter/admin/config/SecurityConfig.java",
"lines": "34",
"notes": "Reached from the Enforcer's formLogin filter via the AuthenticationManager bean (SecurityConfig.java:31); authenticationManagerBuilder.userDetailsService(...) registers Spring Security's DaoAuthenticationProvider (with the context PasswordEncoder), which loads the user and checks the password. Off-path alternative: UserServiceImpl.login (UserServiceImpl.java:38) is not HTTP-mapped (AdminInterfaceImpl.login has no request mapping)."
},
{
"role": "Password store",
"status": "present",
"symbol": "selectByUsername",
"file": "icloud-starters/icloud-starter-admin/src/main/java/cn/isqing/icloud/starter/admin/dao/mapper/UserMapper.java",
"lines": "18",
"notes": "DaoAuthenticationProvider calls AdminUserDetailsService.loadUserByUsername (AdminUserDetailsService.java:31), which calls userMapper.selectByUsername at line 33 to fetch the user with its bcrypt hash (MyBatis mapper; no mapper XML present in repo). Caveat: if the stored password is empty, a configured default password (i.admin.password, default 'admin') is bcrypt-encoded on load (line 41)."
},
{
"role": "Hasher",
"status": "external",
"symbol": "BCryptPasswordEncoder",
"file": "icloud-starters/icloud-starter-admin/src/main/java/cn/isqing/icloud/starter/admin/config/SecurityConfig.java",
"lines": "27",
"notes": "Spring Security BCryptPasswordEncoder instantiated in the passwordEncoder bean (SecurityConfig.java:26), injected into DaoAuthenticationProvider via the HttpSecurity AuthenticationManagerBuilder (line 34). Its matches() both hashes and compares (one call covers Hasher and Comparator)."
},
{
"role": "Pepper store",
"status": "missing",
"symbol": "",
"file": "",
"lines": "",
"notes": "No pepper/secret applied to passwords on the verification path (searched pepper/hmac/secret/Cipher in the starters); bcrypt salt is not a pepper."
},
{
"role": "Encrypter",
"status": "missing",
"symbol": "",
"file": "",
"lines": "",
"notes": "The bcrypt hash is not encrypted with any key; no Cipher/HMAC on the login path."
},
{
"role": "Comparator",
"status": "external",
"symbol": "matches",
"file": "icloud-starters/icloud-starter-admin/src/main/java/cn/isqing/icloud/starter/admin/config/SecurityConfig.java",
"lines": "27",
"notes": "DaoAuthenticationProvider (wired at SecurityConfig.java:34) calls BCryptPasswordEncoder.matches inside Spring Security; no in-repo call line exists on this path, so the encoder instantiation line is cited. Same call covers Hasher. Off-path in-repo call: UserServiceImpl.java:44."
},
{
"role": "System",
"status": "present",
"symbol": "login",
"file": "icloud-starters/icloud-starter-admin/src/main/java/cn/isqing/icloud/starter/admin/web/controller/LoginController.java",
"lines": "12",
"notes": "After successful formLogin, Spring's default success handler redirects to '/', which MyWebMvcConfigurer.addViewControllers (MyWebMvcConfigurer.java:33) redirects to /iadmin/login, served by this authenticated-only handler. Other protected handlers: MfaController endpoints (/admin/mfa/**)."
}
]
}

Xet Storage Details

Size:
4.58 kB
·
Xet hash:
d5d2053be14b74efee5025f143e0874f7257842bd8dd76053a6c1501af422cfc

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