Buckets:

download
raw
4.13 kB
{
"role_mappings": [
{
"role": "Subject",
"status": "missing",
"symbol": "",
"file": "",
"lines": "",
"notes": "No in-repo client (UI/SDK/CLI) sends credentials to POST /api/v1/identity/auth/login; the caller is outside the repo. Searched all modules for .js/.ts/.html and client code."
},
{
"role": "Enforcer",
"status": "present",
"symbol": "login",
"file": "identityservice/src/main/java/com/etiya/identityservice/controller/AuthController.java",
"lines": "23",
"notes": "Anchor: POST /api/v1/identity/auth/login route handler; forwards LoginRequest (email, password) to AuthService.login at AuthController.java:24 and only returns a token when that call does not throw. SecurityFilterChain permits all requests (SecurityConfiguration.java:53), so the login endpoint itself is the enforcement point."
},
{
"role": "Verification manager",
"status": "present",
"symbol": "login",
"file": "identityservice/src/main/java/com/etiya/identityservice/service/concretes/AuthServiceImpl.java",
"lines": "24",
"notes": "Reached from Enforcer AuthController.java:24. Loads the user via userService.loadUserByUsername (line 25), calls passwordEncoder.matches (line 26) and throws RuntimeException on mismatch (line 28)."
},
{
"role": "Password store",
"status": "present",
"symbol": "findByEmailIgnoreCase",
"file": "identityservice/src/main/java/com/etiya/identityservice/repository/UserRepository.java",
"lines": "12",
"notes": "Verification manager calls userService.loadUserByUsername (AuthServiceImpl.java:25 -> UserServiceImpl.java:60), which calls this Spring Data JPA query (UserServiceImpl.java:61) returning the User entity whose password field holds the bcrypt hash (set via passwordEncoder.encode at registration, AuthServiceImpl.java:40)."
},
{
"role": "Hasher",
"status": "external",
"symbol": "BCryptPasswordEncoder",
"file": "identityservice/src/main/java/com/etiya/identityservice/core/configuration/SecurityConfiguration.java",
"lines": "24",
"notes": "Spring Security BCryptPasswordEncoder instantiated in the passwordEncoder bean (SecurityConfiguration.java:23-24) and injected into AuthServiceImpl; the single matches call at AuthServiceImpl.java:26 both hashes and compares. The duplicate bean in core BaseSecurityConfiguration.java:12 is not component-scanned by identityservice."
},
{
"role": "Pepper store",
"status": "missing",
"symbol": "",
"file": "",
"lines": "",
"notes": "No pepper on the login path; only bcrypt with its per-hash salt. Grepped for pepper/secret usage in identityservice and core; the JWT SECRET_KEY in BaseJwtService is for token signing, not a pepper."
},
{
"role": "Encrypter",
"status": "missing",
"symbol": "",
"file": "",
"lines": "",
"notes": "No encryption of the password hash on the verification path (AuthServiceImpl.login only calls bcrypt matches). No Cipher/HMAC over passwords found in the repo."
},
{
"role": "Comparator",
"status": "external",
"symbol": "matches",
"file": "identityservice/src/main/java/com/etiya/identityservice/service/concretes/AuthServiceImpl.java",
"lines": "26",
"notes": "Verification manager AuthServiceImpl.login calls Spring Security PasswordEncoder.matches (BCryptPasswordEncoder) with the raw and stored password at line 26; the same call also performs the hashing (Hasher). Result drives the reject at line 28."
},
{
"role": "System",
"status": "present",
"symbol": "generateToken",
"file": "core/src/main/java/io/github/sabaurgup/security/BaseJwtService.java",
"lines": "23",
"notes": "On successful verification AuthServiceImpl.login calls baseJwtService.generateToken(user.getUsername()) (AuthServiceImpl.java:30) to issue a signed JWT returned in TokenResponse; the BaseJwtService bean is declared in SecurityConfiguration.java:28."
}
]
}

Xet Storage Details

Size:
4.13 kB
·
Xet hash:
44678e5bd462d7b4d57bb6146f7a3a686f68590017d4dc1802bf0fa0c82490fe

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