Buckets:
AnonymousSpottedToad/candidate_bucket / preliminary /mappings /java /limit_request_rate /cloudfoundry_uaa.json
| { | |
| "role_mappings": [ | |
| { | |
| "role": "Entity", | |
| "status": "missing", | |
| "symbol": "", | |
| "file": "", | |
| "lines": "", | |
| "notes": "The requesting entity is any external HTTP client (identified by caller IP or Authorization-credential id via CallerIdSupplierByTypeFactory); no in-repo client targets the RateLimitingFilter. Tests excluded." | |
| }, | |
| { | |
| "role": "Enforcer", | |
| "status": "present", | |
| "symbol": "doFilter", | |
| "file": "server/src/main/java/org/cloudfoundry/identity/uaa/ratelimiting/RateLimitingFilter.java", | |
| "lines": "110", | |
| "notes": "WithLimitingFilter.doFilter in RateLimitingFilter calls rateLimiter.checkRequest (line 127 via getLimiterWithLogging) and, if limiter.shouldLimit(), sends 429 (limitRequest, line 136) else forwards via filterChain.doFilter (line 122). Filter registered as bean in SpringServletXmlFiltersConfiguration.java:209 and inserted into the security chain at SpringServletXmlSecurityConfiguration.java:207; active only when a rate-limiting config file is present (RateLimiter.isEnabled, otherwise NoLimitingFilter)." | |
| }, | |
| { | |
| "role": "Limiter", | |
| "status": "present", | |
| "symbol": "shouldLimit", | |
| "file": "server/src/main/java/org/cloudfoundry/identity/uaa/ratelimiting/internal/common/InternalLimiter.java", | |
| "lines": "42", | |
| "notes": "Reached from Enforcer via RateLimiterImpl.checkRequest (RateLimiterImpl.java:29) -> LimiterManagerImpl.getLimiter (LimiterManagerImpl.java:46) -> LimiterImpl.from (LimiterImpl.java:52) -> InternalLimiter.shouldLimit. It recursively checks each window counter (requestsRemaining < 1 => limit) and decrements all on allow; LimiterImpl records the result returned to the filter." | |
| }, | |
| { | |
| "role": "HistoryProvider", | |
| "status": "present", | |
| "symbol": "get", | |
| "file": "server/src/main/java/org/cloudfoundry/identity/uaa/ratelimiting/internal/limitertracking/LimiterByCompoundKey.java", | |
| "lines": "33", | |
| "notes": "Called from LimiterManagerImpl.generateLimiterList (LimiterManagerImpl.java:85); keeps an in-memory map CompoundKey(caller id + path mapping) -> InternalLimiter holding the per-window requestsRemaining counter, creating a new window when expired. The update step is InternalLimiter.decrementRequestsRemaining (InternalLimiter.java:70) invoked from shouldLimit; ExpirationBuckets purges expired entries." | |
| }, | |
| { | |
| "role": "PolicyProvider", | |
| "status": "present", | |
| "symbol": "factoryMapFor", | |
| "file": "server/src/main/java/org/cloudfoundry/identity/uaa/ratelimiting/internal/limitertracking/InternalLimiterFactoriesSupplierImpl.java", | |
| "lines": "61", | |
| "notes": "Called from LimiterManagerImpl.generateLimiterList (LimiterManagerImpl.java:79); selects the applicable LimiterMappings (requests-per-window policies) by servlet path (getPathBasedLimiterMappings) and caller id type. Policies are loaded from the YAML rate-limit config by RateLimitingConfigInitializer/RateLimitingConfigMapperImpl and pushed via LimiterManagerImpl.update." | |
| }, | |
| { | |
| "role": "System", | |
| "status": "present", | |
| "symbol": "postAccessToken", | |
| "file": "server/src/main/java/org/cloudfoundry/identity/uaa/oauth/provider/endpoint/TokenEndpoint.java", | |
| "lines": "65", | |
| "notes": "The RateLimitingFilter guards all UAA paths and forwards allowed requests via filterChain.doFilter (RateLimitingFilter.java:122); the /oauth/token handler TokenEndpoint.postAccessToken (reached also via UaaTokenEndpoint.java:76) is cited as a representative protected handler. Any other controller behind the chain would equally qualify." | |
| } | |
| ] | |
| } | |
Xet Storage Details
- Size:
- 3.67 kB
- Xet hash:
- 1e3b0d81253a19bc50801a6e4195abae6dff74ffea09956b68d299e2a234ad99
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.