Buckets:
AnonymousSpottedToad/candidate_bucket / preliminary /mappings /java /limit_request_rate /codeheadsystems_hofmann-elimination.json
| { | |
| "role_mappings": [ | |
| { | |
| "role": "Entity", | |
| "status": "present", | |
| "symbol": "handleRequest", | |
| "file": "hofmann-client/src/main/java/com/codeheadsystems/hofmann/client/accessor/HofmannOprfAccessor.java", | |
| "lines": "117", | |
| "notes": "In-repo OPRF client: handleRequest in HofmannOprfAccessor POSTs the blinded request to the server's /oprf endpoint (via post, HofmannOprfAccessor.java:179-182), which is the traced Enforcer OprfResource.evaluate; it maps a 429 from the limiter to OprfRateLimitedException (line 230)." | |
| }, | |
| { | |
| "role": "Enforcer", | |
| "status": "present", | |
| "symbol": "evaluate", | |
| "file": "hofmann-server/src/main/java/com/codeheadsystems/hofmann/server/resource/OprfResource.java", | |
| "lines": "148", | |
| "notes": "JAX-RS POST /oprf handler evaluate in OprfResource (registered by HofmannBundle.java:365) resolves the client IP via extractClientIp/ClientIpResolver (line 152), calls rateLimiter.tryConsume(clientIp) at line 153 and rejects with HTTP 429 + Retry-After before any processing. The same check guards /oprf/verifiable and /oprf/partially-oblivious via enforceRateLimit (line 262)." | |
| }, | |
| { | |
| "role": "Limiter", | |
| "status": "present", | |
| "symbol": "tryConsume", | |
| "file": "hofmann-server/src/main/java/com/codeheadsystems/hofmann/server/ratelimit/FixedCapacityRateLimiter.java", | |
| "lines": "164", | |
| "notes": "Reached from OprfResource.java:153 -> FixedCapacityRateLimiter.tryConsume (line 100) -> TokenBucket.tryConsume (line 164), which lazily refills the bucket and returns true only if a token (>= 1.0) is available. FixedCapacityRateLimiter is the default wiring (HofmannBundle no-arg constructor, HofmannBundle.java:140, and Spring Boot HofmannAutoConfiguration.java:373); the 3-arg HofmannBundle constructor uses InMemoryRateLimiter.tryConsume (InMemoryRateLimiter.java:68) instead." | |
| }, | |
| { | |
| "role": "HistoryProvider", | |
| "status": "present", | |
| "symbol": "slotFor", | |
| "file": "hofmann-server/src/main/java/com/codeheadsystems/hofmann/server/ratelimit/FixedCapacityRateLimiter.java", | |
| "lines": "104", | |
| "notes": "Called by FixedCapacityRateLimiter.tryConsume (line 101) to fetch the entity's token-bucket record from the pre-allocated slots array (field at line 58), keyed by a seeded FNV hash of the client IP. The per-entity history (tokens, lastRefillNanos) lives in TokenBucket and is updated (consumed/refilled) inside TokenBucket.tryConsume (line 164)." | |
| }, | |
| { | |
| "role": "PolicyProvider", | |
| "status": "present", | |
| "symbol": "oprfRateLimitConfig", | |
| "file": "hofmann-server/src/main/java/com/codeheadsystems/hofmann/server/ratelimit/RateLimitConfigSupplier.java", | |
| "lines": "140", | |
| "notes": "DefaultRateLimitConfigSupplier.oprfRateLimitConfig returns RateLimitConfig(30 tokens, 30/60 per second refill); HofmannBundle.java:364 applies it when building the OPRF limiter, which stores maxTokens/refillPerSecond (FixedCapacityRateLimiter.java:84-85) and passes them to TokenBucket.tryConsume at line 101. Policy is fixed at construction rather than looked up per id." | |
| }, | |
| { | |
| "role": "System", | |
| "status": "present", | |
| "symbol": "process", | |
| "file": "hofmann-rfc/src/main/java/com/codeheadsystems/rfc/oprf/manager/OprfServerManager.java", | |
| "lines": "49", | |
| "notes": "After the limiter allows the request, OprfResource.evaluate calls oprfServerManager.process(request.blindedRequest()) at OprfResource.java:171; OprfServerManager.process performs the OPRF blinded evaluation and the result is returned to the client." | |
| } | |
| ] | |
| } | |
Xet Storage Details
- Size:
- 3.65 kB
- Xet hash:
- 7ce8429110c6cb5b7cafe51f81b6cabff92de2a82dbe20da953176169bb6ffa7
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.