Place and rotate secrets
Start in the private deployment directory with the selected COMPOSE_FILE exported.
Create secrets/ with mode 0700 if the installation procedure has not already done so.
Keep .env, private keys, provider bundles, compatibility artifacts containing deployment metadata, and backups out of source control.
Create secret files
Section titled “Create secret files”Generate independent database and webhook secrets:
openssl rand -base64 32 > secrets/database-passwordopenssl rand -hex 32 > secrets/github-webhook-secretCopy each App key into the separate PEM path in the App guide. For API-key authentication, copy a Pi-native API-key bundle:
cp /secure/path/pi-auth.json secrets/provider-credentials.jsonchmod 0640 secrets/*The bundle is a nonempty JSON object with literal API keys:
{ "provider-name": { "type": "api_key", "key": "REPLACE_WITH_SECRET" }}The requested provider/model must exist in the exact Pi image and work with that key.
Executable key references, environment references, imported OAuth snapshots, and missing selected API-key providers are unsupported.
For OpenAI subscription login, use provider authentication; mutable OAuth credentials are owned separately by the orchestrator, not imported through this bundle.
Only the selected entry is written to mode-0600 /run/pi-agent/auth.json in disposable tmpfs; MCP bearer authority stays in memory.
Normal retained-state, database, image, and diagnostic paths exclude keys.
Trusted repository code can deliberately copy supplied keys, so this is not credential mediation.
Secret file group
Section titled “Secret file group”For Docker on Linux, obtain the socket’s numeric group:
stat -c '%g' /var/run/docker.sockSet OMNIGREX_DOCKER_GID to that number, or 0 for Docker Desktop.
Microsandbox instead uses the KVM device group as described in installation.
Create a dedicated host group using the operating system’s account-management tools.
Change secrets/* to that group and set its numeric ID as OMNIGREX_SECRET_GID.
It must differ from the selected backend’s socket or KVM group, and unrelated users must not belong to it.
The orchestrator runs as UID/GID 10001 and receives supplementary groups through Compose.
Socket group membership has host-root authority; mounting the socket read-only does not restrict API operations.
Verify credentials
Section titled “Verify credentials”Run repository doctor after placing or changing secrets. Preflight checks configuration and prerequisites without a paid provider prompt; it cannot prove live provider authorization. Use a controlled Work Item to verify actual selected models after credential changes. The separate live-provider gate is an opt-in source-checkout diagnostic.
Rotation
Section titled “Rotation”For a GitHub App key, generate a new key, replace only that App’s local PEM file, recreate the orchestrator, run preflight, and delete the old key after success. Never rotate both App identities to the same key.
Webhook-secret rotation is not atomic across GitHub and the deployment. Stop the orchestrator, change the remote and local secret during one maintenance window, recreate the orchestrator, and verify a real delivery before new work.
For provider credentials, replace the complete deployment bundle, recreate the orchestrator, run preflight, and verify every configured model with controlled work. ChatGPT subscription rotation and account replacement instead use the authentication commands. After suspected repository compromise, rotate the complete provider bundle. Securely remove superseded local and backup copies according to the operator’s retention policy.
Configuration changes require recreation with the same Compose file set:
docker compose up -d --force-recreate orchestratorNext: Installation verification.
