Buckets:

download
raw
3.64 kB
{
"role_mappings": [
{
"role": "Subject",
"status": "missing",
"symbol": "",
"file": "",
"lines": "",
"notes": "No in-repo client posts credentials to /login (rag_server.py:1160); the referenced lightrag_webui frontend is not in the repo (rag_server.py:192), so the caller is outside the repo. Tests ignored."
},
{
"role": "Enforcer",
"status": "present",
"symbol": "login",
"file": "src/hybridrag/engine/api/rag_server.py",
"lines": "1161",
"notes": "POST /login route handler (registered at rag_server.py:1160 inside create_app) takes OAuth2PasswordRequestForm username/password and raises HTTP 401 at rag_server.py:1179 when the password does not match. When AUTH_ACCOUNTS is empty it issues a guest token without any check (rag_server.py:1162)."
},
{
"role": "Verification manager",
"status": "present",
"symbol": "login",
"file": "src/hybridrag/engine/api/rag_server.py",
"lines": "1161",
"notes": "Verification is inline in the Enforcer's login method (same method as Enforcer/Comparator): it looks up the stored password via auth_handler.accounts.get(username) at rag_server.py:1178 and compares it with the submitted password; no separate helper exists."
},
{
"role": "Password store",
"status": "present",
"symbol": "__init__",
"file": "src/hybridrag/engine/api/auth.py",
"lines": "30",
"notes": "Reached from login's auth_handler.accounts.get (rag_server.py:1178). AuthHandler.__init__ builds the in-memory accounts dict from the AUTH_ACCOUNTS env value (config.py:405) as user:password pairs (auth.py:36-40). Caveat: passwords are stored in plaintext, not hashed."
},
{
"role": "Hasher",
"status": "missing",
"symbol": "",
"file": "",
"lines": "",
"notes": "login (rag_server.py:1178) compares the submitted plaintext password directly with the plaintext value from AuthHandler.accounts; no hashing (bcrypt/hashlib/passlib) on the verification path. Only hashlib use is md5/sha256 for document ids (core/rag.py:127, ingestion/pipeline.py:447), unrelated."
},
{
"role": "Pepper store",
"status": "missing",
"symbol": "",
"file": "",
"lines": "",
"notes": "No pepper value is configured or read on the login path (rag_server.py:1161, auth.py:30). TOKEN_SECRET (config.py:406) is a JWT signing key, not a pepper."
},
{
"role": "Encrypter",
"status": "missing",
"symbol": "",
"file": "",
"lines": "",
"notes": "No encryption of a password hash with a pepper anywhere on the login path (rag_server.py:1161-1191); jwt.encode in create_token (auth.py:77) signs the issued token and is not an Encrypter."
},
{
"role": "Comparator",
"status": "present",
"symbol": "login",
"file": "src/hybridrag/engine/api/rag_server.py",
"lines": "1161",
"notes": "The comparison is inline in login (same method as Enforcer and Verification manager): `auth_handler.accounts.get(username) != form_data.password` at rag_server.py:1178, a plain non-constant-time string comparison of plaintext passwords."
},
{
"role": "System",
"status": "present",
"symbol": "create_token",
"file": "src/hybridrag/engine/api/auth.py",
"lines": "42",
"notes": "On successful comparison login's success branch calls auth_handler.create_token(username, role='user') at rag_server.py:1182, which issues a PyJWT-signed access token (auth.py:77) returned to the client."
}
]
}

Xet Storage Details

Size:
3.64 kB
·
Xet hash:
310fb5469410d7a4285060270e16d9981b937e55bdef5344347be807444ed804

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