Skip to content

Verify the original Countersign design against the implementation (independent UAT) #3

Open

Description

@sodre

Can a user authorize a remote job to use an installed client certificate, tell exactly what they authorized, and end that access within the promised bounds? This issue is the independent acceptance record for the original design. All checks start untested. A checked box means the verifier has recorded passing evidence for every assertion on that line.

Requirements baseline. Use the pre-implementation design at 9d507a1. It includes the owner's multiple-certificate selection clarification. Its acceptance table defines pass conditions. Prototype results and later implementation notes do not count as product UAT.

Candidate. Start with 3124ce7, the head of the documentation stack at issue creation, which includes the implementation from #1 and the Companion changes in #2. If testing a later merge, record its full SHA and the artifact hashes.

Instructions for the verifying agent

  1. Run the stock-curl sidecar journey first with the packaged Companion, a separate Workload principal, a site requiring client authentication, and disposable installed identities. Record the chosen and observed fingerprints and the upstream HTTP request count. A screenshot of approval alone covers only the desktop interaction.
  2. For isolation and concurrency, provision two Integrators, two users, two Contexts for one user, two paired desktops, and at least two eligible certificates with the same name. Reuse hostnames, IDs or certificates where the story calls for it. Use instruments at the site, both Gateway legs, and the native signing boundary to distinguish a denied request from a signature or traffic that already escaped.
  3. Run the platform cases separately on Windows, macOS and Linux, recording processor and provider. For a physical-token or live-site claim, use evidence from that environment. Use a local ACM-PCA-compatible fixture for the in-scope shared issuer tests. Live issuer, real-site, production shared-deployment and signed-release qualification are separate from the v1 fixture results.
  4. For each story, first identify the implementation entry point, then run the observable check. If a story contains multiple cases, record each case or split it into result rows under the same ID. Existing CI is evidence only where its revision, artifact, assertions and environment match. Keep the verification run read-only with respect to product code. File implementation gaps as follow-ups so the original observation survives a later fix.

Post results in an issue comment using this format. Record PASS / FAIL / BLOCKED / NOT RUN per case. A missing product path is a gap. A missing test environment is blocked. Record partial coverage explicitly and leave the parent box open.

Story / case Result Candidate SHA, artifact SHA-256 Mode, OS/arch, provider/version, client, site/trust Entry point or test, action and expected → observed Evidence or gap issue
Story ID + variant NOT RUN

For timing claims attach monotonic timestamps for the authorization decision, lease request send, last admitted traffic and actual socket closure on each leg. Include load, clock uncertainty and the disposition of pending signatures. Redact private keys, credentials, account data and live subscription endpoints. Close the verification issue only after every story has a recorded disposition and the summary lists failures, blocked rows, untested combinations and linked gaps.

Treat the spec's proposed thresholds and platforms as acceptance targets and note any documented owner-approved deviation separately. Client-side CA name-constraint enforcement belongs to the client. Verify Countersign's DER encoding, exact-host issuance, and Gateway policy directly. Use disposable environments for stop, restore, expiry and failure scenarios. The release checks can inspect workflows and existing artifacts without creating a tag, deploying a service, publishing a package or acquiring signing certificates.

People, fixtures and evidence

Use independent Integrators, distinct authenticated users and Workload principals, two Contexts for one user, multiple paired devices, colliding opaque IDs across Integrators, and exact and overlapping wildcard destinations. A controlled HTTPS site must authenticate clients against its own CA and record the presented certificate fingerprint and request count. Include a controlled DNS service, trust and revocation evidence with known deadlines, disposable installed native identities, an observable native signing provider, a slow HTTP peer, and controls for delivery loss, storage unavailability, clock/suspend, provider block, worker failure and delayed issuance. Exercise both modes with separate parent/worker processes. Run the packaged desktop in a real user session whenever the claim concerns installed behavior. These are means of observing the specified outcomes. Equivalent fixtures are valid. L20–43 · L79–92 · L128–152 · L194–206

Workload and Integrator

  • UAT-01 · As a Workload owner, I can use stock curl with a selected installed identity.

    • Run the local example and CI flow using the env helper, a read-only public proxy CA, a separately installed disposable identity, the packaged Electron main process/production addon and a real native provider.
    • Before approval the protected site receives no HTTP request. Choose the last of two eligible certificates, then repeat with three including duplicate names.
    • In each run the site verifies TLS client proof, observes the chosen SHA-256 fingerprint and receives exactly one request. The job receives the expected site response.
    • Check downstream proxy TLS, separate upstream mTLS, and control-only Broker/Companion communication.
    • Spec L5–9 · L24–43 · L184 · L198
  • UAT-02 · As an Integrator, I can use my own accounts and keep every operation owner-scoped.

    • Operate independent Broker/Gateway deployments and pair one desktop with both.
    • Exercise start/confirm pair, list/forget devices, Connect/retry/renew, status/revoke, push registration/deletion, Context close and Workload retirement via authenticated same-origin backends deriving the owner and checking Context, CSRF and Origin.
    • Knowledge of real IDs, asserted user labels/headers or another owner’s session yields no disclosure or mutation. Ordinary accounts and backend credentials cannot invoke administrative block, permission/policy change, issuer stop or emergency stop.
    • Service audiences remain distinct and widget/workers receive no service credential.
    • Repeat pairing and approval with each Integrator operating independently. Trace the required dependencies; the design requires no shared Countersign registry, account service or traffic relay.
    • Spec L13 · L24–30 · L49–57 · L96–107
  • UAT-03 · As a policy administrator, I can predict which hosts a grant covers.

    • Run equivalent case, IDNA and effective-port inputs through registry, prompt, CONNECT, issuer, worker and relay and verify one canonical result. Misleading display names show the A-label.
    • An exact match wins over a wildcard and conflicting definitions at equal precedence are rejected. With *.foo.bar:443, api.foo.bar:443 matches, while apex, multiple labels, stuck-on prefixes and other ports fail.
    • A wildcard-derived grant defaults to the exact initiating host. Explicit group approval displays that host, pattern, port and breadth and works for siblings only while this entry/version still wins and permission holds.
    • Exact overrides and policy changes fence affected live/pending authority. A group never shares a stream, leaf, verdict or signature across origins.
    • Spec L59–65 · L199–200
  • UAT-04 · As a site operator, I can rely on destination enforcement for every stream.

    • Unknown destinations, ambiguous authorities, userinfo, literal IPs, encoded separators and wildcard targets fail.
    • Observe resolution of the canonical name in the parent, validation of the whole address set including IPv4-mapped IPv6, connection to the selected IP without another resolution and name-based TLS validation.
    • Mixed allowed/disallowed sets, metadata, loopback, link-local and infrastructure addresses fail, and private sites require explicit host/prefix/port approval. Reconnect re-evaluates DNS and policy.
    • Check disagreement between CONNECT, downstream SNI, HTTP Host or each HTTP/2 authority, conflicting absolute URLs, unrestricted tunnel upgrades, cross-origin coalescing and redirects to another destination. Only independently permitted destinations pass.
    • A protected failure never yields opaque passthrough. A deployment claiming mandatory routing must separately demonstrate network confinement against direct, alias, shared/fronted and alternate-proxy routes.
    • Spec L17 · L61–67 · L121 · L204
  • UAT-05 · As a sidecar operator, I can delegate one Workload’s authority safely.

    • The default sidecar grants access only over that Workload’s protected listener, redeems its protected token at the Broker, and uses the resulting Integrator/user/Context/Workload/generation binding.
    • From the actual Workload principal, verify proxy use and public trust read access, denied write access to the shared mount and denied access to sidecar memory, descriptors, credentials and private mounts.
    • Check packaged configuration, environment, headers, proxy URL, exposed interfaces and shared files for private material.
    • Verify distinct principals, and container namespace, UID, tracing, host mount, runtime-socket and shared-executable restrictions where applicable.
    • The helper produces working HTTPS_PROXY, SSL_CERT_FILE, REQUESTS_CA_BUNDLE and NODE_EXTRA_CA_CERTS; desktop trust stays scoped outside the change.
    • Spec L53–57 · L71–79 · L199
  • UAT-06 · As a sidecar operator, I can rotate limited trust at restart or policy change.

    • Decode the atomically published public CA.
    • It is self-signed, has CA constraints/path length zero, certificate-signing usage, critical nameConstraints with the configured bare exact names/wildcard suffixes as permitted DNS subtrees and address-and-mask exclusions for all IPv4 and IPv6.
    • Record fingerprints across restarts and require fresh keys. At the Gateway and issuer exercise exact-only, port and wildcard boundaries even if the client treats trust-anchor name constraints differently.
    • Changing policy fences old authority before serving the new policy with the fresh CA. Sidecar exit stops issuance and closes existing connections. No key serialization/export interface is available.
    • Spec L55 · L73–79 · L199
  • UAT-07 · As a shared Gateway operator, I can serve several Workloads with authenticated ingress.

    • Authenticate each connection over TLS, with separately authenticated Gateway-to-Broker binding. Exercise valid credentials and credentials with wrong issuer, audience/mode, purpose, expiry, signature, user/Context membership or generation.
    • Only the current valid binding succeeds. Replays across Workloads/modes and refresh after replacement confer no authority. Inspect the upstream for absence of client-supplied identity and proxy credentials.
    • A private per-Workload adapter is one suggested route for stock tools.
    • Spec L71 · L81 · L96–98 · L200 · L204
  • UAT-08 · As a tenant, my worker cannot borrow another grant.

    • Use simultaneous users and also the same user/certificate/host with two Contexts. Observe one fresh, low-privilege OS worker per grant version and parent control of both network legs.
    • From a controlled worker verify private authenticated IPC, no service secrets, inherited privileged descriptors/environment, other worker handles/memory or direct external sockets.
    • Swapped IPC, cross-grant streams, TLS tickets and mismatched leaves yield no data/signing authority. Parent or child failure fences the old version, closes access and replacement requires a fresh approval. Qualify the actual deployment sandbox separately.
    • Spec L49–57 · L71 · L83 · L118–122 · L200
  • UAT-09 · As an issuer operator, I can use either shared CA source.

    • Local mode accepts only a dedicated, valid, correctly chained CA with matching key and usages, restricts the private mount to the issuer, and distributes public trust.
    • Against a controlled ACM-PCA-compatible endpoint exercise standard AWS SDK IssueCertificate/GetCertificate with configured region, opaque CA/template, endpoint, profile, credential chain, credential process and named acm_pca service where selected.
    • Verify configured CA and returned association, real signed leaves and successful TLS. Backend/credential failure does not select another CA. Endpoint behavior is fixture evidence until the live issuer/template is qualified.
    • Spec L85–92 · L200 · L211
  • UAT-10 · As an operator, I can trust a leaf only for its authorized worker and origin.

    • For sidecar, local shared and SDK-issued leaves, verify CSR possession, distinct fresh leaf key, grant/worker version, exact host policy and remaining deadline.
    • Decode returned cert and complete TLS only with the authorized key, exactly one exact DNS SAN, server-auth usage, non-CA constraints, expected chain and bounded validity.
    • Wrong key/issuer/host, wildcard, extra DNS/IP, oversized validity including rounding, and extra or wrong identity URI fail. Only the explicitly expected URI can be added and confers no extra destination access.
    • Retry pending issuance only for its original CSR/grant/host/expiry within the original deadline. Delayed/malformed responses, revocation mid-issuance and expiry cannot deliver a usable cert.
    • Rotation stages the new public anchor, confirms Workload receipt, switches issuance, drains grants and retires the old anchor. Compromise stops issuance and revokes affected grants.
    • Spec L75 · L87–92 · L199–200

Pairing, desktop and notifications

  • UAT-11 · As a user, I can pair through my real Integrator sign-in.

    • Start with explicit verified HTTPS origin and fresh per-account/pairing local P-256 key in protected storage. Verify system-browser sign-in, expected Broker origin, matching key/attempt-derived codes, account, origin and device.
    • Only authenticated browser confirmation plus proof of the same key and attempt commits one pairing, within ten minutes. Wrong origin/account/key, mismatched halves, CSRF, intercepted code alone, link alone, expired or reused attempt fail.
    • One tray app per desktop session supports start-at-login, with one outbound authenticated channel per pairing.
    • Spec L24–30 · L54 · L98–111 · L202
  • UAT-12 · As a paired user, I can reconnect without reviving obsolete authority.

    • On enrollment/reconnect show single-use challenge valid for at most 60 seconds and ES256 proof with fixed type, purpose, audience, connection, issuance/expiry and server-held key. Replayed, expired, substituted-key or different-purpose/channel proofs fail.
    • A failed proof leaves the current generation intact. Success makes one generation current, cancels old operations, syncs pending state and restores only receipt-matched, unexpired local authority. A missing, altered or misbound receipt needs fresh approval.
    • Unpair/lost key requires new enrollment and grants.
    • Spec L100–111 · L202
  • UAT-13 · As a user, I can distinguish every eligible identity and know what approval means.

    • Exercise zero, one, two and three eligible installed identities, including lookalike names. All eligible entries show identity, issuer, expiry and SHA-256 fingerprint.
    • None gives a reason and no approval; one is shown for explicit approval; two or more keep Approve disabled until selection. Use a changed or removed identity between display/commit/use and verify fingerprint revalidation and no substitution.
    • Only the selected public leaf and necessary intermediates leave the device. Observe distinct missing-intermediate, no-eligible, locked, cancelled-PIN and removal outcomes.
    • Trusted chrome shows verified Integrator, account, Context, initiating host/port, broader scope if applicable, selected identity/issuer/fingerprint, duration and absolute expiry, Approve/Deny and the Gateway plaintext/access trust disclosure.
    • It explains that one approval can cover multiple handshakes and requests.
    • Spec L7–9 · L47 · L117–120 · L138 · L158 · L198
  • UAT-14 · As a user, I can recognize an Integrator without giving its branding control over consent.

    • Pair two origins with colliding IDs and conflicting brands. Fetch each manifest from its own verified HTTPS well-known endpoint. Check bounded plain text, image type/size/dimensions, same-origin raster decoding and allowed colors.
    • Malformed/unavailable themes use neutral presentation and verified origin; external redirects, active content, markup, navigation, CSS/scripts and bidirectional controls cannot affect the decision.
    • A long label, poor contrast or button-like image cannot obscure, rename, recolor or shrink trusted controls.
    • On rate-limited refetch, changed text or changed bytes at the same logo URL shows old/new review and only explicit acceptance replaces the accepted brand. Deep links/request fields cannot choose the theme or disclose cross-pair state.
    • Spec L154–160 · L202
  • UAT-15 · As a user, I can respond to a wakeup without granting from a notification.

    • Observe application payloads of outbound WSS, widget link and encrypted VAPID Web Push. Each carries only an opaque high-entropy ID. Generic native notifications fetch details over the authenticated pairing.
    • A user-initiated exact countersign://approve/<id> reaches the single app instance, cold-starts/syncs each inbox if necessary, matches locally and fetches only on the owning pairing.
    • Malformed, forged, ambiguous, expired, inaccessible or unknown IDs yield no actionable offer or disclosure to unrelated Brokers. Dismiss is local. Only explicit approval inside authenticated Companion chrome grants.
    • Spec L103 · L116 · L160–166 · L202
  • UAT-16 · As an Integrator, I can notify an offline desktop user through my site.

    • After permission, register an origin/account-bound subscription via authenticated backend. When the Companion is unavailable, observe encrypted ID-only delivery to that subscription; a generic click opens the same-origin site and the widget can launch the app.
    • Denied permission/unavailable launch leaves status available.
    • Repeated deliveries deduplicate by ID, retries stop at request expiry, gone/deleted/logged-out subscriptions become unusable and forbidden push endpoints are rejected under HTTPS-service/address policy. Logs omit subscription/key material.
    • Widget CSS affects only web content. There is no localhost command listener. Offline delivery is best effort.
    • Spec L16 · L30 · L160–168
  • UAT-17 · As a user with multiple devices, I can identify and forget the right devices.

    • Simultaneous connections warn new/existing devices. UI shows names as user supplied, time and trusted-ingress address/provenance when available. Presence, matching public certificates and verified multi-device use show separately without claiming copied keys.
    • Confirm named disconnect targets, then change target membership before commit. The changed set is rejected, the actor is excluded, and a valid transaction forgets just the confirmed devices, invalidates offers and revokes their grants.
    • Offline users see the restricted security notice after reauthentication and stale devices stay fenced.
    • Spec L107 · L116–124 · L202

Approval, TLS and continued access

  • UAT-18 · As a job owner, I can start consent from either curl or the widget and deliberately retry.

    • Matching CONNECT/widget requests coalesce by owner/Context/Workload generation/effective scope/policy version; varying a binding isolates requests. Preserve initiating host and broadcast one ID to eligible account pairings.
    • An offline paired device can fetch a still-pending offer. No eligible local identity yields local unavailability; zero devices gives bounded unavailability/wait.
    • Measure ten minutes pending and at most two minutes total CONNECT wait, shortened by caller and authority deadlines. Disconnect or timeout discards traffic. Later approval permits a deliberate subsequent request and never automatically replays the first.
    • Explicit Deny/Cancel closes the request globally; denial/cancellation/expiry suppress automatic prompts until explicit retry.
    • Spec L103 · L115–118 · L198 · L201
  • UAT-19 · As a user, my decision commits once, including when devices race.

    • Using different devices, identities and independent storage connections, race valid approvals, denial/cancellation, expiry, revoke and renewal. Revalidate user, Context, permission, policy version, pairing, channel, chain and current request at commit.
    • Observe one durable first valid terminal decision, at most one grant, one logically corresponding audit/outbox and closure of losing prompts. Identical decision retries yield the committed result; a changed decision payload under the same ID fails.
    • Losing device, stale offer, policy or generation cannot sign. Initial handshake failure does not elect another signer.
    • Spec L100–107 · L115–120 · L172 · L201–204
  • UAT-20 · As an owner, I can see the duration I actually granted and renew explicitly.

    • Default duration is one hour from approval commit, subject to certificate expiry; initial administrator-configurable maximum is eight hours.
    • Exercise short duration, earlier certificate expiry, changed configured maximum and excess request: the allowed period cannot be exceeded. When possible observe a warning five minutes before expiry.
    • Verify one current grant per binding/scope and exactly one worker activation. Integrator, user, Context, live Workload/generation, effective scope/policy, pairing/key and chosen fingerprint are immutable.
    • Successful renewal requires explicit approval of a new grant and fences the old. Failed renewal preserves the original deadline. Status distinguishes approval, current readiness and observed upstream mTLS acceptance.
    • Spec L9 · L103–107 · L117–120
  • UAT-21 · As a certificate holder, my key signs only the authorized TLS handshake.

    • For TLS 1.3 and secure TLS 1.2 initial client auth, independently verify upstream name/chain/server proof and required evidence before any client signature. With a wrong peer, count zero native signatures.
    • An otherwise valid peer omitting the certificate request never produces a successful protected connection. Empty issuer hints alone do not exclude eligible identities.
    • Only the winning device with locally approved active scope, exact host/port, selected cert, channel, connection, operation, scheme and live deadline signs.
    • Validate CertificateVerify under that leaf and scheme, including TLS 1.3 client context, TLS 1.2 transcript, correct hashing and TLS ECDSA vs fixed-width ES256 encoding.
    • Wrong-binding/corrupt/replayed/late signatures, token removal and idempotently cancelled operations cannot complete or be consumed twice.
    • Observe the actual provider signature and peer-verified handshake for each claimed scheme: RSA 2048+ PSS, tested TLS 1.2 RSA PKCS#1, ECDSA P-256/P-384, SHA-256 or stronger.
    • Spec L53–54 · L104–106 · L119–120 · L138–152 · L194–204
  • UAT-22 · As a site operator, client and server certificates must satisfy my destination policy.

    • Exercise both roles, trust anchors, validity, KU/EKU and any configured account-to-cert mapping. The desktop server trust store does not grant implicit trust. For strict profiles use signed direct full CRL and signed OCSP as configured.
    • Verify responder authorization, cert association, signed times/freshness, unsupported forms/extensions, invalid signatures, revoked, unknown, indeterminate and missing evidence. Absent OCSP nextUpdate needs configured maximum age from signed times.
    • Observe only configured retrieval routes/verified imports. Wrong role/origin/owner/grant/operation, chain or policy/trust version cannot reuse a verdict.
    • Reuse never extends expiry; stale required evidence closes traffic until renewed validation, and known revocation invalidates affected grants.
    • Spec L61–67 · L119 · L122 · L130 · L150–152 · L204 · L211
  • UAT-23 · As an application owner, HTTP stays scoped and is never silently retried.

    • Under one grant demonstrate multiple initial handshakes via the selected identity and multiple requests, HTTP/1.1 and HTTP/2 with backpressure and authority checks on existing/new streams.
    • Keep keys, pools, buffers, peer state and cookies from crossing grant/origin boundaries. Observe no TLS tickets/resumption on either leg, early data, shared cookie jar or cross-origin coalescing.
    • A timed-out/partially delivered request reaches the controlled peer at most once and never resumes automatically. Closing the Companion cancels pending and prevents new handshakes; an existing permitted connection can continue until remote authority ends.
    • Expiry during a long response cuts off the stream.
    • Spec L7–9 · L119–122 · L198–201
  • UAT-24 · As an owner or administrator, I can end authorization and see the outcome.

    • Exercise explicit revoke/unpair, Context closure, Workload replacement, known cert revocation, account block, permission or trust withdrawal, policy changes, issuer compromise/stop and emergency stop with documented scope.
    • Confirm applicable admission, leases, local capabilities, pending signatures and both traffic legs cease as specified. Replacing a certificate, device or grant requires new approval.
    • Check status of offline revoke intent versus Broker commitment, delivery versus enforcement acknowledgment and actual network cutoff. Unaffected owners/grants remain correctly scoped.
    • Spec L63 · L92 · L98 · L107 · L118–132 · L174 · L201 · L204
  • UAT-25 · As an owner, access ends when authoritative leases lapse, even during failure.

    • Instrument downstream ingress, parent upstream relay and Broker signing relay independently. None admits/continues work without scoped live authority.
    • Record monotonic lease request-send time, renewals attempted every ten seconds, issued budget at most 30 seconds and earlier absolute grant/binding/credential/cert/verdict cap less bounded clock uncertainty.
    • Delay/drop/swap/reorder replies, lose pushes, disconnect Broker, stall worker, change clocks or suspend. Late or wrong-generation replies never reset the budget. Uncertain time/suspend/lapse cuts off and requires fresh validation.
    • Under load and scheduler delay measure last admitted bytes/operation and actual closure of active/idle sockets on both legs, HTTP/2 resets, discarded buffers and queued/in-flight/late signing behavior. Attribute bytes already delivered separately.
    • A stuck provider retains its slot until return without delivering a late result. Report measured end-to-end timings alongside the 30-second issued-authority bound; the spec does not supply a separately guaranteed wall-clock closure figure.
    • Spec L105 · L122 · L126–134 · L201 · L206 · L212
  • UAT-26 · As a shared user, my requests have bounded waits, buffers and concurrency.

    • Run at each initial boundary and one above, without another cap masking it. Per user: 8 grants, 128 connections/streams of each kind, 16 handshakes. Per grant: 32 connection pairs, 32 in-flight requests/streams, 4 handshakes.
    • Maximum 1 MiB application buffering per pair. Per device across pairings: one provider call executing, 16 queued, at most 4 queued from one grant. Queue time counts toward the original two-minute operation deadline. Over-cap work cannot exceed the bound.
    • Verify bounded pending offers, notifications and unauthenticated enrollment per account/deployment against configured caps.
    • Exercise policy denial, authentication, overload, unavailable, elapsed wait and TLS failure and record stable safe codes/correlation IDs. After commitment the affected stream closes and owned API publishes status.
    • Spec L115 · L120 · L128–134

Protocol, protected storage and operations

  • UAT-27 · As an operator, malformed or misrouted control messages cannot authorize work.

    • Verify TLS-checked outbound WSS with countersign.v1, independently authenticated upgrade, separate authenticated Gateway/Broker TLS, uncompressed frames, heartbeat/idle limits and bounded reconnect backoff.
    • Exercise both links with wrong versions/types, duplicate keys, encodings, excessive nesting, absent/freshness-mismatched IDs and oversized frames. Proposed caps: 1 MiB uncompressed JSON, 16 public DER certs and 256 KiB total chain, 256 KiB signing input.
    • Check boundaries and one above; invalid inputs fail before dispatch.
    • Across pair, offer/decision, activate/retire, lease, sign/result/cancel and status/revoke, swap authenticated owner/scope/generation/operation/deadline fields and verify no disclosure, commit or signature.
    • Responses correlate to the original request; cancellation is idempotent.
    • Spec L94–111 · L204
  • UAT-28 · As a desktop user, my provider retains custody across restart, lock and cancellation.

    • On each claimed installed OS/arch exercise real create/reopen/proof/retire, selection and native rustls handshake separately.
    • Windows uses current-user store/CNG, persistent user-scoped non-exportable P-256 pairing identity and protected metadata. macOS uses Security.framework/Keychain/SecKey, protected app P-256, access control and non-exportability where supported.
    • Linux specifies selected PKCS#11 via p11-kit/NSS and proposes nonextractable persistent NSS pairing key, random nonempty unlock secret in encrypted Secret Service.
    • Cold-test Linux after closing sessions, clearing cached unlocks and restarting app/provider services: locked access denied, user unlock reopens the same public identity.
    • In CI check encrypted GNOME Keyring/private D-Bus/in-memory unlock pipe, no unlock secret in argv, env, files or logs.
    • For each applicable provider verify denied cold access, missing/corrupt locator/provider, cancelled prompt and PIN/touch/unlock behavior on the actual claimed artifact.
    • Spec L53–56 · L138–150 · L203 · L206 · L210
  • UAT-29 · As a desktop user, untrusted UI and debugging features cannot sign for me.

    • Inspect the installed renderer for packaged local content, sandbox/context isolation, Node disabled, restrictive CSP and narrow frame/sender/action-validated preload. Only trusted main loads the native addon; provider handles stay native.
    • Observe typed pairing operations separate from locally approved TLS activate/sign/cancel/retire, denied generic signing/unsigned activation and no renderer elevation. Blocking native/PIN interactions preserve event-loop responsiveness.
    • Cancellation releases authority while a stuck provider retains its bounded slot. Compare loaded default, separate nondefault fixture and packaged artifacts/exports/dependencies.
    • Release fixture composition fails at build time and runtime environment/renderer actions cannot enable synthetic signing in distributed artifacts.
    • Spec L49 · L119–120 · L132–148 · L194 · L203
  • UAT-30 · As an operator, failures cannot create authority or restore expired grants.

    • Exercise competing SQLite connections/processes, failed audit/authority writes, unavailable DB, crash after commit and duplicate outbox delivery. Observe one durable winner with scoped audit/outbox, idempotent delivery and no grant on failed transaction.
    • Local deadlines still fire when storage is unavailable. Restart fences stale generations, expires pending work, reauthenticates channels and reconciles absolute deadlines.
    • Restore a backup predating a revocation; before accepting devices observe a fresh authority epoch, invalid old grants/challenges, revocation reconciliation and no revived worker or authority based on outbox delivery.
    • Inspect the Broker storage trait and SQLite reference implementation alongside the concurrency observations. Identify the atomic challenge, approval, lease and pairing operations, owner-scoped foreign keys, uniqueness constraints, idempotency keys and versioned compare-and-set updates.
    • Spec L111 · L118 · L128–132 · L170–176 · L201 · L204
  • UAT-31 · As an auditor, I can trace transitions without obtaining secret or traffic data.

    • Authorized audit shows actor, transition, scope IDs, exact origin, fingerprint, timestamps, result and correlation ID, with enforcement acknowledgments separate from intent/delivery.
    • Unauthorized viewers cannot access restricted source/identity metadata, subscriptions or notices.
    • Inspect app data, logs, crash/dump settings, TLS key logs and shared mounts; client keys, ephemeral leaf/session keys, TLS state, handles, signing inputs/results, HTTP content, paths, credentials and cookies do not appear outside allowed custody.
    • Verify disabled dumps and applicable host swap/memory configuration.
    • At grant end prove immediate loss of authority, then bounded per-Integrator retention, retryable working-chain/transient cleanup and minimal denial markers/tombstones for the appropriate lifecycle.
    • Account for the persistence inventory in spec line 174, including trust/permission versions, deadlines, public chain verdicts, and minimal revocation tombstones. Distinguish durable authority from retryable delivery state.
    • Spec L45–57 · L168 · L170–176 · L204

Distribution and qualification

  • UAT-32 · As an adopter, I can obtain, install and run the deliverables.

    • Inspect pinned Rust/toolchain dependencies and four Cargo outputs (countersign-protocol, countersign-native, countersign-gateway, countersign-broker), separate Gateway/Broker images, Electron app with matching native addon, tray/login startup and protocol handler, drop-in widget plus same-origin service worker, and runnable self-contained example with distinct client-test and sidecar CAs.
    • Verify npm scope @countersign/* or documented fallback if unavailable. Install matching Windows/macOS/Linux prebuild/installer and record hash, arch, Electron/N-API compatibility and provider.
    • Upgrades retain pairings only when the protected key remains accessible.
    • Build the pinned local rattler recipe countersign-companion, inspect dependency/binary/entry point/license metadata, install in a clean local environment and launch its installed entry point/addon.
    • Spec L13–18 · L178–190 · L198 · L203
  • UAT-33 · As a release owner, I can identify what CI built and actually exercised.

    • Inspect push/PR/tag runs for Rust fmt/clippy/tests, JS lint/tests and addon load checks. Linux/Windows run on pushes and PRs; every macOS matrix entry, including installer/prebuild, runs only for PRs/version-tag releases.
    • For releases verify checked artifacts, checksummed prebuilds/installers, attached release assets and distinct versioned GHCR images, narrow permissions, no publishing credentials required on PRs, and real desktop signing/notarization gated by secrets and authorization.
    • Compare native installs/executions with cross-builds for the six proposed Windows/macOS/Linux × x64/arm64 targets. Unsigned builds are allowed. Show unavailable/skipped combinations explicitly.
    • Spec L178–190 · L203–212

Scope of claims

  • The earlier prototype's 85 healthy TLS cases on each of four hosted systems concern that revision and its tested software providers only. They are historical feasibility evidence. The design provides no product execution or acceptance result. Physical tokens, installed login prompts, individual Secret Service deployments, production cutoff under load, shared deployment isolation, actual sites/CRL/OCSP policies, live compatible issuer templates and native installation per OS/architecture each need separate observations before being claimed. The specification gives no numeric targets for every configurable size, backoff, retention or clock tolerance. Record the tested value instead of inventing one. L144–152 · L156 · L168 · L176 · L190 · L194–214
  • Scope includes proxied access through a trusted Integrator/Gateway, not site-issued token/cookie lifetime, mandatory routing absent network confinement, protection from a malicious Integrator or compromised host administrator/desktop/provider, or assurance that a pre-existing website key was originally nonexportable. Exclusions include personal key upload/export, arbitrary signing, transparent interception, desktop trust-store changes, browser extensions, remote approval UI, phone/email/Slack, TLS renegotiation/post-handshake auth, HTTP/3 and clients requiring upstream certificate pinning. Live deployment, production qualification, acquisition/use of code-signing certificates, and publishing to language/conda registries are outside this phase. Future Python naming and potential repository visibility are context, not release gates. L11–18 · L45–57 · L148–150 · L185–190 · L206–214

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