Buckets:
AnonymousSpottedToad/candidate_bucket / preliminary /mappings /python /authentication_pwd /mvdbeek_pulsar-relay.json
| { | |
| "role_mappings": [ | |
| { | |
| "role": "Subject", | |
| "status": "present", | |
| "symbol": "authenticate", | |
| "file": "client/pulsar_relay_client/auth.py", | |
| "lines": "68", | |
| "notes": "In-repo client SDK: PasswordAuthenticator.authenticate posts username/password (grant_type=password) to {relay_url}/auth/login (auth.py:69-76), i.e. the traced Enforcer login in pulsar_relay/api/auth.py:51." | |
| }, | |
| { | |
| "role": "Enforcer", | |
| "status": "present", | |
| "symbol": "login", | |
| "file": "pulsar_relay/api/auth.py", | |
| "lines": "51", | |
| "notes": "FastAPI route POST /auth/login (router mounted at pulsar_relay/main.py:372) receives OAuth2PasswordRequestForm, looks up the user, calls verify_password (auth.py:82) and raises 401 on failure before issuing tokens. Same method also acts as Verification manager (verification logic is inline)." | |
| }, | |
| { | |
| "role": "Verification manager", | |
| "status": "present", | |
| "symbol": "login", | |
| "file": "pulsar_relay/api/auth.py", | |
| "lines": "51", | |
| "notes": "login itself collects inputs: fetches the stored hash via storage.get_user_by_username (auth.py:72) and passes plaintext+hash to verify_password (auth.py:82); same method as the Enforcer per tie-break rule 2. verify_password (pulsar_relay/auth/jwt.py:52) is only a thin wrapper to pwdlib." | |
| }, | |
| { | |
| "role": "Password store", | |
| "status": "present", | |
| "symbol": "get_user_by_username", | |
| "file": "pulsar_relay/auth/storage.py", | |
| "lines": "133", | |
| "notes": "Called from login at pulsar_relay/api/auth.py:72; InMemoryUserStorage.get_user_by_username returns the User with hashed_password. In-memory is the default backend (config.py storage_backend default 'memory', wired in main.py:137/176); alternative ValkeyUserStorage.get_user_by_username at storage.py:374." | |
| }, | |
| { | |
| "role": "Hasher", | |
| "status": "external", | |
| "symbol": "verify", | |
| "file": "pulsar_relay/auth/jwt.py", | |
| "lines": "62", | |
| "notes": "Reached from login (api/auth.py:82) via verify_password wrapper; pwdlib PasswordHash.verify (configured as PasswordHash.recommended(), i.e. Argon2, at jwt.py:17) rehashes the password with the stored salt. One call covers both Hasher and Comparator." | |
| }, | |
| { | |
| "role": "Pepper store", | |
| "status": "missing", | |
| "symbol": "", | |
| "file": "", | |
| "lines": "", | |
| "notes": "No pepper/secret is applied to password hashes; searched pulsar_relay/auth/jwt.py, storage.py and config for pepper. jwt_secret_key is only for JWT signing, not a pepper." | |
| }, | |
| { | |
| "role": "Encrypter", | |
| "status": "missing", | |
| "symbol": "", | |
| "file": "", | |
| "lines": "", | |
| "notes": "The Argon2 hash from pwdlib is not encrypted/HMACed with any key on the verification path (verify_password jwt.py:52-62)." | |
| }, | |
| { | |
| "role": "Comparator", | |
| "status": "external", | |
| "symbol": "verify", | |
| "file": "pulsar_relay/auth/jwt.py", | |
| "lines": "62", | |
| "notes": "Same pwdlib PasswordHash.verify call as Hasher (configured at jwt.py:17), reached from login at api/auth.py:82 via verify_password; it compares the recomputed Argon2 hash with the stored one and returns bool." | |
| }, | |
| { | |
| "role": "System", | |
| "status": "present", | |
| "symbol": "create_access_token", | |
| "file": "pulsar_relay/auth/jwt.py", | |
| "lines": "65", | |
| "notes": "Success branch of login (api/auth.py:97) issues the JWT access token via create_access_token, plus a refresh token via refresh_storage.create (auth.py:99), returned as TokenResponse." | |
| } | |
| ] | |
| } | |
Xet Storage Details
- Size:
- 3.61 kB
- Xet hash:
- bd6b6e130c16e607364a9a77d0c7b6fed07249b78fc05e16ef23d7591a81c121
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.