tfa_secret before sending them to us. You can find your encryption key in your workspace settings. Here’s a code snippet you can use:
- Python
- JavaScript
Security Overview
Our credential vault adopts the envelope‑encryption pattern recommended by NIST SP 800‑57 and mirrors proven designs used by services like AWS Secrets Manager and Google Secret Manager. Plaintext credentials are never persisted or transmitted to our servers. This page outlines the key design choices behind that guarantee.Key hierarchy
- Per‑user data key (AES‑256‑GCM)
- Can be generated and managed in your workspace settings
- Stored only in encrypted form.
- Can be rotated at any time from the dashboard.
- Vault master key – a 256‑bit key held in AWS KMS/HSM.
- Used solely to encrypt/decrypt each user’s data key.
- Stored as a Kubernetes Secret
Secret ingestion flow
- Client encrypts the credential locally with their data key.
- The ciphertext is sent to the vault. The vault verifies the envelope and stores it verbatim.
- The vault keeps a mapping:
user‑id → { encrypted_data_key, ciphertext, metadata }.
The vault rejects any credential that is not already encrypted with the correct data key for that user.
Runtime access
When a browser agent needs a credential:- The agent requests the ciphertext.
- The vault decrypts the data key entirely in‑memory using the master key mounted from the Kubernetes Secret.
- The agent uses it, and immediately zeroises the buffer.
- No decrypted value is logged, cached, or exported.
Key rotation
Users may rotate their data key at any time. The vault automatically:- Generates a new data key.
- Decrypts each stored secret with the old key within a secure enclave.
- Re‑encrypts the secret with the new key and updates metadata.
- Shreds the old key material.
Threat model & mitigations
| Threat | Mitigation |
|---|---|
| Database breach | Secrets remain encrypted with per‑user keys; attacker lacks the data keys. |
| Compromise of a single data key | Blast radius limited to that user only. |
| Master key exposure | Master key stored in KMS with hardware isolation & strict IAM; usage logged and alerted. |
| Replay/tampering | AES‑GCM tag validation prevents bit‑flips or stale ciphertext from being accepted. |
Credential Configuration
Vault entries support comprehensive authentication and session management options to accommodate different website requirements and security needs.Two-Factor Authentication (TFA)
CloudCruise supports multiple TFA methods for automated login flows:Authenticator App (TOTP)
- Method:
AUTHENTICATOR - Setup: Provide the TOTP secret key from your authenticator app
- Usage: CloudCruise generates time-based one-time passwords automatically during login
Email TFA
- Method:
EMAIL - Setup Options:
- Register the CloudCruise email directly with the target account
- Forward TFA emails from your account to the CloudCruise email
- Usage: CloudCruise automatically processes TFA codes received via email
Email Magic Links
- Method:
MAGIC_LINK - Setup Options:
- Register the CloudCruise email directly with the target account
- Forward magic-link emails from your account to the CloudCruise email
- Usage: CloudCruise extracts the login link from the email and navigates to it during the TFA node
SMS TFA
- Method:
SMS - Setup Options:
- Register the CloudCruise phone number directly with the target account
- Forward TFA SMS messages to the CloudCruise phone number
- Usage: CloudCruise automatically processes TFA codes received via SMS
Session Persistence
Control how browser state is maintained across workflow executions:Storage Options
- Cookies: Maintains authentication cookies between runs
- Local Storage: Preserves local storage data across sessions
- Session Storage: Maintains session storage (typically cleared between browser sessions)
Concurrent Sessions
- Allow Multiple Sessions: Enable parallel workflow executions using the same credentials
- Max Concurrent Sessions: Limit the number of simultaneous sessions (leave empty for no limit)
- Prevent Concurrency During Login: Block other sessions while login is in progress
Session Expiration
Configure automatic session cleanup:- Expiry from Last Use: Sessions expire after period of inactivity
- Expiry from Creation: Sessions expire after absolute time from creation
Credential Pooling
Distribute runs across multiple accounts by passing an array ofpermissioned_user_id values instead of a single string when starting a run:
- JSON
- TypeScript
- Python
Proxy Configuration
Override workflow proxy settings at the credential level:Proxy Modes
Set a credential’s proxy viaproxy_setting (it overrides the workflow-level proxy for any run that uses this credential). The meaning of proxy_value depends on the mode:
proxy_setting | proxy_value | Behavior |
|---|---|---|
random | — | A random proxy from CloudCruise’s managed pool |
static | target IP address | The managed proxy closest to that IP — ideal for geo-restricted content or region-specific testing |
country | country code (e.g. US) | A managed proxy in that country |
custom | proxy URL | Your own proxy infrastructure (Enterprise) — see Custom URL below |
Custom URL (bring-your-own proxy)
Enterprise customers can point CloudCruise at their own proxy infrastructure instead of the managed pool. Select Custom URL in the credential’s proxy dropdown and provide a URL. Supported transports and authentication:| Form | Auth | Use case |
|---|---|---|
socks5://user:pass@host:port | SOCKS5 username/password | Most residential and self-hosted SOCKS proxies |
socks5://host:port | None (IP allowlist) | SOCKS proxies that whitelist worker egress IPs |
http://user:pass@host:port | HTTP CONNECT + Basic auth | Squid, Tinyproxy, most corporate egress gateways |
http://host:port | None (IP allowlist) | Corporate gateways that whitelist worker egress IPs |
https://user:pass@host:port | HTTP CONNECT inside TLS + Basic auth | Proxies that require TLS encryption to the proxy itself |
https://host:port | None (IP allowlist) | TLS-to-proxy with IP allowlist |
- HTTP CONNECT proxies cannot carry UDP by spec. CloudCruise routes DNS over TCP through the proxy so resolution still works; Chrome’s QUIC attempts fail fast and fall back to TCP/HTTP2 automatically; WebRTC over UDP is unavailable.
- SOCKS proxies vary — the spec supports UDP via UDP ASSOCIATE but many real-world deployments are TCP-only. On the first activation of a custom SOCKS proxy CloudCruise probes UDP support via a short DNS query through the proxy. If UDP works, full UDP egress (QUIC, WebRTC, UDP DNS) is preserved. If UDP doesn’t work, the worker reactivates with TCP DNS — same fallback as HTTP CONNECT. The probe result is cached for 24 h.
- The URL is encrypted at rest with the workspace’s AES-256-GCM key (same protection as vault passwords).
- On every dispatch, the URL is re-validated against SSRF rules: private/loopback/link-local IPs (incl. cloud metadata services at 169.254.169.254),
.local/.internal/etc. suffixes, and hosts that resolve to CloudCruise infrastructure are all rejected. - For
http/socks5schemes, the hostname is DNS-pinned at dispatch to eliminate rebinding windows. Forhttps, the hostname is preserved for TLS SNI validation.
- Target-site traffic flows through your proxy. The proxy operator can see and log everything the worker sends to and receives from the target site for plain HTTP. For HTTPS, traffic is end-to-end encrypted to the target — your proxy sees the SNI and connect-traffic envelope but not the request/response body unless it performs TLS interception with a CA that the worker trusts (which is not possible on CloudCruise-managed workers).
- CloudCruise infrastructure traffic (auth tokens, websocket, telemetry, screenshot uploads) is bypassed — it never traverses your proxy. The bypass covers
*.cloudcruise.com,*.cloudcruise.app, and your configured Supabase host. - If sing-box (the OS-level proxy router) dies mid-session, the worker fails the run rather than reverting to direct internet egress. This protects compliance use cases where all automation traffic must stay inside the customer’s network.

