Buckets:
AnonymousSpottedToad/candidate_bucket / preliminary /mappings /python /authentication_pwd /xinetzone_tao.json
| { | |
| "role_mappings": [ | |
| { | |
| "role": "Subject", | |
| "status": "missing", | |
| "symbol": "", | |
| "file": "", | |
| "lines": "", | |
| "notes": "No in-repo client posts username/password to /api/v1/auth/token; ConfigCenterClient in apps/chaos/old/agent-services/chaos/src/taolib/testing/config_center/client.py:24 only sends a Bearer token. Caller is outside the repo." | |
| }, | |
| { | |
| "role": "Enforcer", | |
| "status": "present", | |
| "symbol": "login", | |
| "file": "apps/chaos/old/agent-services/chaos/src/taolib/testing/config_center/server/api/auth.py", | |
| "lines": "92", | |
| "notes": "FastAPI route POST /api/v1/auth/token (router registered in server/api/router.py:21, app.py:147) takes OAuth2PasswordRequestForm and raises 401 at auth.py:100 when verification fails. The handler is also the Verification manager (inline logic)." | |
| }, | |
| { | |
| "role": "Verification manager", | |
| "status": "present", | |
| "symbol": "login", | |
| "file": "apps/chaos/old/agent-services/chaos/src/taolib/testing/config_center/server/api/auth.py", | |
| "lines": "92", | |
| "notes": "Same method as the Enforcer: login fetches the user via find_by_username (auth.py:98) and calls bcrypt.verify inline (auth.py:99). UserRepository.verify_password (repository/user_repo.py:91) does the same but is not called by login." | |
| }, | |
| { | |
| "role": "Password store", | |
| "status": "present", | |
| "symbol": "find_by_username", | |
| "file": "apps/chaos/old/agent-services/chaos/src/taolib/testing/config_center/repository/user_repo.py", | |
| "lines": "23", | |
| "notes": "Called from login at server/api/auth.py:98; queries the MongoDB users collection and returns UserDocument with password_hash (models/user.py:136, bcrypt hash written at user_repo.py:80)." | |
| }, | |
| { | |
| "role": "Hasher", | |
| "status": "external", | |
| "symbol": "verify", | |
| "file": "apps/chaos/old/agent-services/chaos/src/taolib/testing/config_center/server/api/auth.py", | |
| "lines": "99", | |
| "notes": "passlib.hash.bcrypt.verify (imported at auth.py:13) recomputes the bcrypt hash with the stored salt; one call covers both Hasher and Comparator." | |
| }, | |
| { | |
| "role": "Pepper store", | |
| "status": "missing", | |
| "symbol": "", | |
| "file": "", | |
| "lines": "", | |
| "notes": "No pepper on the login path; only the bcrypt salt embedded in password_hash. Searched config_center (server/config.py, repository, auth) for pepper/secret/hmac; jwt_secret is only for JWT signing." | |
| }, | |
| { | |
| "role": "Encrypter", | |
| "status": "missing", | |
| "symbol": "", | |
| "file": "", | |
| "lines": "", | |
| "notes": "The bcrypt hash is not encrypted/HMACed with any key at auth.py:99 or user_repo.py:80; no encryption step on the verification path." | |
| }, | |
| { | |
| "role": "Comparator", | |
| "status": "external", | |
| "symbol": "verify", | |
| "file": "apps/chaos/old/agent-services/chaos/src/taolib/testing/config_center/server/api/auth.py", | |
| "lines": "99", | |
| "notes": "passlib.hash.bcrypt.verify, called from login at auth.py:99, compares the recomputed hash with user.password_hash; same call as Hasher; the result drives the 401 branch." | |
| }, | |
| { | |
| "role": "System", | |
| "status": "present", | |
| "symbol": "create_access_token", | |
| "file": "apps/chaos/old/agent-services/chaos/src/taolib/testing/config_center/server/auth/jwt_handler.py", | |
| "lines": "14", | |
| "notes": "Success branch of login (auth.py:111) issues the JWT access token (plus create_refresh_token at auth.py:116) and returns them to the client." | |
| } | |
| ] | |
| } | |
Xet Storage Details
- Size:
- 3.59 kB
- Xet hash:
- 6d67df4b6cd3ffb657e88d37a652a9002b2128f98b1ab349b096590c771338ca
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.