Skip to content

Bound ExecStream opening time and revalidate credentials before joining #478

Done

Description

@samuelmbabhazi

Hardening opportunity

An authenticated agent can open an ExecStream and delay its first application frame. relayExecStream awaits that frame before starting periodic credential revalidation or joining an exec session. Add an explicit opening deadline and revalidate before joining.

Priority: P2 hardening, from the 2026-11-25 audit of main 1295e534d7a1c3cd0a492449de8806aa532a4924. Related feature: #232.

Evidence and limits

  • The initial await happens before registry.joinAgent.
  • The periodic credential check is installed only afterward.
  • A bounded fake-timer unit probe left the first frame pending for 60 seconds and observed neither completion nor a stillValid call in this function.

The gateway already authenticates the initial node certificate and imposes transport limits, including 32 concurrent HTTP/2 streams per connection, a 60-second session idle timeout and a maximum RPC timeout. An active shared connection is distinct from a silent individual RPC. This finding does not establish anonymous access, an unbounded connection count or a demonstrated server outage.

Acceptance criteria

  • A stream that does not send a valid open frame within a short documented deadline ends and releases its resources.
  • Cancellation also interrupts the opening wait.
  • Node credentials/lease are revalidated before joining the named exec session; revocation during the wait is rejected.
  • Tests cover no first frame, delayed first frame after revocation, transport cancellation and the normal opening path.
  • Keep existing ownership, organization and one-join checks intact.

Activity

  1. added
    enhancement
    priority:P2
    on Nov 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementpriority:P2securitytrack:control-plane

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions