What Arbiter receives, keeps and deletes
This is the rule for Arbiter running in your own environment in the standard configuration described in the administrator manual. Where this page and Arbiter’s behaviour in that configuration disagree, that is a bug: report it. Optional configurations beyond that manual, and the data they handle, are covered in Arbiter’s security packet, which we share on request.
Principles
Section titled “Principles”- Sensitive data stays in the partner’s environment. A partner runs Arbiter themselves (administrator manual): the server, its database, its logs and its backups are theirs. Nothing reaches the vendor unless the partner sends a diagnostics bundle (below).
- Arbiter keeps only facts about each decision, plus fingerprints. It never keeps a pull request’s file whole: from the provenance and evidence files it reads there, it keeps no value, only a fingerprint of the session id (see “Repository file contents”). Values from your own policy repository are copied into decisions as each one needs them (see “Policy repo”).
- Arbiter reads only the files your policy needs. That is always the pull request’s provenance and evidence files; your Terraform files and the JSON or YAML files they load, if you turn on the Terraform check; the changed workflow, action and dependency files, if you turn on the workflow or dependency analysis; and, when your policy requires an ordinary check (one that is not a trusted check), the repository’s file list and the workflow, scripts, modules and test files that check runs. It reads them; it never runs them. It holds what it reads only for one evaluation, in memory or in a working folder it deletes when the evaluation ends. Two cases can leave a working folder behind: if Arbiter stops partway, the next start deletes it; if the data directory’s device number changes, an administrator deletes it (see “Repository file contents”). From the provenance file it keeps only a fingerprint of the agent’s session id. From Terraform files it keeps only file paths, line numbers, resource names and what it found. From the files a check runs it keeps nothing but a fixed reason when a check cannot count. Each read has its row below (“Repository file contents”, “Terraform files”, “Workflow and dependency files” and “Check-definition files”).
- The vendor’s hosted demo uses synthetic repositories only. No partner repository is ever installed on it.
- Diagnostics bundles contain no secrets and no partner content beyond decision ids, times and outcomes.
What Arbiter receives, keeps and deletes
Section titled “What Arbiter receives, keeps and deletes”“Kept until deleted” means no code deletes it today. The partner deletes it by deleting the database (see “Deleting everything”).
| Data | What Arbiter receives | What it keeps, and where | Retention |
|---|---|---|---|
| Webhook payloads | Pull request, review and check-run events for installed repositories | Parsed in memory, never stored or logged. Kept on the decision record: delivery id, owner, repo, PR number, head SHA, author login and type | Payload: the request only. Record: kept until deleted |
| Changed file list | Read from GitHub’s PR files API per evaluation | Not stored in full. The PR comment, the check and the stored comment name up to 5 changed files per protected rule. A provenance failure can list undeclared changed paths in the stored decision artifact | Memory: the evaluation only. Comment and artifact: as the decision record |
| Repository file contents | Only the provenance file and the evidence files the policy names, at the PR head commit (and, when the policy turns on the Terraform check, the files in “Terraform files” below; when it turns on workflow or dependency analysis, the files in “Workflow and dependency files” below; when it requires an ordinary check, the files in “Check-definition files” below) | The provenance and evidence files are written to a working copy in Arbiter’s own temporary folder, deleted when each evaluation ends, or at the next start if Arbiter stops partway. No value read from them is kept. Terraform, workflow, dependency and check-definition files are never written to it: they are held in memory, and what Arbiter keeps from them is in “Terraform files”, “Workflow and dependency files” and “Check-definition files” below. The provenance file’s session id is kept only as a fingerprint, session_digest (its SHA-256 digest, in the decision record; a short form of it in the check run and the PR comment). Evidence failure details are fixed text that quote nothing from the file. binding_matched_sha, in the decision record, is a commit SHA GitHub gave for the pull request’s current or previous head, never a value copied from the evidence file. At present no policy can require a signed evidence file. Working copies left by a release before this one are not removed; an administrator may delete them while Arbiter is stopped. A change of the data directory’s device number leaves that folder behind; an administrator may delete arbiter-server-* folders while Arbiter is stopped |
Working copy: the evaluation only. session_digest: as the decision record. Check run and PR comment: GitHub’s retention |
| GitHub facts | Reviews, team membership of reviewers, pushers, check runs, Actions runs, PR state | The counted approvals (user id, login, review id, team) and checks go into the decision artifact. Nothing else is stored | Artifact: as the decision record |
| Policy repo | policy.yaml, rollout-mode.yaml and keyring.json at the default-branch commit (and samples, during a policy review); its branch protection; when a policy pull request adds or changes terraform_iam, policy review also reads the target repository’s file list at its default branch, once, to check the Terraform check’s limits |
Policy bytes cached in memory for 5 minutes. The trust result is not cached: the protection is read again on every evaluation. The decision keeps the policy repo, its commit and the policy’s digest. Values the policy defines are copied into the decision record, the check run and the PR comment as each decision needs them: for example its version, rule ids, protected patterns and labels, evidence requirements, check names and workflow paths, teams and escalation text. A malformed keyring.json, or a rejected entry in it, gives a fixed failure detail that quotes nothing from the file; a rejected entry is named only by its place in the file, as a number |
Memory: 5 minutes. Record: as the decision record |
Decision records (decisions table) |
— | One row per evaluation: the ids above, decision, reason code, comment, artifact, mode, enforcement action, trigger, policy repo and commit | Kept until deleted |
Decision exports (GET /api/admin/decisions/export) |
— | The records above, as stored, in a JSON or CSV file the administrator asks for. Arbiter keeps no copy and logs only the reason a stopped export stopped and how many rows it wrote | The file: wherever the administrator writes it, as partner data |
Sidecar evidence (evidence_submissions) |
The partner CI’s evidence envelope, up to 64 KB, sent with ARBITER_API_TOKEN |
The whole envelope, one row per repo and commit (a new submission replaces the old one) | Used for 24 hours only; the row is kept until deleted |
Retargeted pull requests (retargeted_prs) |
— | Owner, repo, PR number, time | Kept until deleted (it must never shrink) |
In-flight check runs (inflight_check_runs) |
— | Check run id, installation, owner, repo, head SHA, time | Deleted when the run completes or is superseded, or at the next startup |
Outdated results to withdraw (reblock_check_runs) |
— | Check run id, installation, owner, repo, head SHA, time | Deleted once the result is withdrawn or failed (tried again while the server runs, and at each startup until it works); a row from another installation is kept and named in the log at each startup until an administrator re-runs the check |
Merge events (merge_events, merge_watermarks) |
Merged pull request events, check runs read back, GitHub’s rule suites (who bypassed a rule) | One row per merge commit that went around Arbiter or was allowed: owner, repo, PR number, head and merge SHAs, merge time, merged_by and bypass_actor logins, class and reason, mode, send times; per-repo sweep and poll times. No titles or file names |
Kept until deleted |
Trusted scan results (trusted_check_results, trusted_token_ids) |
A trusted scan’s result, posted by the partner’s own pinned workflow with GitHub’s Actions identity token: check name, head SHA, success or failure |
Owner, repo, PR number, target branch, head SHA, check name, trusted workflow path and commit, conclusion, run id, run number and attempt, the token’s issue time and a hash of its id. No file contents, scanner output or tokens | Results: kept until deleted. Token-id hashes: deleted about 10 minutes after the token expires (checked every minute) |
| Installation tokens | Minted from the App key | Memory only | 55 minutes |
| Logs | — | Error messages and ids. No payloads, tokens, secrets or file contents. The trusted results route logs a reason code, <owner>/<repo>#<pr> once checked, and a short hash of the token id; never a token or an unchecked claim. An error can include a file path or a line of policy YAML; an unprotected policy repo’s gaps are logged |
The partner’s log system |
Alerts (ARBITER_ALERT_WEBHOOK_URL) |
— | Sent out to the partner’s own webhook: for a merge, a one-line text, the event (merge, or merge_resolved when a follow-up confirms an earlier unverified merge), the class, owner, repo, PR number, merged_by, bypass_actor, the time Arbiter recorded the merge, the PR’s GitHub link and, on a follow-up, a notice; for a health change, a one-line text, the event, the status, the part names, whether the part failed or recovered, and the time; for a test alert, a one-line text and the event. No audit links, file names, titles, reasons or comment text. The URL is a secret and is never logged |
The receiver’s retention, chosen by the partner |
| Check runs and PR comments | — | Written to the partner’s GitHub: actor login and type, a short form of the session id’s fingerprint (session_digest), policy version and digest, protected path patterns, up to 5 changed files per rule, missing evidence |
GitHub’s retention, in the partner’s organization |
Backups (backup) |
— | A full copy of the database and a manifest, with modes 0700/0600 |
Until the partner deletes them; there is no rotation |
Diagnostics bundle (diagnostics) |
— | App, Node and schema versions; setting names; health; row counts; the last 50 decisions’ id, time, decision, reason code and mode; merge-event counts by class and unsent counts (no names); trusted results row counts | Sent only when the partner chooses to send it |
Setup check (setup-check, run by an administrator) |
The App and its installation; the policy repo’s installation and protection, its file list, and each repository’s policy.yaml, rollout-mode.yaml and keyring.json; for each governed repository, the GitHub settings the posture check reads (A9), and the rules that apply to its default branch; its GitHub Actions settings (whether Actions is on, the default token’s permissions, approval for outside contributors’ and fork pull request runs, and the repository’s visibility) and its environments with their protection rules; only when the administrator gives a GitHub token of their own on standard input, the names of the repository’s secrets, of the organization secrets it can use and of each environment’s secrets, never their values, which GitHub’s API does not return; and for each team a policy names, whether it exists and its member and maintainer lists, of which only the two counts are kept |
It stores nothing but a temporary copy of each policy, in a folder the command deletes before it exits; if the command is killed first, the folder stays in the container’s temporary directory until the container is replaced. It prints to the administrator’s terminal organization, repository and team names, counts, fixed phrases and the engine’s rule codes: no person’s login, no token, no error text, no keyring content and no other policy content. Secret names are held in memory for that run only, used only to count secrets and to match known long-lived key names. Environment names are held for that run only, used only to ask GitHub for each environment’s secrets. Neither is ever printed, logged or kept | The command’s run; a killed run’s folder, until the container is replaced |
| Secrets | App private key, webhook secret, API and admin tokens, from the environment or <NAME>_FILE |
Memory only. Never in the database, logs, backups or diagnostics. Errors name the setting, never its value. When the administrator gives setup-check a GitHub token of their own (--admin-token-stdin), it comes from standard input, is held in memory for that run only, and is not ARBITER_ADMIN_TOKEN |
The process lifetime |
Terraform files (only when a policy has terraform_iam) |
The Terraform files under the policy’s covered paths, at the pull request’s head and at its merge base; the JSON or YAML files they load by a fixed path built from path.module; the names, never the contents, of .tfvars and Terragrunt files; the repository’s file list (each path, its mode, size and blob SHA) at the head, the merge base and the base branch’s tip, used only to find those files; GitHub’s compare answers, of which only the commit SHAs and the changed files’ names and statuses are used, with patches and commit messages dropped unread; and GitHub’s remaining request count, from a response header. No other file is read |
From Terraform files it keeps only file paths, line numbers, resource names and what it found, never what the files say. Kept in the decision record: the head, merge-base and base-tip commit SHAs, and each finding’s kind, file path, line, resource address and reason code; the same findings are shown in the check run, in the comment on the pull request and on the audit page for that comment. Held in memory during the evaluation only, then dropped: the files’ text, what Arbiter works out from it, and their blob SHAs. Never kept: file text, statements, principals, conditions or other values, and no blob SHA. Nothing is cached between evaluations. A read or parse error is logged with the path, the line and a fixed reason code, never the file’s text | File text and blob SHAs: the evaluation only. Findings and commit SHAs in the decision record: kept until deleted. Check run and PR comment: GitHub’s retention |
Workflow and dependency files (only when a policy has workflow_analysis or dependency_analysis) |
When a policy has workflow_analysis: the changed workflow files directly in .github/workflows/ (named .yml or .yaml) and the changed action files (action.yml or action.yaml, at any depth), at the pull request’s head and at its merge base; the pull request’s changed-file list (each file’s name and status, and a renamed or copied file’s old name); the repository’s file list (each path, its mode, size and blob SHA) at the head, the merge base and, when the base branch has moved, the base branch’s tip, used only to find those files; the base branch’s ref, of which only its commit SHA is used; GitHub’s compare answer, of which only the merge-base commit SHA is used; and GitHub’s remaining request count, from a response header. When a policy has dependency_analysis: the changed files its dependency_analysis.paths matches that Arbiter analyses (by default package.json, package-lock.json and npm-shrinkwrap.json, requirements*.txt, constraints*.txt and .txt files under a requirements folder, and go.mod), at the pull request’s head and at its merge base, with the same changed-file list, the repository’s file list at the head and the merge base, the base branch ref, the compare answer and the request count; and the names, never the contents, of the other changed files those paths match: go.sum, the registry-config files (.npmrc, .yarnrc, .yarnrc.yml, pip.conf and pip.ini), and any file Arbiter does not analyse (for example yarn.lock). No other file is read |
From workflow and dependency files it keeps only file paths, line numbers and what it found, never what the files say. Kept in the decision record: the head, merge-base and base-tip commit SHAs, and each finding’s kind, file path and line, and, for a likely typosquat, the name from Arbiter’s own list of popular packages that it resembles; the same findings are shown in the check run and in the comment on the pull request, and on the audit page for that comment. Held in memory during the evaluation only, then dropped: the files’ text, what Arbiter works out from it, and their blob SHAs. Never kept: file text, job ids, action references, package names from your files, expressions, versions, URLs, hosts or other values, and no blob SHA. Nothing is cached between evaluations. A read or parse error is logged with the path, the line and a fixed reason code, never the file’s text | File text and blob SHAs: the evaluation only. Findings and commit SHAs in the decision record: kept until deleted. Check run and PR comment: GitHub’s retention |
| Check-definition files (only when a policy requires an ordinary check, one that is not a trusted check) | The repository’s file list (each path, its mode, size and blob SHA) at the pull request’s head and at its merge base; GitHub’s compare answer, of which only the merge-base commit SHA is used; the workflow named by each ordinary required check, the workflows and actions it calls, and the files its run: steps start or use (scripts, Makefiles, package.json files, Python, JavaScript, TypeScript and Terraform files, and the test files a test runner finds), at the head; each workflow or action it calls in another repository, at the full commit it is pinned to, when Arbiter’s App can read it; and GitHub’s remaining request count, from a response header. A file in the repository over 1 MB is not read. The trace follows at most 400 files and 8 MB in all, and counts them after each round of reads, so one round can read past 400 files or 8 MB before the ordinary required checks count as missing. No other file is read |
Nothing from them is kept. Arbiter works out in memory which paths are check definitions, compares them with the pull request’s changed files, then drops them. Kept in the decision record, the check run and the comment: the fixed text that says why a check did not count (for example, that a link sits where checks are defined), never a path or text from a file. A failure is logged as a fixed reason code, never a path or an error message. | Memory: the evaluation only. Fixed text: as the decision record |
| Terraform plan data | Not handled. No code reads plan data. The Terraform check reads Terraform files, never plan output (“Terraform files”, above) | — | — |
Records from an earlier release
Section titled “Records from an earlier release”- On upgrade, the database is scrubbed once. For each stored record Arbiter can read, the session id is replaced by its fingerprint and every evidence failure detail by fixed text, and the comment is cleaned the same way, or replaced by a note where that cannot be done for certain. A stored record that cannot be read stays as it was, and only its comment is replaced. The file holds none of the replaced values in unused space.
- What the upgrade cannot reach keeps the old values: backups made before it, exports written before it, and the check runs and comments already on GitHub.
- Rolling back to a backup from before the upgrade brings the old values back, until the next upgrade.
Who can read what
Section titled “Who can read what”| Route | Who | Returns |
|---|---|---|
GET /audit/<owner>/<repo>/<id> (the check’s details link) |
Anyone with the link; the id is a random UUID | The decision’s summary: the same text as the PR comment, plus outcome, time, short commit and mode |
GET /api/decisions/<id> |
Holders of ARBITER_API_TOKEN |
The full record, including the artifact |
/api/admin/* |
Holders of ARBITER_ADMIN_TOKEN, from scripts. Not on the public port, which answers 404: the admin API is reached only with the admin command inside the container (A7) |
Repos, policy, mode, posture, decisions, merge events, and the decision export: the full records, including artifacts, author logins and comments, of the organization Arbiter serves only |
POST /api/evidence/<owner>/<repo>/<sha> |
Holders of ARBITER_API_TOKEN (partner CI) |
Accepts evidence |
POST /api/trusted-check-results/<owner>/<repo>/<pr> |
Public: any GitHub Actions runner. Authenticated only by GitHub’s Actions identity token for the pinned trusted workflow; header at most 8 KB, body at most 4 KB, 8 at a time, 10 a minute per PR and 60 a minute per repo after verification | Accepts a trusted scan result; returns only a status and a reason code |
Deleting everything
Section titled “Deleting everything”Stop Arbiter, then delete the data volume (/data/arbiter.db and its -wal/-shm files) and every backup folder.
Delete the GitHub App from your organization to stop all access. PR comments and check runs stay in GitHub until
you delete them there. At the end of a pilot, tell us which of these you did; we keep no copy.
Known limits
Section titled “Known limits”Known limits, and how each is handled, are in Arbiter’s security packet, which we share on request.
Built from Arbiter 0.1.3 at commit 05d1dcb.