Buckets:

download
raw
3.71 kB
{
"role_mappings": [
{
"role": "Entity",
"status": "missing",
"symbol": "",
"file": "",
"lines": "",
"notes": "The entity whose authentication attempts are counted is an external REST/Hot Rod client presenting credentials to the server realm; no in-repo client was traced as specifically targeting the brute-force-wrapped realm (tests excluded)."
},
{
"role": "Enforcer",
"status": "external",
"symbol": "wrap",
"file": "server/runtime/src/main/java/org/infinispan/server/configuration/security/RealmConfiguration.java",
"lines": "230",
"notes": "RealmConfiguration.init (line 160-163) calls addBruteForceProtection, which wraps each realm with Elytron's BruteForceRealmWrapper via wrap(ModifiableSecurityRealm.class) (line 230; line 232 for non-modifiable realms) and registers it in the SecurityDomain; the wrapper proxy intercepts every credential verification (reached from RestRequestHandler.channelRead0 -> ElytronHTTPAuthenticator.challenge, RestRequestHandler.java:183). Enabled by default (isBruteForceProtectionEnabled, line 205) for all realms except local/truststore/token/aggregate."
},
{
"role": "Limiter",
"status": "external",
"symbol": "verifyEvidence",
"file": "server/runtime/src/main/java/org/infinispan/server/configuration/security/RealmConfiguration.java",
"lines": "225",
"notes": "Inside Elytron BruteForceRealmWrapper, the wrapped RealmIdentity.verifyEvidence rejects the attempt once the identity exceeded maxFailedAttempts and is within the lockout interval; the repo never calls it directly, only configures it at setMaxFailedAttempts (line 225) in addBruteForceProtection. Library internals not available locally for line-level verification."
},
{
"role": "HistoryProvider",
"status": "external",
"symbol": "setFailureSessionTimeout",
"file": "server/runtime/src/main/java/org/infinispan/server/configuration/security/RealmConfiguration.java",
"lines": "227",
"notes": "The per-identity failed-attempt history (failure sessions) is kept internally by Elytron BruteForceRealmWrapper; the repo only configures its retention via setFailureSessionTimeout (line 227) and setMaxCachedSessions (line 228) in addBruteForceProtection, plus the cleanup executor from getBruteForceExecutor (line 236). No library method name is visible in the repo, so the configuring call is cited."
},
{
"role": "PolicyProvider",
"status": "present",
"symbol": "addBruteForceProtection",
"file": "server/runtime/src/main/java/org/infinispan/server/configuration/security/RealmConfiguration.java",
"lines": "220",
"notes": "Called from RealmConfiguration.init line 161; resolves the per-realm policy from system properties infinispan.server.realm.<name>.brute-force.max-failed-attempts / lockout-interval / session-timeout / max-cached-sessions (keys at lines 44-47, -1 = Elytron defaults) and hands it to the wrapper. isBruteForceProtectionEnabled (line 205) decides per realm whether the policy applies."
},
{
"role": "System",
"status": "present",
"symbol": "handleRestRequest",
"file": "server/rest/src/main/java/org/infinispan/rest/RestRequestHandler.java",
"lines": "210",
"notes": "After ElytronHTTPAuthenticator.challenge (authenticated against the brute-force-wrapped realm) succeeds, RestRequestHandler.channelRead0 calls handleRestRequest (line 190), which dispatches to the REST resource; on failure/lockout an error response is sent instead (lines 193-201). Hot Rod SASL authentication uses the same security domain."
}
]
}

Xet Storage Details

Size:
3.71 kB
·
Xet hash:
f8f0232937c75aafd91890fdf8afbc66d17b49cb3b8dea92825773dafafe4f0c

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