Skip to content

Diagnose host clock skew when Connect proof verification fails #1989

Closed

Description

@currentbits

Add an actionable clock/time-sync diagnostic for a signed Connect heartbeat rejected because iat is in the future. Preserve signature, audience, purpose, expiry and identity validation; distinguish clock skew from network failure using existing error/status patterns. No clock changes or deployment.

Plan:

  • Trace proof verification and host status/error propagation.
  • Add focused regression and smallest diagnostic fix.
  • Run focused checks, annotate diff and report limitations.

Activity

  1. added
    plan:todo
    plan:doing
    and removed
    plan:todo
    on Nov 10, 2026
  2. currentbits commented on Nov 10, 2026

    @currentbits
    OwnerAuthor

    Trace complete. Work branch fix/connect-clock-skew is based on coder/cloud-connect at 513daa0 because this thread's initial checkout predates Connect. Added regression tests using real signed HTTP-200 future heartbeat responses; all three tests failed before the fix (link/startup, periodic retry, connector pre-launch). Host status now maps only jose's future-iat validation error to clock/NTP/timedatectl guidance and preserves existing fallback messages. Proof verification is unchanged. Focused verification and diff annotation in progress.

  3. added
    plan:done
    and removed
    plan:doing
    on Nov 10, 2026
  4. currentbits commented on Nov 10, 2026

    @currentbits
    OwnerAuthor

    Implemented on fix/connect-clock-skew, based on coder/cloud-connect 513daa0.

    Completed:

    • Traced future-iat failures through host link, startup, scheduled reconciliation and connector beforeStart.
    • Added clock/NTP/timedatectl status guidance using existing host.error, preserving network fallback messages and all proof/identity validation.
    • Added signed-response regression tests, expired-proof/network distinction, recovery and saved-identity checks; the 3 new host cases failed before the fix.
    • Added troubleshooting documentation and .solenta/review-itinerary/77b1e97b-0f29-4978-8d3d-3bf277320d27.json.

    Validation: node --import=./test/support/render.mjs --experimental-strip-types --test electron/test/cloud*.test.js — 63 passed, 0 failed. git diff --check clean. A first run without the repository loader failed the existing cloudWire TypeScript import; rerunning with the proper loader passed all tests. No full application suite or live Linux clock manipulation; no deployment.

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

    plan:done

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions