Buckets:

download
raw
3.83 kB
{
"role_mappings": [
{
"role": "Subject",
"status": "missing",
"symbol": "",
"file": "",
"lines": "",
"notes": "No in-repo client posts username/password to /auth/token (searched src for auth/token, generate_token, password fields); the web frontend is a separate project. The aiohttp forward in generate_token (src/murfey/server/api/auth.py:399) is server-to-server proxying to an optional auth_url, not a Subject."
},
{
"role": "Enforcer",
"status": "present",
"symbol": "generate_token",
"file": "src/murfey/server/api/auth.py",
"lines": "390",
"notes": "POST /auth/token handler (router included at src/murfey/server/main.py:73) receives OAuth2PasswordRequestForm, calls validate_user at auth.py:408 and raises HTTP 401 at auth.py:413 on failure. Default config auth_type='password' with empty auth_url selects this local branch; the alternative forwards credentials to a remote auth_url (auth.py:395-406)."
},
{
"role": "Verification manager",
"status": "present",
"symbol": "validate_user",
"file": "src/murfey/server/api/auth.py",
"lines": "350",
"notes": "Called by Enforcer generate_token at auth.py:408. Loads the MurfeyUser row by username (auth.py:353) and passes the plain password and stored hash to verify_password (auth.py:356); returns False if the user is missing."
},
{
"role": "Password store",
"status": "present",
"symbol": "exec",
"file": "src/murfey/server/api/auth.py",
"lines": "353",
"notes": "Reached from validate_user: SQLModel query select(User).where(User.username == username) at auth.py:353 against the repo-declared MurfeyUser table (src/murfey/util/db.py:10, field hashed_password at db.py:12). Hashes written by add_user CLI via hash_password (auth.py:64)."
},
{
"role": "Hasher",
"status": "external",
"symbol": "verify",
"file": "src/murfey/server/api/auth.py",
"lines": "347",
"notes": "verify_password (auth.py:346) is a thin wrapper called from validate_user at auth.py:356; passlib CryptContext.verify recomputes the bcrypt hash using the stored salt. Same call also serves as Comparator; CryptContext configured with schemes=['bcrypt'] at auth.py:52."
},
{
"role": "Pepper store",
"status": "missing",
"symbol": "",
"file": "",
"lines": "",
"notes": "No pepper on the verification path in validate_user/verify_password (auth.py:346-356); only bcrypt with its per-hash salt. The Fernet crypto_key (murfey_db.py:43) decrypts DB credentials, not a pepper."
},
{
"role": "Encrypter",
"status": "missing",
"symbol": "",
"file": "",
"lines": "",
"notes": "The bcrypt hash is not encrypted with any key before comparison (auth.py:347). Fernet in src/murfey/server/murfey_db.py:43 only decrypts the DB connection password, unrelated to user password verification."
},
{
"role": "Comparator",
"status": "external",
"symbol": "verify",
"file": "src/murfey/server/api/auth.py",
"lines": "347",
"notes": "Reached from validate_user via verify_password (auth.py:356 -> 347); passlib CryptContext.verify (bcrypt, configured at auth.py:52) both hashes and compares against user.hashed_password and returns bool. One call covers Hasher and Comparator."
},
{
"role": "System",
"status": "present",
"symbol": "create_access_token",
"file": "src/murfey/server/api/auth.py",
"lines": "359",
"notes": "On successful validation generate_token calls create_access_token at auth.py:409, which issues a jose JWT signed with SECRET_KEY (auth.py:380); the token is returned to the caller at auth.py:418."
}
]
}

Xet Storage Details

Size:
3.83 kB
·
Xet hash:
5a636b334bcaf33f4cdca947e32f56ecf848a1696472c5b0c38116d3e4f64de5

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