release(v2.7.3): tenant SQL scoping, spoof-proof rate limits, safe fraud demo, non-root Docker & full parity
This commit is contained in:
Vendored
+7
@@ -5,5 +5,12 @@ interface RateLimiterOptions {
|
||||
message?: string;
|
||||
name?: string;
|
||||
}
|
||||
/**
|
||||
* NEW-02 Fix: Spoof-resistant client IP resolution.
|
||||
* - Never trusts client-prepended leftmost X-Forwarded-For entries or private/loopback header spoofs.
|
||||
* - Only accepts CF-Connecting-IP when accompanied by CF-Ray AND when CF-Connecting-IP is a valid public IP.
|
||||
* - Otherwise relies on Express req.ip (with `trust proxy = 1`, which resolves the single trusted reverse-proxy hop).
|
||||
*/
|
||||
export declare function resolveRateLimitIp(req: Request): string;
|
||||
export declare function createRateLimiter(options: RateLimiterOptions): (req: Request, res: Response, next: NextFunction) => void;
|
||||
export {};
|
||||
|
||||
Reference in New Issue
Block a user