Buckets:

download
raw
5.42 kB
{
"role_mappings": [
{
"role": "Subject",
"status": "missing",
"symbol": "",
"file": "",
"lines": "",
"notes": "No in-repo client sends the session cookie to the traced enforcer: the clone contains no webapp frontend sources, and the Java clients (clients/) use OAuth/basic credentials, not sessions. The caller is outside the repo."
},
{
"role": "Authentication enforcer",
"status": "external",
"symbol": "doFilter",
"file": "authentication/src/main/java/io/camunda/authentication/config/WebSecurityConfig.java",
"lines": "61",
"notes": "WebSecurityConfig (active under the default 'consolidated-auth' profile, StandaloneCamunda.java:39) imports CamundaSecurityAutoConfiguration from the external camunda-security-library (CSL). CSL builds the Spring Security webapp/API SecurityFilterChains, and those filters intercept /v2/** requests and reject unauthenticated ones. The repo only supplies SPI beans such as SecurityPathPort (line 76)."
},
{
"role": "Verifier",
"status": "external",
"symbol": "loadDeferredContext",
"file": "authentication/src/main/java/io/camunda/authentication/config/WebSecurityConfig.java",
"lines": "61",
"notes": "Reached from the CSL filter chain configured at WebSecurityConfig.java:61. Spring Security's session-backed SecurityContextRepository (HttpSessionSecurityContextRepository) resolves the authenticated context from the session id cookie, and CSL's CamundaAuthenticationProvider.getCamundaAuthentication (called at ProcessInstanceController.java:204) turns it into the principal. Both are library code, not repo code."
},
{
"role": "Session manager",
"status": "external",
"symbol": "getSession",
"file": "authentication/src/main/java/io/camunda/authentication/config/WebSecurityConfig.java",
"lines": "61",
"notes": "By default (camunda.security.session.persistent.enabled unset), CSL keeps sessions in memory through the servlet HttpSession / Spring Session store, as documented at optimize/.../OptimizeCamundaSecurityConfig.java:55-57, so the store is external. Alternative (not default): with persistent sessions enabled, WebSessionRepositoryConfiguration (dist/.../WebSessionRepositoryConfiguration.java:139) wires the in-repo SessionStoreAdapter.get (authentication/src/main/java/io/camunda/authentication/config/spi/SessionStoreAdapter.java:67), which reads sessions from secondary storage."
},
{
"role": "Authorisation enforcer",
"status": "present",
"symbol": "ensureSingleAuthorizationAccessOrThrow",
"file": "search/search-client/src/main/java/io/camunda/search/clients/auth/AbstractResourceAccessController.java",
"lines": "179",
"notes": "ProcessInstanceServices.getByKey (service/.../ProcessInstanceServices.java:299) builds a SecurityContext that holds PROCESS_INSTANCE_READ_AUTHORIZATION. CamundaSearchClients.getProcessInstance/doGet (CamundaSearchClients.java:451,779,818) then calls AbstractResourceAccessController.doGet -> doPostFiltering (lines 42,147), which calls this method (line 170). The method asks the Decider (line 195) and throws ResourceAccessDeniedException on denial. The controllers are wired per physical tenant in dist/.../ResourceAccessControllerConfiguration.java."
},
{
"role": "Decider",
"status": "present",
"symbol": "hasResourceAccessByResourceId",
"file": "search/search-client-query-transformer/src/main/java/io/camunda/search/clients/auth/DefaultResourceAccessProvider.java",
"lines": "184",
"notes": "Reached from AbstractResourceAccessController.java:195 through hasResourceAccess (DefaultResourceAccessProvider.java:124, dispatch at line 133). It returns ResourceAccess.allowed or denied based on AuthorizationChecker.isAuthorized (line 189), which is CSL's io.camunda.security.core.authz.AuthorizationChecker and is external. The property-based branch hasResourceAccessByProperties shares this work."
},
{
"role": "Policy provider",
"status": "present",
"symbol": "hasAuthorizedScope",
"file": "security/security-services/src/main/java/io/camunda/security/impl/SearchAuthorizationScopeRepository.java",
"lines": "84",
"notes": "The AuthorizationChecker that DefaultResourceAccessProvider.forScopeRepository creates (DefaultResourceAccessProvider.java:53) is backed by this repository (ResourceAccessControllerConfiguration.resourceAccessProviderFor). For isAuthorized, the checker calls hasAuthorizedScope, which queries the stored authorization entities for the owner ids, resource type, permission and resource ids through AuthorizationReader. The dispatch from the library checker to this method is inferred from the port contract."
},
{
"role": "System",
"status": "present",
"symbol": "getByKey",
"file": "zeebe/gateway-rest/src/main/java/io/camunda/zeebe/gateway/rest/controller/ProcessInstanceController.java",
"lines": "193",
"notes": "This is the GET /v2/process-instances/{key} handler behind the CSL authentication filter chain. It calls ProcessInstanceServices.getByKey (line 203), and the result is returned only when the authorisation enforcer (AbstractResourceAccessController.java:179) does not throw. It is used as a representative protected action."
}
]
}

Xet Storage Details

Size:
5.42 kB
·
Xet hash:
aadf1206057590d7bd5cbd49d97f3fdb1121c34d270fe4cbf99dfda2807808a2

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