Buckets:
AnonymousSpottedToad/candidate_bucket / preliminary /mappings /java /authentication_pwd /odpi_egeria.json
| { | |
| "role_mappings": [ | |
| { | |
| "role": "Subject", | |
| "status": "missing", | |
| "symbol": "", | |
| "file": "", | |
| "lines": "", | |
| "notes": "No in-repo production client posts userId/password to /api/token (LoginController); searched *.java/*.ts/*.js/*.py for 'api/token' outside user-authn - only test FVTs. The caller is outside the repo." | |
| }, | |
| { | |
| "role": "Enforcer", | |
| "status": "present", | |
| "symbol": "platformToken", | |
| "file": "open-metadata-implementation/user-security/user-authn/src/main/java/org/odpi/openmetadata/userauthn/LoginController.java", | |
| "lines": "73", | |
| "notes": "Entry point of the login flow: POST /api/token handler in LoginController (permitAll in SecurityConfig.securityFilterChain, SecurityConfig.java:127); it calls authenticationManager.authenticate(new UsernamePasswordAuthenticationToken(userId, password)) at LoginController.java:85 and throws AuthenticationServiceException on failure, otherwise issues a token. serverToken (line 161) delegates to it." | |
| }, | |
| { | |
| "role": "Verification manager", | |
| "status": "external", | |
| "symbol": "authenticate", | |
| "file": "open-metadata-implementation/user-security/user-authn/src/main/java/org/odpi/openmetadata/userauthn/LoginController.java", | |
| "lines": "85", | |
| "notes": "Enforcer platformToken calls authenticate at LoginController.java:85; the AuthenticationManager is a Spring ProviderManager (SecurityConfig.authManager, SecurityConfig.java:56) wrapping Spring Security DaoAuthenticationProvider built at PlatformSecurityConfig.java:44 (active when authentication.source=platform). DaoAuthenticationProvider loads the user via loadUserByUsername (PlatformUserDetailsService.java:34) and checks the password with the encoder." | |
| }, | |
| { | |
| "role": "Password store", | |
| "status": "present", | |
| "symbol": "getUser", | |
| "file": "open-metadata-implementation/adapters/open-connectors/secrets-store-connectors/yaml-secrets-store-connector/src/main/java/org/odpi/openmetadata/adapters/connectors/secretsstore/yaml/YAMLSecretsStoreConnector.java", | |
| "lines": "409", | |
| "notes": "Reached from the Verification manager via loadUserByUsername (PlatformUserDetailsService.java:34) -> OpenMetadataPlatformSecurityVerifier.getLogonUser (line 217) -> OpenMetadataAccessSecurityConnector.getUserAccount (line 195) -> secretsStoreConnector.getUser; YAMLSecretsStoreConnector.getUser reads the user account (with encryptedPassword/clearPassword secrets) from the YAML secrets collection. PlatformUserDetails.getPassword (PlatformUserDetails.java:157) returns the stored bcrypt hash, or bcrypt-encodes a clear-text password on load (caveat: plaintext passwords may be stored)." | |
| }, | |
| { | |
| "role": "Hasher", | |
| "status": "external", | |
| "symbol": "matches", | |
| "file": "open-metadata-implementation/user-security/user-authn/src/main/java/org/odpi/openmetadata/userauthn/auth/PlatformSecurityConfig.java", | |
| "lines": "46", | |
| "notes": "Spring Security BCryptPasswordEncoder.matches, configured via authProvider.setPasswordEncoder(new BCryptPasswordEncoder()) at PlatformSecurityConfig.java:46 and invoked internally by DaoAuthenticationProvider (Verification manager); one call both hashes the submitted password with the stored salt and compares (same call as Comparator)." | |
| }, | |
| { | |
| "role": "Pepper store", | |
| "status": "missing", | |
| "symbol": "", | |
| "file": "", | |
| "lines": "", | |
| "notes": "No pepper on the verification path: DaoAuthenticationProvider uses plain BCryptPasswordEncoder (PlatformSecurityConfig.java:46); bcrypt salt is not a pepper. grep for 'pepper' in production code found nothing." | |
| }, | |
| { | |
| "role": "Encrypter", | |
| "status": "missing", | |
| "symbol": "", | |
| "file": "", | |
| "lines": "", | |
| "notes": "The bcrypt hash is compared directly; no encryption of the hash with a pepper key occurs on the path from LoginController.platformToken (LoginController.java:85) through DaoAuthenticationProvider." | |
| }, | |
| { | |
| "role": "Comparator", | |
| "status": "external", | |
| "symbol": "matches", | |
| "file": "open-metadata-implementation/user-security/user-authn/src/main/java/org/odpi/openmetadata/userauthn/auth/PlatformSecurityConfig.java", | |
| "lines": "46", | |
| "notes": "DaoAuthenticationProvider.additionalAuthenticationChecks (Verification manager) calls BCryptPasswordEncoder.matches internally, configured at PlatformSecurityConfig.java:46; the same matches call covers Hasher and Comparator, rejecting with BadCredentialsException on mismatch." | |
| }, | |
| { | |
| "role": "System", | |
| "status": "present", | |
| "symbol": "generateToken", | |
| "file": "open-metadata-implementation/user-security/user-authn/src/main/java/org/odpi/openmetadata/userauthn/TokenService.java", | |
| "lines": "36", | |
| "notes": "After successful authentication the Enforcer platformToken calls tokenService.generateToken(authentication) at LoginController.java:142, which builds and signs the JWT bearer token returned to the caller (login success action)." | |
| } | |
| ] | |
| } | |
Xet Storage Details
- Size:
- 5.11 kB
- Xet hash:
- 6855ae80e54926f2d30a3e55f4eb7f09529d6da52f853f255ce57c2a8c33cae7
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.