Skip to content

Investigate Counter-Sign v0.2 interoperability for desktop-approved mTLS #4

Open

Description

@sodre

Can one approval in the desktop Companion produce both a Counter-Sign v0.2 receipt that the upstream software verifies and a bounded grant that the ZeroAE Broker can enforce for mTLS?

Counter-Sign Labs defines an agent-signed Intent and a portable receipt for the decision. Our user also chooses a particular installed certificate and an access duration during approval. The v0.2 schemas reject unknown fields. The Intent timeout limits how long the user can take to answer. Our grant expiry limits how long the job may use the certificate after approval. The investigation should preserve both meanings. Upstream spec · Upstream schemas · ZeroAE architecture

Prototype one approval

  • In the existing demo, have the authenticated Integrator create a signed Intent on behalf of stock curl for its current user, Context, Workload and exact destination site.test:9444. Require explicit approval from the paired Companion and rejection on timeout. Notifications carry only an opaque ID.
  • Show two eligible, identically named native identities. Select the second certificate and approve ten minutes in one action. Specify who signs the receipt and how the verifier trusts that signer. Distinguish the approval credential from the website client key, which remains in its native provider and signs only TLS handshakes.
  • Test a separately signed mTLS grant that binds the exact signed Intent and receipt to the authenticated pairing, user, Context, Workload generation, approved host, selected leaf SHA-256 fingerprint and absolute expiry. Document how the Broker verifies that binding and prevents a second activation. Keep the upstream v0.2 wire objects schema-valid.
  • Verify the receipt using upstream software and the intended trust anchor. Use the packaged Companion and ordinary curl through the sidecar. Compare the selected fingerprint with the certificate observed by the mTLS site and record the request count.

Try to disprove the binding

  • Change the host, user, Context, Workload generation, fingerprint or expiry independently. Swap receipts between two valid Intents. Each mismatch must fail before a website signature or protected request is issued.
  • Let one Intent time out and deny another. Neither produces a usable grant. For an approved Intent, exercise the original receipt after grant expiry and after recorded revocation. The receipt still verifies as historical evidence, while fresh use is denied and established traffic ends within the existing lease rules.
  • Quit the approving Companion mid-grant and try a fresh handshake. It must require that desktop to return. A portable receipt alone cannot perform the native TLS signature.

Decision to record

Post the prototype revision, upstream version, verifier invocation, redacted example artifacts, and observed results. Recommend one of three outcomes: adopt a profile over unchanged v0.2, propose a minimal upstream extension for approver-selected values, or keep the protocols independent. Explain the trust and compatibility tradeoffs. If a change is needed, draft the question for upstream review here first.

This investigation can run alongside #3. Its output is a compatibility decision and reproducible evidence. A product rename, production protocol migration, registry publication and contacting upstream are separate decisions.

Activity

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions