Buckets:

download
raw
3.09 kB
{
"role_mappings": [
{
"role": "Subject",
"status": "missing",
"symbol": "",
"file": "",
"lines": "",
"notes": "No in-repo client sends a Bearer JWT to /api/gx/**; searched Java/JS for Authorization/Bearer usage (only the filter and GxFileDownloadController read the header; GxDocumentExplorer only builds the permitAll shared-document link). The caller is outside the repo."
},
{
"role": "Enforcer",
"status": "present",
"symbol": "doFilterInternal",
"file": "gx/gx-core/src/main/java/io/graphenee/security/GxJwtRequestFilter.java",
"lines": "31",
"notes": "doFilterInternal in GxJwtRequestFilter (OncePerRequestFilter) reads the 'Authorization: Bearer' header, calls GxJwtService.extractUsername (line 42) and validateToken (line 53), sends 403 on failure, and sets the SecurityContext. Registered via addFilterBefore in securityFilterChain (GrapheneeSecurityConfiguration.java:52), which requires authentication for /api/gx/**."
},
{
"role": "Verifier",
"status": "present",
"symbol": "validateToken",
"file": "gx/gx-core/src/main/java/io/graphenee/security/GxJwtService.java",
"lines": "51",
"notes": "Reached from doFilterInternal (GxJwtRequestFilter.java:53). validateToken in GxJwtService re-parses the token via extractUsername -> extractClaim -> extractAllClaims (signature check) and checks subject match and expiry; extractUsername is also called directly by the Enforcer at line 42."
},
{
"role": "Key manager",
"status": "present",
"symbol": "SECRET_KEY",
"file": "gx/gx-core/src/main/java/io/graphenee/security/GxJwtService.java",
"lines": "17",
"notes": "Used by extractAllClaims (GxJwtService.java:40) on the Verifier path via setSigningKey; no retrieving method exists, so the static field is cited. It is a random HS256 key generated per JVM start with Keys.secretKeyFor (tokens do not survive restarts; also used by generateToken at line 25)."
},
{
"role": "Cryptographer",
"status": "external",
"symbol": "parseClaimsJws",
"file": "gx/gx-core/src/main/java/io/graphenee/security/GxJwtService.java",
"lines": "40",
"notes": "extractAllClaims (reached from validateToken/extractUsername) calls jjwt Jwts.parserBuilder().setSigningKey(SECRET_KEY).build().parseClaimsJws(token), which verifies the HS256 MAC (and exp); signing side uses jjwt signWith at line 25."
},
{
"role": "System",
"status": "present",
"symbol": "downloadAttachment",
"file": "gx/gx-core/src/main/java/io/graphenee/documents/controller/GxFileDownloadController.java",
"lines": "49",
"notes": "GET /api/gx/dms/v1/document handler in GxFileDownloadController, protected by .requestMatchers(\"/api/gx/**\").authenticated() (GrapheneeSecurityConfiguration.java:49) after doFilterInternal sets the authentication; streams the requested document. /api/gx/authenticate and the shared-document endpoint are permitAll and thus not System."
}
]
}

Xet Storage Details

Size:
3.09 kB
·
Xet hash:
01ca890cb29a49c7fbdebca01d4ab66ec4de4a1978f0e82cf23f467d9d08fe09

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