Buckets:
AnonymousSpottedToad/candidate_bucket / preliminary /mappings /java /authentication_pwd /lockss_lockss-spring-bundle.json
| { | |
| "role_mappings": [ | |
| { | |
| "role": "Subject", | |
| "status": "missing", | |
| "symbol": "", | |
| "file": "", | |
| "lines": "", | |
| "notes": "No in-repo client sends HTTP Basic credentials to SpringAuthenticationFilter; callers are other LOCKSS services/users outside this repo. Only a test (src/test/.../TestSpringAuthenticationFilter.java) exercises it, which does not count." | |
| }, | |
| { | |
| "role": "Enforcer", | |
| "status": "present", | |
| "symbol": "doFilter", | |
| "file": "src/main/java/org/lockss/spring/auth/SpringAuthenticationFilter.java", | |
| "lines": "203", | |
| "notes": "doFilter in SpringAuthenticationFilter (registered via http.addFilterBefore(authFilter, BasicAuthenticationFilter.class) in SpringSecurityConfigurer.filterChain, SpringSecurityConfigurer.java:120) decodes the Basic Authorization header (line 334), looks up the account and calls check, returning 401 via sendUnauthenticated on failure and continuing the chain otherwise. Caveat: only active when org.lockss.restAuth.authenticationType=basic; default is 'none' (line 91), which grants a privileged principal without checking." | |
| }, | |
| { | |
| "role": "Verification manager", | |
| "status": "external", | |
| "symbol": "check", | |
| "file": "src/main/java/org/lockss/spring/auth/SpringAuthenticationFilter.java", | |
| "lines": "366", | |
| "notes": "Reached from Enforcer doFilter (SpringAuthenticationFilter.java:366): userAccount.check(credentials[1]) on org.lockss.account.UserAccount from the lockss-core library (not in this repo) verifies the supplied password against the account's stored hash. doFilter itself only gathers the inputs (header decode at line 334, account lookup at line 352)." | |
| }, | |
| { | |
| "role": "Password store", | |
| "status": "external", | |
| "symbol": "getUserOrNull", | |
| "file": "src/main/java/org/lockss/spring/auth/SpringAuthenticationFilter.java", | |
| "lines": "352", | |
| "notes": "Reached from doFilter: acctMgr.getUserOrNull(credentials[0]) on org.lockss.account.AccountManager (lockss-core library, obtained at line 310-312) returns the UserAccount holding the stored password hash; store logic lives entirely outside this repo." | |
| }, | |
| { | |
| "role": "Hasher", | |
| "status": "external", | |
| "symbol": "check", | |
| "file": "src/main/java/org/lockss/spring/auth/SpringAuthenticationFilter.java", | |
| "lines": "366", | |
| "notes": "One library call covers Verification manager, Hasher and Comparator: UserAccount.check (lockss-core) hashes the supplied password and compares it with the stored value, called from doFilter at SpringAuthenticationFilter.java:366. The concrete hash algorithm is configured inside lockss-core and not visible in this repo." | |
| }, | |
| { | |
| "role": "Pepper store", | |
| "status": "missing", | |
| "symbol": "", | |
| "file": "", | |
| "lines": "", | |
| "notes": "No pepper/secret key is retrieved anywhere on the doFilter -> getUserOrNull -> check path in this repo; searched src/main for pepper/secret/key usage in auth/ classes." | |
| }, | |
| { | |
| "role": "Encrypter", | |
| "status": "missing", | |
| "symbol": "", | |
| "file": "", | |
| "lines": "", | |
| "notes": "No encryption of the password hash with a pepper occurs in this repo on the traced path (doFilter at SpringAuthenticationFilter.java:203 only delegates to UserAccount.check); any hashing inside lockss-core is a hash, not an Encrypter." | |
| }, | |
| { | |
| "role": "Comparator", | |
| "status": "external", | |
| "symbol": "check", | |
| "file": "src/main/java/org/lockss/spring/auth/SpringAuthenticationFilter.java", | |
| "lines": "366", | |
| "notes": "Same call as Hasher/Verification manager: UserAccount.check (lockss-core) returns true/false for the password match; doFilter (SpringAuthenticationFilter.java:366) rejects with 401 when it returns false." | |
| }, | |
| { | |
| "role": "System", | |
| "status": "missing", | |
| "symbol": "", | |
| "file": "", | |
| "lines": "", | |
| "notes": "This repo is a shared Spring library bundle; after successful auth doFilter sets the SecurityContext and calls chain.doFilter (SpringAuthenticationFilter.java:392) to controllers in downstream LOCKSS services. The only in-repo controller, getStatus (SpringLockssBaseApiController.java:60, GET /status), is explicitly exempted from authentication by isStatusOrDocFetch (line 544), so it is not guarded." | |
| } | |
| ] | |
| } | |
Xet Storage Details
- Size:
- 4.39 kB
- Xet hash:
- 7ffb59f4b23fced60e784e67047075ea2d6380c6d94957c2edb971bee8a9a68a
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.