From 4a25bab0fbcea032b15a0b8c73816b7257ced8a1 Mon Sep 17 00:00:00 2001 From: finalerock44 Date: Fri, 4 Dec 2026 12:32:55 +0000 Subject: [PATCH 1/3] docs: envelope encryption is always on; --no-encrypt is ignored (dcd#2296) The dcd CLI no longer has an opt-out: --no-encrypt, DCD_ENCRYPT=0 and the MCP tool's encrypt input print a warning and change nothing, and --encrypt is a no-op. Describe encryption as always on, mark the flag and env var rows as ignored, drop the MCP encrypt input, and say "uploaded without envelope encryption" in the dedup notes. --- cli/dcd-cloud.md | 2 +- cli/dcd-upload.md | 4 ++-- cli/overview.md | 2 +- configuration/app-management.md | 2 +- configuration/environment-variables.md | 2 +- mcp/tools.md | 1 - security/security-overview.md | 2 +- 7 files changed, 7 insertions(+), 8 deletions(-) diff --git a/cli/dcd-cloud.md b/cli/dcd-cloud.md index 5b24101..c9f9f2c 100644 --- a/cli/dcd-cloud.md +++ b/cli/dcd-cloud.md @@ -34,7 +34,7 @@ See [Authentication](../getting-started/api-keys.md) for the full picture. | `--app-url ` | Signed URL to an Expo iOS build (`.tar.gz`). The archive is downloaded and extracted automatically. Expo signed URLs expire after ~1 hour. Mutually exclusive with `--app-file` | | `--app-file ` | Path to the app binary (alternative to the positional `` argument) | | `--ignore-sha-check` | Force re-upload even if a binary with the same SHA already exists | -| `--encrypt` / `--no-encrypt` | Envelope encryption is on by default: the app binary, flow files and `--env` values are encrypted on your machine before upload, each with its own key. Pass `--no-encrypt` (or set `DCD_ENCRYPT=0`) to turn it off; the upload is still encrypted in transit. An unchanged binary is still deduplicated, so it isn't uploaded again. See [Data Encryption](../security/security-overview.md#data-encryption) | +| `--encrypt` / `--no-encrypt` | Ignored. Envelope encryption is always on: the app binary, flow files and `--env` values are encrypted on your machine before upload, each with its own key. `--no-encrypt` (and `DCD_ENCRYPT=0`) print a warning and change nothing. An unchanged binary is still deduplicated, so it isn't uploaded again. See [Data Encryption](../security/security-overview.md#data-encryption) | ### Device diff --git a/cli/dcd-upload.md b/cli/dcd-upload.md index 0d90773..fa9531f 100644 --- a/cli/dcd-upload.md +++ b/cli/dcd-upload.md @@ -2,7 +2,7 @@ Upload an app binary to DeviceCloud and get back a binary ID. Use the binary ID in subsequent `dcd cloud` runs to skip re-uploading the same binary. -DeviceCloud deduplicates binaries by SHA checksum — if you upload the same binary twice, the existing ID is returned and no upload occurs. An envelope-encrypted upload is only matched against your earlier envelope-encrypted uploads, so a binary you previously uploaded with `--no-encrypt` is uploaded once more the first time it's envelope-encrypted. +DeviceCloud deduplicates binaries by SHA checksum — if you upload the same binary twice, the existing ID is returned and no upload occurs. An envelope-encrypted upload is only matched against your earlier envelope-encrypted uploads, so a binary you previously uploaded without envelope encryption is uploaded once more the first time it's envelope-encrypted. ```bash dcd upload [flags] @@ -22,7 +22,7 @@ dcd upload [flags] | `--api-url ` | API base URL. Defaults to the environment you logged in to with `dcd login`, otherwise `https://api.devicecloud.dev` | | `--app-url ` | Signed URL to an Expo iOS build (`.tar.gz`), used instead of ``. The archive is downloaded and extracted automatically | | `--ignore-sha-check` | Force re-upload even if a binary with the same SHA already exists | -| `--encrypt` / `--no-encrypt` | Envelope encryption is on by default: the binary is encrypted on your machine before upload, with its own key. Pass `--no-encrypt` (or set `DCD_ENCRYPT=0`) to turn it off; the upload is still encrypted in transit. See [Data Encryption](../security/security-overview.md#data-encryption) | +| `--encrypt` / `--no-encrypt` | Ignored. Envelope encryption is always on: the binary is encrypted on your machine before upload, with its own key. `--no-encrypt` (and `DCD_ENCRYPT=0`) print a warning and change nothing. See [Data Encryption](../security/security-overview.md#data-encryption) | | `--json` | Output the binary ID as JSON | | `--debug` | Enable verbose debug logging | diff --git a/cli/overview.md b/cli/overview.md index 7f1b537..ff5cd29 100644 --- a/cli/overview.md +++ b/cli/overview.md @@ -97,7 +97,7 @@ Every command except the `dcd mcp` server takes `--json`, which prints one JSON |----------|-------------| | `DEVICE_CLOUD_API_KEY` | API key to use when `--api-key` isn't passed. Takes precedence over a `dcd login` session | | `DCD_CONFIG_DIR` | Directory for the `dcd login` session file (default `$XDG_CONFIG_HOME/dcd`, or `~/.dcd`) | -| `DCD_ENCRYPT` | `dcd cloud`, `dcd upload`, `dcd device` (when it uploads a local build) and the MCP server apply envelope encryption to the app binary, flows and `--env` values on your machine before upload by default. Set to `0` to turn it off, the same as passing `--no-encrypt`; uploads are still encrypted in transit. A flag on the command line takes precedence | +| `DCD_ENCRYPT` | Ignored. `dcd cloud`, `dcd upload`, `dcd device` (when it uploads a local build) and the MCP server always apply envelope encryption to the app binary, flows and `--env` values on your machine before upload. Setting it to `0` prints a warning and changes nothing | | `DCD_TELEMETRY_DISABLED` | Set to `1` to turn off [telemetry](#telemetry) | | `DCD_API_URL` | MCP server only. The API base URL to use (CLI commands take `--api-url` instead) | | `DCD_MCP_READONLY` | MCP server only. Set to `1` to offer only the tools that change nothing, the same as `dcd mcp --read-only` (see [Read-only mode](../mcp/connect.md#read-only-mode)) | diff --git a/configuration/app-management.md b/configuration/app-management.md index 78f9307..4de0879 100644 --- a/configuration/app-management.md +++ b/configuration/app-management.md @@ -53,7 +53,7 @@ iOS runs need a simulator build. Device builds (`.ipa`) and Android App Bundles ### SHA Hash Checking -By default, DeviceCloud checks the SHA hash of your binary to avoid redundant uploads (it will automatically work out the app-binary-id for you). Envelope-encrypted uploads (the default) are only matched against your earlier envelope-encrypted uploads, so a binary you previously uploaded with `--no-encrypt` is uploaded once more the first time it's envelope-encrypted. To override: +By default, DeviceCloud checks the SHA hash of your binary to avoid redundant uploads (it will automatically work out the app-binary-id for you). Envelope-encrypted uploads are only matched against your earlier envelope-encrypted uploads, so a binary you previously uploaded without envelope encryption is uploaded once more the first time it's envelope-encrypted. To override: ```bash dcd cloud --app-file ./app.apk flows/ --ignore-sha-check diff --git a/configuration/environment-variables.md b/configuration/environment-variables.md index 4d40134..31030f8 100644 --- a/configuration/environment-variables.md +++ b/configuration/environment-variables.md @@ -40,7 +40,7 @@ dcd cloud app.apk flows/ -e USERNAME=${CI_USERNAME} \ -e PASSWORD=${CI_PASSWORD} ``` -The CLI applies envelope encryption to `--env` values on your machine before they're uploaded, along with the app binary and your flow files. This is on by default; `--no-encrypt` or `DCD_ENCRYPT=0` turns it off, and the values are still encrypted in transit. Because the values are envelope-encrypted, the console doesn't list them on the test result. See [Data Encryption](../security/security-overview.md#data-encryption). +The CLI applies envelope encryption to `--env` values on your machine before they're uploaded, along with the app binary and your flow files. This is always on, and the values are also encrypted in transit. Because the values are envelope-encrypted, the console doesn't list them on the test result. See [Data Encryption](../security/security-overview.md#data-encryption). ## iOS: SIMCTL Variable Passthrough diff --git a/mcp/tools.md b/mcp/tools.md index 8deef9e..d6ca7a2 100644 --- a/mcp/tools.md +++ b/mcp/tools.md @@ -96,7 +96,6 @@ This tool consumes test credits. It's annotated as destructive so clients can pr | `priority` | `low` \| `normal` \| `high` | [Run priority](../configuration/run-priority.md) (default `normal`). Reorders only your team's own queued runs. | | `configFile` | string | Path to a [workspace config](../configuration/workspace-config.md) | | `ignoreShaCheck` | boolean | Force re-upload of the binary even if an identical one already exists | -| `encrypt` | boolean | Apply envelope encryption to the binary, flows and `env` values on your machine before upload. Omit it to follow `DCD_ENCRYPT`, then the default, which is on; pass `false` to turn it off (the upload is still encrypted in transit). See [Data Encryption](../security/security-overview.md#data-encryption) | | `dryRun` | boolean | Preview which flows would run, without submitting | | `wait` | boolean | Block until the run completes instead of returning immediately (default `false`) | | `waitTimeoutSeconds` | integer | Max seconds to wait when `wait` is true, 30–3600 (default `600`). A flow with [extended runtime](../configuration/extended-runtime.md) can run for up to 20 minutes, so raise this when the run includes one | diff --git a/security/security-overview.md b/security/security-overview.md index 138efac..8daa3ac 100644 --- a/security/security-overview.md +++ b/security/security-overview.md @@ -38,7 +38,7 @@ Where your data is held: Data held by our database and file storage providers is encrypted at rest with AES-256, and data sent over the internet is encrypted in transit via TLS. Credentials get additional protection at the application level: API keys are stored only as a one-way hash, and webhook secrets and access tokens for connected services (such as Slack) are encrypted before being stored in the database. -On top of TLS, your uploads get envelope encryption by default. Before anything is uploaded, the CLI encrypts your app binary, flows and environment variables on your machine, each with its own random key (AES-256-GCM). It then encrypts each of those keys with DeviceCloud's public key (X25519), so the copies held in our storage and caches are ciphertext, and only our API can recover the keys that decrypt them. To turn envelope encryption off, pass `--no-encrypt` or set `DCD_ENCRYPT=0`. The upload is still encrypted in transit. +On top of TLS, the CLI always applies envelope encryption to your uploads. Before anything is uploaded, it encrypts your app binary, flows and environment variables on your machine, each with its own random key (AES-256-GCM). It then encrypts each of those keys with DeviceCloud's public key (X25519), so the copies held in our storage and caches are ciphertext, and only our API can recover the keys that decrypt them. ## Data Retention From 8ecc147100acf7132938d89742dbb2cde5f630d5 Mon Sep 17 00:00:00 2001 From: finalerock44 Date: Fri, 4 Dec 2026 12:43:41 +0000 Subject: [PATCH 2/3] docs: deprecate uploads without envelope encryption (dcd#2296) Runs from out-of-date dcd CLIs that upload without envelope encryption now print a warning (dcd#2296). List the deprecation, with no date set yet for refusing them. Merge once that warning is live in prod. --- getting-started/deprecations.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/getting-started/deprecations.md b/getting-started/deprecations.md index fd0dba9..2670f98 100644 --- a/getting-started/deprecations.md +++ b/getting-started/deprecations.md @@ -1,5 +1,5 @@ --- -description: "The devices, OS versions, Maestro versions, report formats, runner types and API endpoints DeviceCloud is retiring, when, and what to move to, plus what was removed recently." +description: "The devices, OS versions, Maestro versions, report formats, runner types, API endpoints and upload formats DeviceCloud is retiring, when, and what to move to, plus what was removed recently." --- # Deprecations & Removals @@ -22,6 +22,8 @@ Removal dates are targets, subject to change based on usage. `dcd live` is deprecated too, with no removal date set. Use [`dcd device`](../cli/dcd-device.md) instead. +Uploads without envelope encryption are deprecated, with no date set yet for refusing them. Only out-of-date `dcd` CLIs still send them, and their runs print a warning that says so. Upgrade the CLI (`npm install -g @devicecloud.dev/dcd@latest`), and update the pin if your CI pins a version. See [Data Encryption](../security/security-overview.md#data-encryption). + ## Recently removed | Date | Removed | From 2c116095a4d71990effb7c85bab76ab3a146a0ee Mon Sep 17 00:00:00 2001 From: finalerock44 Date: Fri, 4 Dec 2026 13:14:49 +0000 Subject: [PATCH 3/3] docs: name what the encryption deprecation covers (dcd#2296) --- getting-started/deprecations.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/getting-started/deprecations.md b/getting-started/deprecations.md index 2670f98..6554929 100644 --- a/getting-started/deprecations.md +++ b/getting-started/deprecations.md @@ -22,7 +22,7 @@ Removal dates are targets, subject to change based on usage. `dcd live` is deprecated too, with no removal date set. Use [`dcd device`](../cli/dcd-device.md) instead. -Uploads without envelope encryption are deprecated, with no date set yet for refusing them. Only out-of-date `dcd` CLIs still send them, and their runs print a warning that says so. Upgrade the CLI (`npm install -g @devicecloud.dev/dcd@latest`), and update the pin if your CI pins a version. See [Data Encryption](../security/security-overview.md#data-encryption). +Uploads without envelope encryption are deprecated, with no date set yet for refusing them. That means any upload the CLI doesn't encrypt before sending: one from an out-of-date `dcd` CLI run with `--no-encrypt` or `DCD_ENCRYPT=0`, or from a CLI that doesn't apply envelope encryption at all. The current CLI always applies it and ignores both settings. Runs that upload without it print a warning that says so. Upgrade the CLI (`npm install -g @devicecloud.dev/dcd@latest`), and update the pin if your CI pins a version. See [Data Encryption](../security/security-overview.md#data-encryption). ## Recently removed