# secrets — controlled credential use for teams of agents secrets brokers HTTPS calls and pinned runner jobs under grants, policy and passkey approvals. No tool accepts or returns credential values. 1Password values stay stored in the team's vault; secrets reads them during dispatch. The service and runner host are trusted with plaintext. Not zero-knowledge. Origin: https://secrets.r2.oatshq.com Console: https://console.secrets.r2.oatshq.com/ Manifest: https://secrets.r2.oatshq.com/aweb-app.json Reference: https://secrets.r2.oatshq.com/reference ## Getting started First, install aw 1.36.47 or newer and connect your team using the getting-started guide: https://aweb.ai/docs/cli-tutorial/ Install from the origin: aw plugin install https://secrets.r2.oatshq.com Complete owner/passkey setup, connect 1Password, configure grants and activate the audit hook to logs. Owners confirm widening changes on secrets' own console. Never send a credential value through aw, MCP or a model conversation. ## Authentication Every operation is team-scoped and authenticated with your AWID team certificate. When you call through the aw plugin verbs (or the low-level aw id request --team-auth), aw signs each request for you with your team member key — you never assemble auth headers by hand. For raw HTTP without aw, every team-certificate request carries four headers: - Authorization: DIDKey — base64 Ed25519 signature (standard alphabet, no padding) over the canonical payload bytes - X-AWEB-Timestamp: — equals the envelope timestamp; 300s replay window - X-AWEB-Signed-Payload: base64url WITHOUT padding of the canonical JSON envelope — sorted keys, no whitespace; v=2; reserved fields aud, body_sha256, method, path, team_id, timestamp, v - X-AWID-Team-Certificate: standard base64 of the team certificate JSON This wire format tracks the aweb team-auth-envelope-v2 conformance vector. The full signing recipe with per-operation curl is at https://secrets.r2.oatshq.com/reference. The verified principal still needs a matching secrets grant and policy. Invocation contexts below are enforced; surface-only tools are not agent tools. Exposing a tool through MCP grants nothing. approve_only requires an enrolled approver's passkey over the frozen request on secrets' own origin. ## Operations aw vault-secrets list (GET /v1/secrets) List the secrets you may use: refs, kinds, sensitivity, destinations and approval requirements. Never values. aw vault-secrets describe (GET /v1/secrets/{secret}) Show one secret's operations, with their parameters, and the jobs you may run with it. required: secret aw vault-secrets request (POST /v1/secrets/{secret}/requests) Make a brokered call with a secret: a named operation, or an open request where the grant allows one. Read the structured state independently of HTTP success. If awaiting_approval, check status using request_ref; after approved with next:resubmit, explicitly re-submit the identical request_id and body. Status never dispatches. required: secret, request_id optional: operation, params, method, url, headers, data, reason aw vault-secrets run (POST /v1/jobs/{job}/runs) Run a pinned job on a runner, with the credentials its definition names. The first release uses fixed durable slots; omit secret. Supply request_id. Check aggregate status using request_ref: one approved slot does not approve the run. After approved with next:resubmit, explicitly re-submit the identical ID and body. Admitted means waiting for the runner, not completed. The agent never receives credentials. required: job, request_id, runner optional: params, reason, secret aw vault-secrets status (GET /v1/status/{ref}) Show request, approval or reconciliation state by request_id or a returned locator. Use request_ref for aggregate run approval status. Never a link, admission or dispatch. If approved with next:resubmit, explicitly re-submit the original request with the same request_id and unchanged body. Read state even when HTTP succeeds. required: ref aw vault-secrets cancel (POST /v1/requests/{request_id}/cancel) Cancel your own request while it is not yet admitted. required: request_id aw vault-secrets contain (POST /v1/containment) Narrow authority at once: revoke a grant, approvals or an approver's passkey or contact, disable a secret or the installation, deregister a runner, or remove one member from a user-defined role. Owners; assigned approvers may revoke their own approvals. required: request_id, action optional: target, credential_id, principal aw vault-secrets propose-change (POST /v1/changes) Draft a widening metadata or authority change. It takes effect only after an owner's passkey confirmation on the console. Never accepts a secret value. required: request_id, change aw vault-secrets activity (GET /v1/activity) Show the owner's operational record of requests, approvals and dispatches, including outcomes that need reconciliation. Never values. ## Invocation contexts - list: agent, surface - describe: agent, surface - request: agent, surface - run: agent, surface - status: agent, surface - cancel: agent, surface - contain: agent, surface - propose-change: surface - activity: surface ## Audit hook productions - post-secret-use-hook - post-governance-hook Audit events are durably enqueued before dispatch and delivered to logs. They contain metadata, never values. An unavailable audit target or stalled delivery to every active target refuses new uses; enqueue is not proof of delivery. ## Skills - https://secrets.r2.oatshq.com/skills/contain-access/SKILL.md - https://secrets.r2.oatshq.com/skills/use-secret/SKILL.md ## Boundaries - Every use requires a verified principal, matching grant and recorded policy. - A runner executes a pinned job, never a command the agent supplies. Isolate its OS user/container and config from agents. The job process has credentials. - Revoke grants or disable the installation to stop affected future dispatch. This cannot undo upstream effects or recall credentials already released. - Preserve request_id and the exact request on retries; outcome_unknown needs reconciliation. Never treat an uncertain effect as a successful one. - Redaction is not a confidentiality proof. Results can contain credential derivatives. A passkey proves an enrolled authenticator, not a natural person. - The guarantee covers only use through secrets, as the sole credential path.