Buckets:

download
raw
2.77 kB
{
"role_mappings": [
{
"role": "Subject",
"status": "missing",
"symbol": "",
"file": "",
"lines": "",
"notes": "No in-repo client sends the Bearer token; callers are external HTTP clients (only tests and docs reference tokens). The cookiecutter app exposes only server code."
},
{
"role": "Enforcer",
"status": "missing",
"symbol": "",
"file": "",
"lines": "",
"notes": "No wired production enforcer: the library ships no middleware/dependency that checks incoming tokens. The only lookalike is dispatch in AuthenticationMiddleware of the cookiecutter template (fastapi_basekit/templates/project/{{cookiecutter.project_slug}}/app/middleware/auth.py:55, plus guard get_dependency_service at fastapi_basekit/templates/project/{{cookiecutter.project_slug}}/app/services/dependency.py:18), which is scaffolding/sample code and not a candidate (section 6)."
},
{
"role": "Verifier",
"status": "present",
"symbol": "decode_token",
"file": "fastapi_basekit/servicios/thrid/jwt.py",
"lines": "84",
"notes": "JWTService.decode_token in the library verifies signature/expiry via PyJWT jwt.decode, returns TokenSchema with sub, and raises JWTAuthenticationException on expired/invalid tokens. No wired in-repo enforcer calls it; only the cookiecutter template middleware does (fastapi_basekit/templates/project/{{cookiecutter.project_slug}}/app/middleware/auth.py:62)."
},
{
"role": "Key manager",
"status": "present",
"symbol": "__init__",
"file": "fastapi_basekit/servicios/thrid/jwt.py",
"lines": "32",
"notes": "JWTService.__init__ (used by Verifier decode_token at jwt.py:88) loads the HMAC secret from env JWT_SECRET (refusing to start without it unless JWT_ALLOW_INSECURE_DEV_SECRET is set) and the algorithm (default HS256) into self.JWT_SECRET."
},
{
"role": "Cryptographer",
"status": "external",
"symbol": "decode",
"file": "fastapi_basekit/servicios/thrid/jwt.py",
"lines": "86",
"notes": "Verifier decode_token calls PyJWT jwt.decode(token, JWT_SECRET, algorithms=[JWT_ALGORITHM]) at line 86 (import at line 5), which checks the HS256 MAC and exp. Tokens are generated with jwt.encode in create_token (line 78)."
},
{
"role": "System",
"status": "missing",
"symbol": "",
"file": "",
"lines": "",
"notes": "Library repo with no protected business handler of its own (rule 6.1.7). The only handlers wired to the JWT flow, e.g. me in fastapi_basekit/templates/project/{{cookiecutter.project_slug}}/app/api/v1/endpoints/user/user.py:57, are cookiecutter template code, which is not a candidate."
}
]
}

Xet Storage Details

Size:
2.77 kB
·
Xet hash:
17ea3b7eecf9f5fc5e37464bb5ef805258e8bd361b3ed3d085a61897754a95c2

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