Skip to content

Add bounded admission and request quotas before enrollment database work #346

Closed

Description

@samuelmbabhazi

Problem

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.

Evidence and existing controls

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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions