Skip to content

Encryption

When the start config has a publicKey, production mode encrypts everything it writes and uploads, so only the server holding the private key can read it.

  1. Each process session gets a random AES-256 data key.
  2. The data key is wrapped with RSA-OAEP (SHA-256, MGF1-SHA-256) under your project’s public key and stored as <sid>.key. The plain data key is never written to disk.
  3. Each spool line is sealed with AES-GCM: {"seq":N,"e":"<base64(iv[12] ‖ ciphertext ‖ tag[16])>"}. Replay frames are sealed the same way: {"frame":N,"e":"…"}.
  4. Batches carry the wrapped key in key, are gzipped, and go over HTTPS.

So data is encrypted at rest on the device (where the spool can wait for days on a phone that is offline) and in transit, on top of TLS.

  • A malformed public key makes startProduction refuse to start, rather than fall back to plaintext.
  • Without a public key, spool lines are plain envelopes. Use that only against a local backend in development.
  • Plain http endpoints are accepted only for 127.0.0.1, localhost and 10.0.2.2 (the Android emulator’s host).

Quameleon Cloud keeps each project’s private key encrypted with AES-256-GCM under a service secret, decrypts batches in memory on ingest, and stores signals in Postgres and replay chunks in a private storage bucket that is only reachable through the authenticated API.