]> Piment Noir Git Repositories - e-mobility-charging-stations-simulator.git/commit
fix(ui-server): prevent rate limiter memory leak
authorJérôme Benoit <jerome.benoit@sap.com>
Thu, 12 Feb 2026 18:04:30 +0000 (19:04 +0100)
committerJérôme Benoit <jerome.benoit@sap.com>
Thu, 12 Feb 2026 18:04:30 +0000 (19:04 +0100)
commitc24b8bda34512e4a2375644080e8061cfb71a2d1
tree7f5b1e0ad39754388ed6c559977df3e329d7c9d4
parent790a5d086f1bca4296cddcc0d79e9cd7f4cf37a1
fix(ui-server): prevent rate limiter memory leak

Add maxTrackedIps limit with lazy cleanup to bound memory usage.
Reject new IPs at capacity after cleanup (DoS protection).
src/charging-station/ui-server/AbstractUIServer.ts
src/charging-station/ui-server/UIServerSecurity.ts
tests/charging-station/ui-server/UIServerSecurity.test.ts