Buckets:

AnonymousSpottedToad/human_verified_bucket / human_annotated /mappings /java /authentication_pwd__scality_osis.json
download
raw
4.55 kB
{
"role_mappings": [
{
"role": "Subject",
"symbol": "",
"file": "",
"lines": "",
"notes": "The login request (POST /api/v1/auth/login with JSON username/password) comes from an external OSIS client outside the repo; no in-repo UI/SDK/CLI sends it (only tests).",
"status": "missing",
"nodeId": null
},
{
"role": "Enforcer",
"symbol": "LoginProcessingFilter",
"file": "osis-core/src/main/java/com/scality/osis/security/jwt/login/LoginProcessingFilter.java",
"lines": "32",
"notes": "Installed for /api/v1/auth/login by OsisJwtWebSecurityConfigurerAdapter.filterChain (OsisJwtWebSecurityConfigurerAdapter.java:101), active by default (security.jwt.enabled matchIfMissing=true). attemptAuthentication (line 46) reads username/password and calls getAuthenticationManager().authenticate (line 58); unsuccessfulAuthentication (line 68) rejects via the failure handler.",
"status": "present",
"nodeId": null
},
{
"role": "Verification manager",
"symbol": "authenticate",
"file": "osis-core/src/main/java/com/scality/osis/security/jwt/login/LoginAuthenticationProvider.java",
"lines": "39",
"notes": "Reached from LoginProcessingFilter.java:58 via the AuthenticationManager registered with loginAuthenticationProvider (OsisJwtWebSecurityConfigurerAdapter.java:79). Extracts principal/credentials, loads the user (line 44) and checks the password with encoder.matches (line 49), returning a UserContext token or throwing BadCredentialsException.",
"status": "present",
"nodeId": null
},
{
"role": "Password store",
"symbol": "loadUserByUsername",
"file": "osis-core/src/main/java/com/scality/osis/security/platform/PlatformUserDetailsService.java",
"lines": "23",
"notes": "Called by LoginAuthenticationProvider.java:44. Single admin identity: access key and secret key come from config/Vault admin file via ScalityAppEnv.getPlatformSecretKey (ScalityAppEnv.java:41); caveat: secret is held in plaintext and bcrypt-hashed on load in PlatformUserDetails constructor (PlatformUserDetails.java:25).",
"status": "present",
"nodeId": null
},
{
"role": "Hasher",
"symbol": "BCryptPasswordEncoder",
"file": "osis-core/src/main/java/com/scality/osis/security/config/OsisJwtBeans.java",
"lines": "28",
"notes": "Spring Security bcrypt encoder bean instantiated in passwordEncoder() and injected into LoginAuthenticationProvider (OsisJwtBeans.java:34). The same encoder.matches call at LoginAuthenticationProvider.java:49 both hashes the supplied password with the stored salt and compares (one call covers Hasher and Comparator).",
"status": "external",
"nodeId": null
},
{
"role": "Pepper store",
"symbol": "",
"file": "",
"lines": "",
"notes": "No pepper on the login path (LoginAuthenticationProvider, PlatformUserDetailsService, OsisJwtBeans); bcrypt salt is not a pepper. Grep for pepper found nothing.",
"status": "missing",
"nodeId": null
},
{
"role": "Encrypter",
"symbol": "",
"file": "",
"lines": "",
"notes": "The bcrypt hash is not encrypted with a key on the verification path. AES256GCM (storage-platform-clients/.../security/crypto/AES256GCM.java:30) encrypts storage credentials/admin-file secrets, unrelated to password-hash peppering, so not used.",
"status": "missing",
"nodeId": null
},
{
"role": "Comparator",
"symbol": "matches",
"file": "osis-core/src/main/java/com/scality/osis/security/jwt/login/LoginAuthenticationProvider.java",
"lines": "49",
"notes": "Called in LoginAuthenticationProvider.authenticate: BCryptPasswordEncoder.matches (Spring Security) compares the supplied password against the stored bcrypt hash from PlatformUserDetails.getPassword; same call also performs the hashing (Hasher).",
"status": "external",
"nodeId": null
},
{
"role": "System",
"symbol": "onAuthenticationSuccess",
"file": "osis-core/src/main/java/com/scality/osis/security/jwt/login/LoginAuthenticationSuccessHandler.java",
"lines": "44",
"notes": "Invoked by LoginProcessingFilter.successfulAuthentication (LoginProcessingFilter.java:64) after successful verification; issues access and refresh JWTs via JwtTokenFactory and writes them in the response.",
"status": "present",
"nodeId": null
}
]
}

Xet Storage Details

Size:
4.55 kB
·
Xet hash:
987c2de19c6569ff333d37c8c3ba6604da80962203c1707072c5ea70b4603499

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