Skip to contentWitnora
Menu
Integrate / Updated 2026-09-06

Browser adapter

Mediate browser actions through a credential-isolated customer adapter.

The kit lets a customer keep its browser sandbox, credentials, and execution code while Witnora verifies a narrow enforcement boundary. The current kit is included in the witnora package and initialized by the Witnora CLI; it is not a separate product or credential vault.

Required boundary

  • Exact HTTPS sandbox-origin allowlist.
  • Bounded action type, operation, resource, and target system.
  • Write credential resolved inside the execution closure and unavailable to the agent.
  • Separate read-only credential for outcome and target-audit verification.
  • Idempotency key for every execution.
  • Independently observed state and exactly one matching target audit event.
  • Idempotent credential-lease revocation.
  • Digest-only conformance output with no secrets.

The v0.1 kit rejects production actions. Passing conformance does not prove that the vendor, browser, customer secret provider, or production system is secure.

Two-hour onboarding

0-15 minutes: prove the starter

npx witnora@latest browser-adapter init
npx witnora@latest browser-adapter certify --adapter witnora.browser-adapter.mjs

The synthetic fixture should pass at 100%. This proves package resolution, Node runtime, public subpath, and local reporting before customer code enters.

15-45 minutes: bind the sandbox

Replace targetSystem, allowedOrigins, allowedOperation, and allowedResource. Paths, wildcards, HTTP origins, and embedded credentials are rejected. Leave sandbox: true unchanged.

45-75 minutes: connect customer credentials

Implement resolveWriteCredential and resolveReadCredential with separate secret-provider references. Never place credentials in the fixture, action, browser prompt, tool arguments, logs, evidence, or Witnora Hosted.

75-105 minutes: connect execution and verification

Implement the write callback, independent read-only outcome callback, and target audit query. Return one audit event bound to the action, operation, resource, and parameter digest. Use the provided idempotency key at the vendor boundary.

105-120 minutes: certify and review

npx witnora@latest browser-adapter certify \
  --adapter witnora.browser-adapter.mjs \
  --out .witnora/browser-adapter/conformance.json

Do not proceed if credential separation, target audit reconciliation, outcome verification, revocation, or secret redaction fails.

Hosted path

Run npx witnora@latest onboard --project <project-id> first. The generated Gateway registers its Ed25519 runtime identity, consumes short-lived execution grants for approved and mandated actions, and revokes unused grants. Runtime claims and evidence remain customer-signed and are verified by Witnora Hosted.

See Browser Enforcement Boundary v0.2 and Evidence Trust Chain for protocol limitations.