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.
- Each process session gets a random AES-256 data key.
- 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. - 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":"…"}. - 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
startProductionrefuse 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
httpendpoints are accepted only for127.0.0.1,localhostand10.0.2.2(the Android emulator’s host).
On the server
Section titled “On the server”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.