# WARDEN evidence workspace Version 1.0.0 · 6 December 2026 One installation serves one organisation. Use separate databases, signing keys, provider grants and origins for other organisations. The service accepts structured signed evidence. A recheck reads stored observations. Only a human operator configures delivery destinations and enrols assets. ## Run the owned example From the auditor repository, use Python 3.12 and a private virtual environment. ```sh python3 -m venv .venv .venv/bin/pip install -r warden/assurance/requirements-test.txt .venv/bin/python -m pytest -q warden/assurance/tests .venv/bin/python -m warden.assurance.tests.record_demo /tmp/warden-receipt-demo .venv/bin/python -m warden.assurance.verify_bundle /tmp/warden-receipt-demo/bundle.json /tmp/warden-receipt-demo/signers.json ``` The demo uses an in-process receipt app, real signatures and a local provider transport with saved HTTP contract fixtures. It records each request and response after omitting credentials. The published example uses a disposable fixture signing key. In a real review, obtain the trusted public key independently from the workspace operator. ## Configure a workspace Copy config.example.json into a private directory with permissions 0700. Give the configuration and SQLite database permissions 0600. Set origin to the exact browser origin. Use HTTPS at the boundary. Use loopback for the backend listener. Set WARDEN_EVIDENCE_CONFIG to the absolute configuration filename. Remove unused identity-provider blocks. Public keys in signers are base64-encoded Ed25519 public keys with explicit asset IDs. Add routes to each signer binding for other reviewed route templates. The default is /receipt. Keep private collector keys at the evidence source. Enrol using a write key, a stable asset alias, a named owner and explicit included status. Supply the reason when excluding an asset. Changing a display name preserves the asset ID. ```sh .venv/bin/python -m warden.assurance issue-key reader read .venv/bin/python -m warden.assurance issue-key owner read write retest .venv/bin/python -m warden.assurance issue-key identity-admin provision .venv/bin/python -m warden.assurance issue-key auditor audit .venv/bin/python -m uvicorn warden.assurance.api:configured_app --factory --host 127.0.0.1 --port 19573 --no-access-log ``` Each issue-key command prints its new secret once. Transfer it directly to its owner. Keep it out of command logs, browser storage and tickets. Revoking by label invalidates all keys with that label. Each browser session can read evidence and request a recheck. Service keys govern enrolment, deletion, provisioning and audit export. The browser permits manual key entry and holds that key in memory until sign-out or reload. Configure WARDEN_EVIDENCE_UPSTREAM at the site build with the trusted service origin, for example http://127.0.0.1:19573. The site forwards /v1, /sso and /scim/v2 to that service. Use distinct origin and storage for each organisation. Disable cross-origin access and avoid logging callback query strings, Authorization headers or cookies at any upstream proxy. The database directory requires operator-owned storage and backups. ## Ingest and recheck The API uses the installed service's /v1/openapi.json. The site includes the same version at /assurance/openapi.json. A consumer sends Authorization with a Bearer key. The default per-minute limits are 90 per credential label or session user and 240 per source address seen by the service. Behind a proxy the source-address budget is shared. On 429, wait for Retry-After. Provider delivery workers also persist the destination’s cooldown. Every write body is limited to 64 KiB. PUT /v1/assets/{id} accepts id, name, owner, included and reason. POST /v1/observations accepts observation, signer and signature. The observation fields are asset, revision, cycle, control, method, route, status and the observed control field. A private-receipt-cache record has cache_policy. A content-type-options record has content_type_options. Use the collect_receipt helper on a normal GET /receipt response that the owner already holds. Supply the immutable reviewed revision, increasing cycle number, enrolled asset and Ed25519 collector key. Pass an operator-approved route template and control to check another normal response. A finding belongs to one asset, route and control. Several controls can share a release revision and retain independent decisions. Only the normalised result enters storage. A refused signature, new field, duplicate revision or unapproved scope cannot open or close a finding. Repeating an identical signed record returns the existing result. GET /v1/portfolio returns the included and excluded assets, known cycles, individual finding decisions and imported inventory. The visible portfolio refreshes every 30 seconds and when the tab regains visibility. GET /v1/findings/{id}/bundle returns the signed history. GET /v1/signers returns the configured verification bindings to an authenticated reader. Pin the public key with the owner before independently verifying a bundle. POST /v1/findings/{id}/retest evaluates the newest eligible observation. A new passing revision must be rechecked before closure. Withdrawal of scope prevents a further recheck. DELETE /v1/assets/{id} removes the logical asset, observations, findings and its local delivery history. Other systems own copies that they already received. GET /v1/audit returns up to 500 NDJSON rows after an optional seq cursor supplied as ?after=. It retains the operation, time, actor label and resource alias. The operator schedules expire-audit to apply the configured retention, 90 days by default. Purge and expiry cover active records. Operators manage backup retention and disk encryption separately. ## Provider setup Each connection in config.example.json starts disabled. A credential owner obtains an access token using the provider's consent flow and supplies it only via token_env. Short-lived credentials are refreshed by the installation operator. Set enabled to true only for an authorised destination. Run deliver once per event on a schedule or from an operator-owned worker. Commands read configuration on each invocation. Stop a worker before reconciling an in-flight write. ```sh .venv/bin/python -m warden.assurance deliver jira .venv/bin/python -m warden.assurance import-wiz .venv/bin/python -m warden.assurance revoke-key reader .venv/bin/python -m warden.assurance expire-audit ``` A delivery returns its state, event ID and provider reference. The empty state means all committed events already have receipts for that destination. After an uncertain create, look up the finding in the remote system. Use reconcile DESTINATION EVENT --remote-reference ID for confirmed delivery, or --confirmed-absent only after confirming the provider performed no write. For rate-limited deliveries, allow the provider’s cooldown before invoking the worker again. Coordinate one worker per destination. Reconcile a sending state left by a process interruption before starting it again. Jira Cloud uses a 3LO bearer grant with write:jira-work, project membership, issue creation and transition permissions. Use the Atlassian accessible-resources response to obtain the cloud ID. Select the project key, issue type and both valid workflow transitions. Create uses v3 Atlassian Document Format. The returned issue key binds later transitions. https://developer.atlassian.com/cloud/jira/platform/oauth-2-3lo-apps/ https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issues/ Slack uses the OAuth bot token with chat:write. Invite the bot to the configured channel ID. chat.postMessage creates a message and chat.update uses the saved timestamp. The receiver sees an asset alias, owner, revision, decision and private evidence path. https://docs.slack.dev/reference/methods/chat.postMessage/ https://docs.slack.dev/reference/methods/chat.update/ GitHub uses a selected-repository app installation token or fine-grained token with Issues write permission. Configure the owner and repository. Create an issue with title and body, then PATCH the returned issue number to set state and update its evidence. https://docs.github.com/en/rest/issues/issues Linear uses an OAuth bearer grant with write for the selected workspace/team. Select the team and its workflow state UUIDs. issueCreate and issueUpdate require both a successful transport response and a successful GraphQL mutation. Store the returned issue UUID. https://linear.app/developers/oauth-2-0-authentication https://linear.app/developers/graphql Microsoft Sentinel receives Azure Monitor custom logs. Create WardenEvidence_CL with TimeGenerated as datetime and EventId, FindingId, Asset, Owner, Revision and Decision as string. Create a matching DCR stream, select its logsIngestion endpoint and immutable rule ID. Grant Monitoring Metrics Publisher only on the DCR. Use a current Entra token with audience https://monitor.azure.com. A successful ingest returns 204. The Copilot KQL skill reads the custom table and deduplicates event IDs. Ingesting an event creates no incident or response action. A licensed Sentinel/Copilot tenant is required for hosted acceptance. https://learn.microsoft.com/en-us/azure/azure-monitor/logs/logs-ingestion-api-overview https://learn.microsoft.com/en-us/copilot/security/plugin-kql Wiz uses an OAuth service account scoped to read cloud resources. Use the tenant's assigned token endpoint and audience from its service-account instructions. Select the tenant-specific GraphQL endpoint from Tenant Info. The inventory query pages cloudResources, reads id/name/type and persists only remote ID, mapping and status. The mapping joins IDs to previously enrolled asset aliases. Unknown IDs remain unmapped. A failed page leaves the last complete snapshot intact. Revoking the grant prevents future imports. https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/wizcnapp-source-setup.html To revoke any connection, disable it and revoke the OAuth grant, bot token, app installation or role at the provider. Query each provider's own retention policy for previous deliveries. ## Webhook verification Provision a destination and a random secret of at least 32 bytes in its token_env. WARDEN signs the ASCII timestamp, a period, the event ID, a period and the exact JSON body bytes with HMAC-SHA256. The signature header is Warden-Signature with a v1= prefix. Use the Warden-Timestamp and Warden-Event-Id headers. Reject messages older than five minutes, future-dated by more than five minutes, or inconsistent with the body ID. Compare signatures in constant time. In one transaction insert the ID into a unique receiver table and apply the processing result. A redelivery of an accepted ID returns success without a second business action. accept_webhook and test_webhook.py provide the executable example. ## Enterprise identity For OIDC, register the exact origin plus /sso/oidc/callback as a web redirect. Configure one issuer, authorisation endpoint, token endpoint, JWKS endpoint, client ID and client_secret_env. Use an RS256 ID token and client_secret_basic token endpoint authentication. Keep DNS, endpoint URLs and client trust under operator control. Code exchange is bound to a browser cookie, a single-use state, nonce and PKCE S256 challenge. For SAML, install /sso/saml/metadata at the provider, set its entity ID, HTTPS single-sign-on URL and signing certificate. Require signed Response and Assertion with an explicit persistent NameID, request ID, audience, recipient and expiration. Start either flow from the workspace. Sessions expire after at most an hour and are rechecked against the active user on every request. Use a provision-only key with /scim/v2/Users. POST the core SCIM User schema, userName and externalId as oidc:SUBJECT or saml:PERSISTENT_NAME_ID. GET supports pagination and exact userName or externalId equality. PATCH replaces active or userName. DELETE removes the user. Deactivation terminates all existing sessions. Re-enabling never restores a retired session. User groups, bulk provisioning and automatic identity creation are outside this profile. https://openid.net/specs/openid-connect-core-1_0.html https://www.rfc-editor.org/rfc/rfc7644 https://github.com/SAML-Toolkits/python3-saml