Pre-release. Parity is not publicly available yet: the CLI, the GitHub Action and the hosted workspace open at launch. The demo runs on example data.

Skip to content

Security and data handling

Where Parity runs, what leaves your machine, how reports are redacted, how mutating requests are guarded, and what the optional hosted workspace stores.

The short version:

  • The CLI runs on your machine or your CI runner and talks to your APIs directly. No account, no agent, no inbound access.
  • Nothing is sent to x1991 Labs unless you upload a report, and a report is redacted before it is written.
  • Mutating requests are only sent to local addresses unless you authorise them.

#Customer-hosted execution

parity compare makes HTTP requests from the process you started to the two URLs you configured. It makes no other network request: no telemetry, no update check, no licence check.

The hosted workspace is a separate, optional service. It never receives credentials for your APIs and never connects to them. The only thing it can receive is a report file that your CLI chose to send, with --upload or parity upload, authenticated by a project token you created.

Everything described in the rest of the documentation — comparing, generating scenarios, every report format, the GitHub Action — works without it.

#Redaction

Comparison always runs on the real values. Redaction is applied to what is written: the JSON report, every format rendered from it, and terminal output. It happens in the CLI process, before a report exists on disk and therefore before anything could be uploaded.

There are three layers.

1. Header names. The values of these request and response headers are replaced with [REDACTED]:

authorization, proxy-authorization, cookie, set-cookie, x-api-key, x-auth-token, x-csrf-token, x-amz-security-token

2. JSON member names and paths. A member is redacted, wherever it appears in a request or response body, when its name — lower-cased, with - and _ removed — ends with one of:

password, passwd, secret, token, apikey, accesskey, privatekey, authorization, cardnumber, cvv, cvc, ssn

So api_key, clientSecret and refresh-token are all covered. Query parameters with such names (and key, signature, sig) are redacted in recorded URLs, and credentials embedded in a URL are removed.

3. Literal secret values. Every value Parity knows to be a secret is scrubbed from every string in the report, wherever it turns up — in a body, a header, a URL or an error message. That covers every value substituted from ${ENV} in parity.yaml, every credential in an auth block or URL, and PARITY_TOKEN. Values shorter than six characters are not scrubbed, because replacing them would corrupt unrelated text.

Add your own names and paths with redaction:

yaml
redaction:
  headers: [x-internal-trace]
  fields: [iban, date_of_birth]
  paths: [$.customer.address]

When a difference is at a redacted location, the report still says that the location differs and how (value_changed, field_added, …) but withholds both values and marks the difference redacted:

`$.api_key` differs (values redacted).

#What redaction does not do

Redaction works on names, paths and known secret values. It does not understand your data.

  • Personal or confidential data in fields with ordinary names (email, name, notes) is not redacted unless you list the field or path.
  • A secret that Parity never saw as a secret — one generated by your API at run time and returned in a field called value, say — is not recognised.
  • Non-JSON bodies are scrubbed for literal secrets only.

Treat a report as you would treat a log of the same requests. Run comparisons against test environments with test data, and add redaction rules for anything sensitive that your API returns.

#Secrets

  • Put credentials in environment variables and reference them as ${NAME} in parity.yaml. Do not commit them.
  • The hosted token is read from PARITY_TOKEN only — there is deliberately no flag for it, so it cannot end up in shell history or a process list.
  • In workflows, {{$env.NAME}} reads the process environment at run time. Unlike ${NAME} in parity.yaml, a value read this way is not registered as a secret, so it is redacted only if the header or field it is sent in is covered by the rules above. Prefer auth blocks and ${NAME} for credentials.

#The mutation guard

Scenarios that send POST, PUT, PATCH or DELETE change state. To make it hard to do that to the wrong system by accident, Parity only sends mutating scenarios to an environment that is authorised for them.

An environment is authorised by default when its URL is a local address:

  • localhost, host.docker.internal, and names ending in .localhost, .local, .test, .internal or .localdomain;
  • loopback, private-range and link-local IP addresses;
  • single-label host names such as api (docker-compose services, CI service containers).

Everything else is not. A mutating scenario aimed at an unauthorised environment is not sent — to either environment — and is reported as skipped with reason mutation_blocked:

  – 1 skipped
      Not sent: this scenario makes mutating requests and the baseline environment is not a local
      address. Point Parity at a disposable test environment, then set `allow_mutations: true` on that
      environment or pass --allow-mutations.

Read-only scenarios still run. parity validate warns in advance about scenarios that will be blocked.

To authorise a remote environment, state it explicitly, per environment:

yaml
environments:
  baseline:
    url: https://baseline.staging.example.test
    allow_mutations: true
  candidate:
    url: https://pr-128.preview.example.test
    allow_mutations: true

or for one run with --allow-mutations. You can also set allow_mutations: false on a local environment to protect it.

Only do this for disposable test environments. Generated OpenAPI scenarios include deliberately invalid and boundary requests, and a DELETE scenario deletes.

#Dry run

--dry-run loads everything and prints what would be sent, without sending a single request:

bash
parity compare --dry-run

Use it together with parity validate --list before pointing Parity at an environment for the first time.

#Untrusted pull requests

A pull request can change the API, its build scripts, the Parity configuration and the scenarios. In CI, all of that runs on your runner. The usual rules for untrusted code apply, and Parity is built to fit within them:

  • Run on pull_request, not pull_request_target. Fork pull requests then run without secrets and with a read-only token. Parity needs neither when both versions run on the runner.
  • The hosted upload is skipped without a token. An empty token is expected for forks; the check still runs and still reports.
  • Keep real credentials out of the job. If the API needs credentials to start, use throwaway ones created in the job. A scenario file controls which requests are sent with the environment's auth, so anything the job can reach with those credentials, a pull request can reach.
  • The action never evaluates its inputs as shell. Inputs are passed through the environment and args is split into words, not executed.
  • Take the configuration from the base branch (working-directory: base) if scenarios must not be editable by the pull request under review.

#What the hosted workspace stores

If you upload reports, the hosted service stores:

  • the report as produced by the CLI — already redacted — including request and response bodies of changed scenarios, the scenario names and the environment URLs;
  • run metadata: revisions, repository and ref, pull request number, counts, verdict;
  • what people do in the workspace: review classifications and notes, membership, an audit log;
  • account data from the identity provider (name, e-mail address) and, once billing is live, a customer reference at the payment provider.

It does not store, and is never sent, API credentials, unredacted responses, your source code or your OpenAPI document.

Request and response payloads are compressed and encrypted at rest with AES-256-GCM before they are written to storage. Project tokens are stored as SHA-256 hashes; the token itself is shown once, when it is created.

#Retention

Runs are deleted when they are older than the project's retention period, together with their stored payloads.

PlanDefault retentionMaximum
Free7 days7 days
Pro90 days365 days
Team90 days365 days

When an organisation is deleted, its projects, tokens, runs and reviews are purged.

#Limitations

Stated plainly, so that you can decide what to rely on:

  • Parity is pre-release (v0.1.0) and has not had an independent security audit.
  • Redaction is rule-based and cannot recognise sensitive data it has no rule for. A report can contain personal data if your test environment does.
  • The mutation guard is a safeguard against accidents, not a sandbox. Once you authorise an environment, Parity sends whatever the scenarios say.
  • Parity sends requests to whatever URLs the configuration names. Treat a parity.yaml from an untrusted source like any other script.
  • The hosted workspace is operated by x1991 Labs on third-party infrastructure; self-hosting it is not offered yet. If your results must not leave your network, do not upload them — the CLI and its HTML report do not need the hosted service.

To report a vulnerability, use private vulnerability reporting on the GitHub repository rather than a public issue.

    Loading the index…