Profile encryption
When you configure credentials with themurmur setup subcommands, they are stored on the server, encrypted:
- Credential collection: setup gathers the credential, such as your GitHub token, inference key, or signing key.
- Upload: the value is sent to the API server over TLS and stored as a user secret referenced by your user record.
- KMS encryption: the API server encrypts the value with the tenant’s Cloud KMS key before storing it. The plaintext is never persisted.
- AAD binding: Additional Authenticated Data (AAD) binds the ciphertext to your tenant and identity. This prevents cross-tenant or cross-developer reuse.
murmur spawn -e travel to the API server over TLS and are encrypted the same way, held for that agent alone.
Transport encryption
When an agent is spawned, its credentials travel from the catalog through the control plane to the agent VM:Step 1: Control plane transport
Encrypted credentials pass through the orchestration layer as opaque ciphertext. Only the control plane’s credential services can decrypt them.Step 2: Control worker re-sealing
Before the profile reaches the VM, the control worker re-seals it:- The control worker retrieves the VM’s ephemeral X25519 public key (generated at VM boot).
- The KMS-encrypted credentials are decrypted within the control worker’s trusted environment.
- The decrypted credentials are immediately re-encrypted using NaCl box (Curve25519-XSalsa20-Poly1305) with the VM’s public key.
- The KMS-decrypted plaintext is zeroed from memory.
- The NaCl-sealed blob is sent to the VM.
- The profile can only be decrypted by the specific VM it was sealed for
- Even if the sealed blob is intercepted in transit, it requires the VM’s private key to decrypt
- The control worker holds plaintext only for the duration of the re-sealing operation
Step 3: Secure delivery
The NaCl-sealed blob is delivered to the VM through an authenticated API channel, not through a network filesystem or metadata service.VM decryption
On the agent VM, credentials are decrypted in process memory only:- Ephemeral key pair: at boot, the VM generates an X25519 key pair.
- NaCl box open: the sealed blob is decrypted using the VM’s ephemeral private key and the control worker’s public key.
- In-memory storage: the decrypted credentials (API keys, tokens) are held in process memory for the agent session’s duration.
- No disk writes: credentials are never written to any file, environment file, or temporary storage.
- Destruction: when the agent session ends, the VM is destroyed. The ephemeral private key, decrypted credentials, and all process memory are gone.
Per-tenant KMS keys
Each tenant has a dedicated Cloud KMS key used for all encryption operations within that tenant:Additional Authenticated Data (AAD)
Every KMS encryption operation includes AAD that binds the ciphertext to its intended context:- Tenant ID: prevents a profile from one tenant being used in another
- Resource type: distinguishes profiles from secrets
- Identity: for profiles, the developer’s identity is included
- A profile encrypted for tenant A cannot be decrypted for tenant B
- A developer’s profile cannot be used by a different developer
- A secret cannot be confused with a profile
Tenant secrets
Secrets stored in the catalog (kindsecret and user-secret) are encrypted at rest:
Encryption
- The secret value is sent to the API server over TLS.
- The API server encrypts the value using the tenant’s KMS key with appropriate AAD.
- The encrypted value is stored in GCS. The plaintext is never persisted.
- The
plaintext_valuefield is write-only. It is accepted on set but never returned on get.
Decryption
Secrets are decrypted only when injected into an agent VM’s environment:- The control worker determines which secrets the workspace requires (from
runtime_secret_mountsin the workspace config). - Encrypted secret values are retrieved from the catalog.
- The control worker decrypts them using the tenant’s KMS key.
- Decrypted values are sealed with the VM’s ephemeral key (same NaCl box process as profiles).
- On the VM, they are decrypted in memory and delivered as each mount declares: an environment variable under its
env_name(or the secret’s own name), or a file at itspath.
User secrets
User secrets (user-secret kind) work the same way but include the developer’s identity in the AAD. This means a user secret encrypted by developer A cannot be decrypted for developer B, even within the same tenant.
Commit signing
Agents sign their Git commits using ed25519 SSH signing keys:- Key generation: run
murmur setup signing. Setup reuses or generates a dedicated ed25519 signing key and registers its public key with GitHub if needed. A key already on your profile can be kept untouched or configured again with the Keep/Re-run choice. - Encryption: signing setup uploads the private key securely to your Murmur profile, where it is encrypted at rest with the tenant’s KMS key and sealed to each agent VM with NaCl box.
- On-VM usage: the signing key is decrypted in memory on the agent VM and configured in Git.
- Commit signatures: every commit made by the agent is signed with this key. If you skip commit signing, agent commits are unsigned.
- Verification: GitHub can verify the signatures against the public key registered to your account.
- Provenance: every agent commit is cryptographically linked to the developer who spawned the agent
- Tamper detection: modified commits will have invalid signatures
- Accountability: the commit signature chain traces back to a real developer identity