Skip to content

Server secrets and signing material

Never commit production secret values.

What belongs here

Release/production server deployments may require material such as:

  • registry root and registry authority identity/certificate (generated by the Control Plane launcher);
  • generated registry signing state;
  • database passwords/internal API tokens depending on deployment mode.

In an installation created by the server installer, control-plane/secrets/ holds the generated registry trust material and other generated secrets; the installer reuses them on every Start. The server needs no Firebase credentials: phone numbers are verified by the phone verifier next to the Control Plane Directory, whose keys live only in its own Docker volume (sparrow-phone-verifier-state). The Directory operator imports the Firebase Admin service account file in the Directory installer; it is kept as private/firebase-admin.json in the Directory folder and mounted read-only into the phone verifier only.

Repository helper

For the repository production stack, server/scripts/New-ProductionSecrets.ps1 can generate ignored secret files/environment configuration used by the Compose setup.

.\server\scripts\New-ProductionSecrets.ps1

Generated secret files are deliberately ignored by Git.

Release signing is separate

Android release signing secrets are not server secrets. The release workflow uses GitHub Actions Secrets KEY_STORE_FILE, KEY_STORE_PASSWORD, KEY_ALIAS, and KEY_PASSWORD. KEY_STORE_FILE contains the Base64-encoded keystore. Do not put the Android .jks into this directory or commit it.