mirror of
https://github.com/gadgethd/ukmesh.git
synced 2026-09-12 10:05:34 +00:00
- Enforce OWNER_COOKIE_SECRET env var — throw on startup if unset rather than falling back to a weak derived secret - Fix HTTPS detection to use exact string match instead of .includes() - Cap and validate MQTT login credentials (32 char max, username format regex) - Validate packetHash query param as hex before hitting the path resolver - Validate node ID path params as 64-char hex in /nodes/:id/links and /nodes/:id/history - Bound viableLinksCache to 50 entries with oldest-first eviction - Bound countedAdvertHashes to 10,000 entries with oldest-first eviction Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>