---
id: cloud/account-management/data-storage-and-masking
title: Data storage and controls in Cypress Cloud
description: Learn how to mask and control test data that is sent to Cypress Cloud
section: cloud
source_path: docs/cloud/account-management/data-storage-and-masking.mdx
version: 1934fa485ad0afcbbd3bdb674d5c5f1f991b55cf
updated_at: '2026-11-14T05:15:51.878Z'
---
# Data Storage and Controls

Refer to the [Cypress Cloud Terms of Use](https://cypress.io/terms-of-use) and our [Security & Compliance](https://on.cypress.io/security?utm_source=docs.cypress.io&utm_medium=data-storage-and-masking) guide for more specifics around reasonable use of Cypress Cloud, data storage, and security at Cypress.

## Types of Data

When you run Cypress via `cypress run` and pass the `--record` flag, the following data is stored in Cypress Cloud for every run:

*   Standard output in the terminal
*   Test results
*   Test definitions
*   Cypress configuration (minus Cypress environment variables)
*   Screenshots
*   Videos
*   OS environment variables related to CI and git information

When [Test Replay](/llm/markdown/cloud/features/test-replay.md) capturing is enabled, the additional data outlined below will be sent to Cypress Cloud. [See our guide on disabling Test Replay.](/llm/markdown/cloud/features/test-replay.md#Opt-out-of-Test-Replay)

*   The rendered DOM and CSS styles for the application under test
*   Cypress commands and events represented in the Command Log
*   Network traffic within your application under test
*   Browser console logs

Cypress Cloud does not capture anything related to the code of your application under test or the code within any repositories that are associated with your project.

When [Cloud AI](/llm/markdown/cloud/faq.md#What-is-Cloud-AI) is enabled, test content may be shared with session-bound AI model to enhance your test management experience. Your data is not used to train AI models and will not be shared between customers.

You, the customer, own and are responsible for your test content. We trust that customers will make decisions about the appropriateness of data to use in testing and will avoid use of PII, PHI, or other types of protected information. Cypress makes commercially reasonable efforts to protect confidentiality of information that is provided to Cypress Cloud.

## Data Controls

We understand that controlling what data is sent to Cypress Cloud is important to our users. Cypress provides a number of ways to control what data is sent to Cypress Cloud.

If you'd like more granular control over what data is sent to Cypress Cloud, [contact us](https://www.cypress.io/contact/) to discuss your needs.

### Project access controls

Cypress Cloud offers controls around the visibility of a project. You can set a project to be public or private. [See project access control settings.](/llm/markdown/cloud/account-management/projects.md#Public-vs-Private)

Setting a project to private means that only the users explicitly invited to the organization will have visibility into the project, its runs, and any data captured by Cypress.

### Test Replay controls

#### Network data redaction

By default, Cypress automatically redacts sensitive values from your network logs before uploading Test Replay data to Cypress Cloud. Redaction runs in the Cypress app, on your machine.

##### What gets redacted

Cypress redacts known-sensitive values from captured network requests and responses:

*   Authentication and token headers, including `authorization`, `proxy-authorization`, `cookie`, `set-cookie`, and `x-api-key`
*   Credential fields in request and response bodies, including `password`, `client_secret`, `access_token`, `refresh_token`, and `id_token`
*   Access tokens passed as URL parameters, including `access_token`, `id_token`, `code`, and `token`
*   Values that match a JWT or SAML-response pattern, wherever they appear

Redacted values appear as `(redacted)` in the Test Replay network log. Everything else is captured as usual, including request timing, status codes, and the structure of each request, so you keep the context you need to debug a request without exposing the values.

Here's how a redacted value looks, next to an un-redacted one:

**Note**: When this setting is active, API response bodies that can't be evaluated for redaction are **fully dropped** before storing the Test Replay data. For example, response bodies larger than 512 KB, or ones Cypress can't decode to plain text, aren't captured at all. They show as "unavailable" in the network log.

##### Where redaction happens

Redaction runs in the Cypress app while your tests record, before Test Replay data is uploaded.

##### Who can see Test Replay data

Test Replay data, including the network log, is visible to everyone with access to your project. In a private project, only people invited to your organization with the required team roles can see them. In a public project, any Cloud user can see the runs and the captured data.

Redaction narrows what sits in that Test Replay data. If you are interested in managing access to Test Replay itself, review your project access controls.

##### Turn redaction off

You can turn redaction off per project.

1.  Open your project settings in Cypress Cloud.
2.  Go to the **Test Replay** section.
3.  Turn off **Prevent capturing sensitive network data**.

#### Sensitive form input masking

By default, Cypress replaces sensitive form input values with asterisks before creating Test Replay artifacts. Like network data redaction, masking runs in the Cypress App on your machine before Cypress uploads any data to Cypress Cloud.

##### What gets masked in Test Replay

Cypress masks values entered into these fields:

*   Password fields (`input[type="password"]`)
*   Hidden fields (`input[type="hidden"]`)
*   Credit card and payment fields that use standard `autocomplete` attributes

Masked values appear as asterisks in the captured DOM. You can inspect the form's structure and behavior without storing the entered values. Cypress captures the rest of the page as usual.

##### Update what is masked in Test Replay

Organization Owners and Admins can turn off masking for individual projects:

1.  Open your project settings in Cypress Cloud.
2.  Go to the **Test Replay** section.
3.  Turn off **Mask sensitive input values**.

Users without the Owner or Admin role see a locked setting and cannot change it.

#### Disable Test Replay

You can disable capturing data in Test Replay per project by following [this guide](/llm/markdown/cloud/features/test-replay.md#Opt-out-of-Test-Replay). This means Test Replay will not be available for viewing or debugging in the project. This will prevent Cypress Cloud from capturing the following data:

*   The rendered DOM and CSS styles for the application under test
*   Cypress commands and events represented in the Command Log
*   Network traffic within your application under test
*   Browser console logs

### Screenshot controls

#### Blackout elements in screenshots

The [`blackout`](/llm/markdown/api/commands/screenshot.md#Black-out-dynamic-or-sensitive-content-in-screenshots) option of `cy.screenshot()` covers every element that matches a selector with a black box when Cypress takes the screenshot, so those elements aren't visible in that screenshot, wherever you store or share it.

To black out elements in every screenshot, set a default in your [support file](/llm/markdown/app/references/configuration.md#Testing-Type-Specific-Options):

```
before(() => {
  Cypress.Screenshot.defaults({
    // black out every element with the mask-cy attribute
    blackout: ['[mask-cy]'],
  })
})
```

To black out elements in a single screenshot, pass `blackout` to that `cy.screenshot()`:

```
it('admin page loads', () => {
  cy.visit('/admin')
  cy.screenshot({
    blackout: ['.user-name'],
  })
})
```

`blackout` doesn't apply to the screenshots Cypress takes automatically when a test fails, so sensitive elements stay visible in them. To hide sensitive elements in every screenshot, failure screenshots included, hide them in the default `onBeforeScreenshot` and `onAfterScreenshot` callbacks, as shown in [Keep sensitive data out of screenshots, including failures](/llm/markdown/api/commands/screenshot.md#Keep-sensitive-data-out-of-screenshots-including-failures). Or turn off failure screenshots by setting [`screenshotOnRunFailure`](/llm/markdown/app/references/configuration.md#Screenshots) to `false`.

#### Remove Cypress Command Log from screenshots

The [`capture`](/llm/markdown/api/commands/screenshot.md#Capture-the-viewport-the-full-page-or-the-whole-Cypress-runner) option of `cy.screenshot()` decides whether a screenshot includes the Cypress Command Log. With `viewport` or `fullPage`, Cypress captures only the application under test, so nothing from the Command Log appears in the image.

To capture only the application under test with every `cy.screenshot()`, set a default in your [support file](/llm/markdown/app/references/configuration.md#Testing-Type-Specific-Options):

```
before(() => {
  Cypress.Screenshot.defaults({
    capture: 'viewport', // or fullPage
  })
})
```

To capture only the application under test in a single screenshot, pass `capture` to that `cy.screenshot()`:

```
it('sign in page', () => {
  cy.visit('/sign-in')
  cy.screenshot({
    capture: 'viewport', // or fullPage
  })
})
```

The screenshots Cypress takes automatically when a test fails always use `capture: 'runner'`, whatever default you set, so they include the Command Log. To keep the Command Log out of failure screenshots, hide the Runner UI. Cypress hides it by default when you record a run with Test Replay enabled, and [`--no-runner-ui`](/llm/markdown/app/references/command-line.md#cypress-run-no-runner-ui) hides it in any `cypress run`. Or turn off failure screenshots by setting [`screenshotOnRunFailure`](/llm/markdown/app/references/configuration.md#Screenshots) to `false`. To keep specific values out of the Command Log itself, see [Mask data in the Cypress Command Log](#Mask-data-in-the-Cypress-Command-Log).

### Video controls

#### Disable video upload

You can delete videos that are recorded when you are passing `video: true` by following [this guide to control what is uploaded to Cypress Cloud](/llm/markdown/app/guides/screenshots-and-videos.md#Control-which-videos-to-keep-and-upload-to-Cypress-Cloud).

### Cypress Command Log controls

#### Turn off Cypress Command Log rendering

You can disable showing the entirety of the Cypress Command Log as well as the Application under Test (AUT) controls in your tests to prevent all test content from being shown and recorded in any screenshot or video by passing `--no-runner-ui` via the CLI while running Cypress tests. See [Cypress Command Line options](/llm/markdown/app/references/command-line.md#Options). This means that the AUT will be the only thing that is rendered while running tests, so the only thing that is captured in screenshots and videos.

When `--no-runner-ui` is set, data from the Cypress Command Log will still be sent to Cypress Cloud to be generated and displayed in Test Replay if it is enabled. See [Disable Test Replay](/llm/markdown/cloud/features/test-replay.md#Opt-out-of-Test-Replay) for more information.

#### Mask data in the Cypress Command Log

There are multiple ways to mask data in the Cypress Command Log. When these strategies are used, data within test definitions will still be sent to Cypress Cloud.

##### `log: false` for Cypress commands

You can pass `log: false` as an option to Cypress-specific commands in your tests to prevent the data from being shown visibly in the Cypress Command Log and being shown in any captured screenshots or videos.

##### Disable logging of XHR/Fetch requests

By default, Cypress logs all requests that match any [`cy.intercept()`](/llm/markdown/api/commands/intercept.md) in the Cypress Command Log, as well as all XMLHttpRequests and fetch requests. You can use `cy.intercept()` to disable these logs by passing `{ log: false }` in the second parameter. See the [`cy.intercept()`](/llm/markdown/api/commands/intercept.md#Disabling-logs-for-a-request) command for more information.

```
beforeEach(() => {
  // disable Cypress's default behavior of logging all XMLHttpRequests and fetches
  cy.intercept({ resourceType: /xhr|fetch/ }, { log: false })
})
```

##### Mask Cypress commands in the Cypress Command Log

Users can mask passwords in the Cypress Command Log by using a custom command. [See our guide on masking the contents of the `.type()` command](/llm/markdown/api/cypress-api/custom-commands.md#Overwrite-type-command) for a code example to accomplish this.

### Network requests controls

Cypress allows users to block requests from specified hosts. [See our blockHosts configuration guide.](/llm/markdown/app/references/configuration.md#blockHosts)

### Cloud AI controls

[Cloud AI](/llm/markdown/cloud/faq.md#What-is-Cloud-AI) is enabled by default for all users on any Cloud plan.

Organization admins and owners can enable and disable the AI capabilities for their entire organization from the organization settings.

When Cypress AI test-authoring tools read your app's DOM, values from sensitive field types are automatically excluded before any data is sent to the AI model. This applies to password fields (`input[type=password]`), credit card fields using standard autocomplete attributes, and hidden inputs (`input[type=hidden]`). The surrounding DOM structure is still used; only the field values are excluded.

For details, see [`cy.prompt` sensitive data handling](/llm/markdown/app/guides/ai-test-generation.md#Sensitive-data-handling) and [Studio AI sensitive data handling](/llm/markdown/app/guides/cypress-studio.md#Sensitive-data-handling).

## See Also

*   [Cypress Cloud FAQ](/llm/markdown/cloud/faq.md)
