Buckets:

download
raw
4.84 kB
{
"role_mappings": [
{
"role": "Subject",
"status": "present",
"symbol": "applyCredentials",
"file": "clients/java/src/main/java/io/camunda/client/impl/basicauth/BasicAuthCredentialsProvider.java",
"lines": "33",
"notes": "In-repo Camunda Java client: BasicAuthCredentialsProvider builds 'Basic base64(user:pwd)' (line 29) and applyCredentials puts it in the Authorization header; for gRPC it is invoked from CamundaCallCredentials.java:53, reaching the Enforcer's Authorization metadata check (AuthenticationInterceptor.java:106)."
},
{
"role": "Enforcer",
"status": "present",
"symbol": "AuthenticationInterceptor",
"file": "zeebe/gateway-grpc/src/main/java/io/camunda/zeebe/gateway/interceptors/impl/AuthenticationInterceptor.java",
"lines": "42",
"notes": "gRPC ServerInterceptor registered on the gateway service in Gateway.applyInterceptors (Gateway.java:469). interceptCall (line 73) requires the Authorization header, calls handler.authenticate (line 120), closes the call with UNAUTHENTICATED on failure (deny, line 134) or forwards to the service via Contexts.interceptCall (line 129). Active when the API is protected (unprotected-api=false); handler chosen per tenant by PhysicalTenantHandlerFactory.java:90 for method BASIC (the default method)."
},
{
"role": "Verification manager",
"status": "present",
"symbol": "authenticate",
"file": "zeebe/gateway-grpc/src/main/java/io/camunda/zeebe/gateway/interceptors/impl/AuthenticationHandler.java",
"lines": "165",
"notes": "Reached from AuthenticationInterceptor.interceptCall (AuthenticationInterceptor.java:120). BasicAuth.authenticate decodes the Basic header into username/password, loads the user via loadUserByUsername (line 181, helper at 203) and checks the password via isPasswordValid (line 192, helper at 212), returning a Context with USERNAME or UNAUTHENTICATED status."
},
{
"role": "Password store",
"status": "present",
"symbol": "search",
"file": "service/src/main/java/io/camunda/service/UserServices.java",
"lines": "55",
"notes": "Called from BasicAuth.loadUserByUsername (AuthenticationHandler.java:207) with a username filter; UserServices.search delegates to userSearchClient.searchUsers (secondary storage ES/OS/RDBMS) returning UserEntity with the stored password hash. Hashes are written by UserServices via passwordEncoder.encode (UserServices.java:68)."
},
{
"role": "Hasher",
"status": "external",
"symbol": "createDelegatingPasswordEncoder",
"file": "dist/src/main/java/io/camunda/application/commons/CommonsModuleConfiguration.java",
"lines": "25",
"notes": "Spring Security DelegatingPasswordEncoder (bcrypt by default) created in the passwordEncoder bean and injected via Gateway into BasicAuth; the same passwordEncoder.matches call (AuthenticationHandler.java:213) re-hashes the supplied password with the stored salt and compares, so one call covers Hasher and Comparator."
},
{
"role": "Pepper store",
"status": "missing",
"symbol": "",
"file": "",
"lines": "",
"notes": "No pepper on the verification path: BasicAuth.authenticate only uses the salted bcrypt hash via PasswordEncoder.matches; grep for 'pepper' in production code finds nothing. The bcrypt salt is not a pepper."
},
{
"role": "Encrypter",
"status": "missing",
"symbol": "",
"file": "",
"lines": "",
"notes": "No encryption of the password hash with a key on the path (AuthenticationHandler.java:165-214, CommonsModuleConfiguration.java:25); only hashing via Spring's DelegatingPasswordEncoder."
},
{
"role": "Comparator",
"status": "external",
"symbol": "matches",
"file": "zeebe/gateway-grpc/src/main/java/io/camunda/zeebe/gateway/interceptors/impl/AuthenticationHandler.java",
"lines": "213",
"notes": "Called from BasicAuth.isPasswordValid (line 212), invoked by authenticate at line 192; Spring Security PasswordEncoder.matches (DelegatingPasswordEncoder -> BCryptPasswordEncoder) hashes the input with the stored salt and compares with the stored hash. Same call also covers the Hasher role."
},
{
"role": "System",
"status": "present",
"symbol": "GatewayGrpcService",
"file": "zeebe/gateway-grpc/src/main/java/io/camunda/zeebe/gateway/GatewayGrpcService.java",
"lines": "62",
"notes": "The gRPC gateway service wrapped by applyInterceptors (Gateway.java:222/270); after the Enforcer passes (AuthenticationInterceptor.java:129) requests reach its RPC handlers (e.g. createProcessInstance, line 102). Cited as class since many RPC methods are protected equally."
}
]
}

Xet Storage Details

Size:
4.84 kB
·
Xet hash:
09520f21cdb198fa626a27b36f99d2ecb5ed52cc1f4f2f8d1fe3aa0de5482c02

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