You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add bounded admission and request quotas before enrollment database work #346
The public agent enrollment RPC has per-message and per-connection transport limits, but no application-level per-network quota or global concurrent-enrollment admission limit was found before database access. A well-formed invalid join token still opens a transaction and performs a lookup. Multiple HTTP/2 connections are not covered by the 32-stream limit of one connection.
This is an availability-hardening task based on code inspection. No flood, database exhaustion or service outage was demonstrated. Anonymous clients do not get arbitrary certificates: token recognition precedes CSR signing.
Existing limits include 64 KiB messages, a configured 30-second RPC maximum, 32 streams per HTTP/2 session, a 60-second idle session timeout, an 8 KiB CSR bound and bounded transaction timeouts.
Acceptance criteria
Reject malformed requests before opening a transaction.
Enforce per-IP/network quotas plus a global bounded concurrent-enrollment budget and bounded waiting, before database work.
Return a deliberate resource-exhausted response without exposing join-token state or logging credentials.
Verify rejected requests do not call the store, and multiple connections cannot bypass the global budget.
Test with bounded synthetic concurrency that legitimate enrollment and already-authenticated node streams remain usable.
Activity