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