- Add RateLimitConfig for configuration management with YAML binding support. - Introduce RateLimitDecision to encapsulate the result of rate limit checks. - Implement RateLimitMetrics for OpenTelemetry metrics tracking. - Create RateLimitMiddleware for enforcing rate limits on incoming requests. - Develop RateLimitService to orchestrate instance and environment rate limit checks. - Add RateLimitServiceCollectionExtensions for dependency injection registration.
28 lines
713 B
JSON
28 lines
713 B
JSON
{
|
|
"$schema": "https://stellaops.io/schemas/sample-manifest.v1.json",
|
|
"sampleId": "gt-0012",
|
|
"version": "1.0.0",
|
|
"category": "unreachable",
|
|
"description": "Compile-time constant false condition - UNREACHABLE",
|
|
"language": "c",
|
|
"expectedResult": {
|
|
"reachable": false,
|
|
"tier": "imported",
|
|
"confidence": 1.0
|
|
},
|
|
"source": {
|
|
"files": ["main.c"],
|
|
"entrypoint": "main",
|
|
"sink": "gets",
|
|
"vulnerability": "CWE-120"
|
|
},
|
|
"callChain": null,
|
|
"annotations": {
|
|
"notes": "Sink is behind a constant false condition that will be optimized out",
|
|
"difficulty": "easy",
|
|
"reason": "constant_false"
|
|
},
|
|
"createdAt": "2025-12-17T00:00:00Z",
|
|
"createdBy": "corpus-team"
|
|
}
|