Remove rate limiting from StartHandshake (outbound) since DoS
protection only needs to limit inbound handshakes. This also avoids
returning nil from StartHandshake which historically always returned
non-nil. Update config comment to note openssl speed is single-core
and suggest scaling by routines.
Co-Authored-By: Claude <svc-devxp-claude@slack-corp.com>
Nebula is vulnerable to DoS via handshake flooding since each incoming
handshake performs expensive DH operations. This adds a token bucket
rate limiter to the handshake manager that caps both inbound and
outbound new handshakes per second. When the limit is reached, new
handshakes are silently dropped and counted via the
handshake_manager.rate_limited metric.
Configured via handshakes.max_rate (default 0 = unlimited).
Co-Authored-By: Claude <svc-devxp-claude@slack-corp.com>