Buckets:

download
raw
3.79 kB
{
"role_mappings": [
{
"role": "Subject",
"status": "present",
"symbol": "_request",
"file": "hof/cli/api_client.py",
"lines": "43",
"notes": "In-repo CLI client _ApiClient._request attaches HTTP Basic credentials (admin_username/admin_password loaded by _load_auth at hof/cli/api_client.py:33) to every API call, e.g. list_functions -> GET /api/functions, which reaches the Enforcer verify_auth (hof/api/auth.py:162)."
},
{
"role": "Enforcer",
"status": "present",
"symbol": "verify_auth",
"file": "hof/api/auth.py",
"lines": "162",
"notes": "FastAPI dependency verify_auth, installed via Depends(verify_auth) on routes such as list_functions (hof/api/routes/functions.py:50); its HTTP Basic branch (lines 191-195) checks username/password and raises 401 otherwise. Credentials are also tried as JWT/API key first; auth is skipped entirely (anonymous) when no admin_password/api_key/jwt_secret_key is configured."
},
{
"role": "Verification manager",
"status": "present",
"symbol": "verify_auth",
"file": "hof/api/auth.py",
"lines": "162",
"notes": "Verification is done inline in the Enforcer verify_auth (same method): the Basic branch at hof/api/auth.py:191-195 reads _config.admin_username/admin_password and compares them with the submitted credentials. No separate helper exists."
},
{
"role": "Password store",
"status": "present",
"symbol": "admin_password",
"file": "hof/config.py",
"lines": "126",
"notes": "verify_auth (hof/api/auth.py:193) reads _config.admin_password, the Config attribute assigned at hof/config.py:126 from the project's hof.config.py (loaded via load_config, hof/config.py:189). Caveat: a single admin identity whose password is stored in plaintext, not as a hash; no retrieving method, so the field is cited."
},
{
"role": "Hasher",
"status": "missing",
"symbol": "",
"file": "",
"lines": "",
"notes": "The submitted password is compared directly against the plaintext config value in verify_auth (hof/api/auth.py:193); no hashing (hashlib/bcrypt/passlib) occurs on the verification path or anywhere in hof/."
},
{
"role": "Pepper store",
"status": "missing",
"symbol": "",
"file": "",
"lines": "",
"notes": "No pepper value exists; searched hof/api/auth.py and hof/config.py. jwt_secret_key is a JWT signing key for the separate bearer-token flow, not a password pepper."
},
{
"role": "Encrypter",
"status": "missing",
"symbol": "",
"file": "",
"lines": "",
"notes": "No encryption of a password hash with a pepper occurs on the path in verify_auth (hof/api/auth.py:191-195); the only crypto in auth.py is JWT encode/decode via python-jose for the token flow."
},
{
"role": "Comparator",
"status": "external",
"symbol": "compare_digest",
"file": "hof/api/auth.py",
"lines": "193",
"notes": "verify_auth (hof/api/auth.py:162) calls Python stdlib secrets.compare_digest (constant-time) to compare the submitted password with the plaintext stored admin_password at line 193 (username compared likewise at line 192)."
},
{
"role": "System",
"status": "present",
"symbol": "list_functions",
"file": "hof/api/routes/functions.py",
"lines": "50",
"notes": "Route handler GET /api/functions guarded by Depends(verify_auth) at hof/api/routes/functions.py:50; it runs only after verify_auth returns the authenticated username and is the endpoint the CLI client's list_functions calls. Many other routers (tables, flows, admin, agent) are guarded the same way."
}
]
}

Xet Storage Details

Size:
3.79 kB
·
Xet hash:
2917a1137368864f2ff7a48702b232de90a6bda39f975d8354d57adf79121d6a

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