Buckets:

AnonymousSpottedToad/candidate_bucket / preliminary /mappings /java /authentication_pwd /xdev-software_spring-security-extras.json
download
raw
4.4 kB
{
"role_mappings": [
{
"role": "Subject",
"status": "missing",
"symbol": "",
"file": "",
"lines": "",
"notes": "The caller of the actuator endpoints is outside the repo. The only in-repo client sending Basic credentials (WebAppContainer.withBasicCredentials in demo/integration-tests) is test infrastructure and does not count."
},
{
"role": "Enforcer",
"status": "present",
"symbol": "configureActuator",
"file": "web-sidecar-actuator/src/main/java/software/xdev/sse/web/sidecar/actuator/ActuatorWebSecurity.java",
"lines": "86",
"notes": "@Bean @Order(1) SecurityFilterChain in ActuatorWebSecurity (auto-configuration, enabled by default via sse.sidecar.actuator.enabled matchIfMissing=true) secures <actuator base>/** with httpBasic (line 120), stateless sessions and hasRole checks; Spring's BasicAuthenticationFilter rejects requests whose credentials fail. It wires its own ProviderManager(createActuatorAuthProvider()) at line 124."
},
{
"role": "Verification manager",
"status": "external",
"symbol": "authenticate",
"file": "web-sidecar-actuator/src/main/java/software/xdev/sse/web/sidecar/actuator/ActuatorWebSecurity.java",
"lines": "148",
"notes": "Reached from the Enforcer via ProviderManager at ActuatorWebSecurity.java:124 -> createActuatorAuthProvider (line 135). Spring's DaoAuthenticationProvider.authenticate (constructed at line 148) loads the user from the store and calls the repo's custom PasswordEncoder.matches."
},
{
"role": "Password store",
"status": "present",
"symbol": "getUsers",
"file": "web-sidecar-actuator/src/main/java/software/xdev/sse/web/sidecar/actuator/config/ActuatorSecurityConfig.java",
"lines": "77",
"notes": "createActuatorAuthProvider (ActuatorWebSecurity.java:137-149) reads config.getUsers() (ActuatorUserConfig.getPasswordHash, line 46) and loads them into Spring's InMemoryUserDetailsManager, which DaoAuthenticationProvider queries via loadUserByUsername. Config-backed store of per-user unsalted SHA-256 hashes (property sse.sidecar.actuator.users[*].password-hash)."
},
{
"role": "Hasher",
"status": "external",
"symbol": "digest",
"file": "codec-sha256/src/main/java/software/xdev/sse/codec/hash/SHA256Hashing.java",
"lines": "60",
"notes": "The matches lambda (ActuatorWebSecurity.java:160-162) calls passwordHashCache.computeIfAbsent(raw, passwordHasher::hash) -> DefaultSHA256PasswordHasher.hash (line 33, default id 'default-sha256') -> SHA256Hashing.hash -> java.security.MessageDigest SHA-256 digest here. Unsalted; results optionally cached by CaffeinePasswordHashCache (opt-in)."
},
{
"role": "Pepper store",
"status": "missing",
"symbol": "",
"file": "",
"lines": "",
"notes": "No pepper on the verification path: the raw password is hashed with plain SHA-256 (DefaultSHA256PasswordHasher.hash) and compared; looked through ActuatorWebSecurity, config and passwordhash packages."
},
{
"role": "Encrypter",
"status": "missing",
"symbol": "",
"file": "",
"lines": "",
"notes": "The hash is not encrypted with any key before comparison. The repo's crypto-symmetric module (DefaultSymCryptor) is used for remember-me secrets, not on this password path."
},
{
"role": "Comparator",
"status": "present",
"symbol": "matches",
"file": "web-sidecar-actuator/src/main/java/software/xdev/sse/web/sidecar/actuator/ActuatorWebSecurity.java",
"lines": "183",
"notes": "MatchingOnlyPasswordEncoder.matches (declared line 183) is implemented by the lambda set via setPasswordEncoder at ActuatorWebSecurity.java:152; it rejects empty/overlong passwords and compares the computed SHA-256 hex with the stored hash via String.equals (line 163, not constant-time), recording metrics. Invoked by DaoAuthenticationProvider (Verification manager)."
},
{
"role": "System",
"status": "missing",
"symbol": "",
"file": "",
"lines": "",
"notes": "The protected actions are Spring Boot Actuator endpoints (framework-provided), not repo handlers; the repo is a library of security extras. Demo apps (demo/webapp-*) contain no actuator handler of their own."
}
]
}

Xet Storage Details

Size:
4.4 kB
·
Xet hash:
4318efac382e15cfa4d393949636a413e100cd258b912dc9454b3670ef6e7c75

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