Buckets:

download
raw
3.65 kB
{
"role_mappings": [
{
"role": "Subject",
"status": "missing",
"symbol": "",
"file": "",
"lines": "",
"notes": "Callers of /jobs are external machine clients; the only in-repo code sending Bearer tokens is boomerang-tests (BoomerangIntegrationTestBase) test support and a curl example in SampleApp javadoc, which do not count."
},
{
"role": "Authentication enforcer",
"status": "missing",
"symbol": "",
"file": "",
"lines": "",
"notes": "No session-id enforcement exists: BoomerangSecurityConfig.boomerangSecurityFilterChain (boomerang-starter/.../security/BoomerangSecurityConfig.java:32) sets SessionCreationPolicy.STATELESS (line 39) and installs BoomerangJwtFilter.doFilterInternal (BoomerangJwtFilter.java:40), which verifies a self-contained HS256 JWT, not an opaque session identifier; so the pattern's session-based authentication is absent."
},
{
"role": "Verifier",
"status": "missing",
"symbol": "",
"file": "",
"lines": "",
"notes": "No check that a token corresponds to an open session; the only verification is jjwt verifyWith/parseSignedClaims inside BoomerangJwtFilter.doFilterInternal (BoomerangJwtFilter.java:52-55), a stateless JWT signature check (verifiable-token pattern, not session-based)."
},
{
"role": "Session manager",
"status": "missing",
"symbol": "",
"file": "",
"lines": "",
"notes": "No session store: the security chain is explicitly STATELESS (BoomerangSecurityConfig.java:39) and no HttpSession/Spring Session/token repository exists; the principal comes from the JWT sub claim (BoomerangJwtFilter.java:58)."
},
{
"role": "Authorisation enforcer",
"status": "present",
"symbol": "getStatus",
"file": "boomerang-starter/src/main/java/io/github/boomerang/starter/controller/BoomerangController.java",
"lines": "136",
"notes": "Reached after the authenticated principal is put into the SecurityContext (BoomerangJwtFilter.java:66) and injected via @AuthenticationPrincipal; getStatus in BoomerangController refuses (404) jobs not owned by the caller. The decision is inline in the same method, so it is also the Decider."
},
{
"role": "Decider",
"status": "present",
"symbol": "getStatus",
"file": "boomerang-starter/src/main/java/io/github/boomerang/starter/controller/BoomerangController.java",
"lines": "136",
"notes": "Inline ownership decision in getStatus: `.filter(job -> callerId.equals(job.getOwnerId()))` at BoomerangController.java:139; same method as the Authorisation enforcer (no helper method). Other endpoints (failed-webhooks) have no authorisation check."
},
{
"role": "Policy provider",
"status": "present",
"symbol": "findById",
"file": "boomerang-redis/src/main/java/io/github/boomerang/redis/RedisBoomerangJobStore.java",
"lines": "76",
"notes": "Called by getStatus at BoomerangController.java:138 (jobStore.findById, bean wired in BoomerangAutoConfiguration.java:133); RedisBoomerangJobStore.findById loads the job record whose ownerId (written in enqueue, line 44) is the ownership policy."
},
{
"role": "System",
"status": "present",
"symbol": "toStatusView",
"file": "boomerang-core/src/main/java/io/github/boomerang/model/BoomerangJobRecord.java",
"lines": "48",
"notes": "After the ownership filter passes, getStatus calls job.toStatusView() (BoomerangController.java:140) to build the job status returned to the caller."
}
]
}

Xet Storage Details

Size:
3.65 kB
·
Xet hash:
17832f126ecb45c268fa36b275313ab40a92feee89a49cf27b78505b174a281f

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