Buckets:
AnonymousSpottedToad/human_verified_bucket / human_annotated /mappings /java /authentication_pwd__ncats_gsrs-spring-starter.json
| { | |
| "role_mappings": [ | |
| { | |
| "role": "Subject", | |
| "symbol": "", | |
| "file": "", | |
| "lines": "", | |
| "notes": "The caller sending auth-username/auth-password headers is outside the repo; grep for 'auth-password' only hits LegacyAuthenticationFilter. No in-repo UI/SDK/CLI client targets this enforcer (tests excluded).", | |
| "status": "missing", | |
| "nodeId": null | |
| }, | |
| { | |
| "role": "Enforcer", | |
| "symbol": "doFilterInternal", | |
| "file": "gsrs-spring-boot-autoconfigure/src/main/java/gsrs/security/LegacyAuthenticationFilter.java", | |
| "lines": "74", | |
| "notes": "doFilterInternal in LegacyAuthenticationFilter, registered via addFilterBefore in LegacyGsrsSecurityConfiguration.filterChain (LegacyGsrsSecurityConfiguration.java:110). It reads auth-username/auth-password headers (lines 161-162), calls up.acceptPassword (line 173), throws BadCredentialsException on mismatch (line 190) and otherwise sets the SecurityContext and continues the chain; unauthenticated requests get 403 (line 231).", | |
| "status": "present", | |
| "nodeId": null | |
| }, | |
| { | |
| "role": "Verification manager", | |
| "symbol": "acceptPassword", | |
| "file": "gsrs-core-entities/src/main/java/ix/core/models/UserProfile.java", | |
| "lines": "206", | |
| "notes": "Reached from Enforcer doFilterInternal at LegacyAuthenticationFilter.java:173. acceptPassword in UserProfile gathers the stored hashp and salt of the loaded profile, calls hasher.hash(password, salt) (line 211), falls back to legacy Util.encrypt SHA-1 and triggers rehash via setPassword. LegacyGsrsAuthenticationProvider.authenticate (line 92) calls the same method for LegacyUserPassAuthentication, but nothing in production constructs that token.", | |
| "status": "present", | |
| "nodeId": null | |
| }, | |
| { | |
| "role": "Password store", | |
| "symbol": "findByUser_UsernameIgnoreCase", | |
| "file": "gsrs-core-entities/src/main/java/gsrs/repository/UserProfileRepository.java", | |
| "lines": "24", | |
| "notes": "Called by Enforcer doFilterInternal at LegacyAuthenticationFilter.java:165 before acceptPassword. Spring Data JPA derived query declared in the repo's UserProfileRepository, loading UserProfile (table ix_core_userprof) with hashp and salt fields (UserProfile.java:58-59).", | |
| "status": "present", | |
| "nodeId": null | |
| }, | |
| { | |
| "role": "Hasher", | |
| "symbol": "generateSecret", | |
| "file": "gsrs-core/src/main/java/gsrs/util/GsrsPasswordHasher.java", | |
| "lines": "59", | |
| "notes": "Verification manager acceptPassword (UserProfile.java:211) calls hasher.hash -> GsrsPasswordHasher.hash(String...) (line 27) -> hash(input, salt, iterations) (line 54), which calls JCA SecretKeyFactory 'PBKDF2WithHmacSHA512' generateSecret (1000 iterations). The hasher instance is configured at UserProfile.java:37. Legacy fallback Util.encrypt (SHA-1, Util.java:372) also exists on the path.", | |
| "status": "external", | |
| "nodeId": null | |
| }, | |
| { | |
| "role": "Pepper store", | |
| "symbol": "", | |
| "file": "", | |
| "lines": "", | |
| "notes": "No pepper on the path: acceptPassword (UserProfile.java:206) hashes only password + per-user salt (salt from LegacyTypeSalter, UserProfile.java:35, is not a pepper). No secret/pepper config found.", | |
| "status": "missing", | |
| "nodeId": null | |
| }, | |
| { | |
| "role": "Encrypter", | |
| "symbol": "", | |
| "file": "", | |
| "lines": "", | |
| "notes": "No encryption of the hash with a key on the verification path. Util.encrypt (gsrs-core/src/main/java/ix/utils/Util.java:372) is despite its name a salted SHA-1 hash, not encryption, so it is not an Encrypter.", | |
| "status": "missing", | |
| "nodeId": null | |
| }, | |
| { | |
| "role": "Comparator", | |
| "symbol": "acceptPassword", | |
| "file": "gsrs-core-entities/src/main/java/ix/core/models/UserProfile.java", | |
| "lines": "206", | |
| "notes": "The comparison is inline in the Verification manager acceptPassword: this.hashp.equals(hasher.hash(password, this.salt)) at UserProfile.java:211 (and legacy equals at line 216); result returned via setMatchesRepository. Same method as Verification manager; plain String.equals, not constant-time.", | |
| "status": "present", | |
| "nodeId": null | |
| }, | |
| { | |
| "role": "System", | |
| "symbol": "login", | |
| "file": "gsrs-spring-boot-autoconfigure/src/main/java/gsrs/controller/LoginController.java", | |
| "lines": "68", | |
| "notes": "After Enforcer doFilterInternal sets the authentication (LegacyAuthenticationFilter.java:255) and continues the chain (line 257), GET api/v1/whoami reaches LoginController.login (@PreAuthorize isAuthenticated), which creates the server session and session cookie and returns the user profile. LoginController is imported by GsrsLegacyAuthenticationSelector.java:28 alongside the security config.", | |
| "status": "present", | |
| "nodeId": null | |
| } | |
| ] | |
| } | |
Xet Storage Details
- Size:
- 4.9 kB
- Xet hash:
- 723e1039097a18c6cb588499a1900364d51e3c3bb748958e002eb95246d52877
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.