12c9ad73bb
A password containing "$fP" was interpolated away by compose, giving mosquitto and c2-core two different passwords and producing "MQTT connect refused: Not authorized" with nothing in the logs pointing at the cause. Recorded next to the values so the next person generating credentials sees it. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
55 lines
3.4 KiB
Plaintext
55 lines
3.4 KiB
Plaintext
# Template for your Ansible Vault secrets file.
|
|
# Copy to vault.yml, fill in values, then encrypt:
|
|
# ansible-vault encrypt vault.yml
|
|
# Edit later with:
|
|
# ansible-vault edit vault.yml
|
|
|
|
# DO NOT put a literal "$" in any value here. Docker compose interpolates the
|
|
# top-level .env, and depending on version it also interpolates env_file, so a
|
|
# password like "aB$fPx" is read as the variable $fPx and silently replaced
|
|
# with an empty string — on one side of the connection but not the other.
|
|
# That produced "MQTT connect refused: Not authorized" with no obvious cause.
|
|
# Generate with: openssl rand -hex 32 (hex output has no shell metacharacters)
|
|
|
|
# ── MQTT ─────────────────────────────────────────────────────────────────────
|
|
vault_mqtt_c2_user: drb-c2-core
|
|
vault_mqtt_c2_pass: "CHANGE_ME"
|
|
vault_mqtt_node_user: drb-node
|
|
vault_mqtt_node_pass: "CHANGE_ME"
|
|
|
|
# ── C2 Core ───────────────────────────────────────────────────────────────────
|
|
vault_service_key: "" # openssl rand -hex 32
|
|
vault_node_api_key: "" # openssl rand -hex 32
|
|
vault_openai_api_key: ""
|
|
vault_google_maps_api_key: ""
|
|
vault_gemini_api_key: ""
|
|
vault_gcs_bucket: "your-gcs-bucket-name"
|
|
vault_firestore_database: "c2-server"
|
|
|
|
# ── Gitea Container Registry ──────────────────────────────────────────────────
|
|
vault_registry_host: "git.vpn.cusano.net"
|
|
vault_registry_user: "logan"
|
|
vault_registry_token: "" # Gitea access token, READ-ONLY package scope.
|
|
# The VM only pulls (roles/deploy/tasks/main.yml:62-72);
|
|
# nothing here pushes. Pushing is CI's job and uses a
|
|
# separate write-scoped token (BUILD_TOKEN in Gitea
|
|
# repo secrets). Keep them separate: this token sits on
|
|
# an internet-facing VM, and a write-scoped one there
|
|
# would let an attacker publish a poisoned image that
|
|
# every future deploy and edge node would install.
|
|
vault_registry: "git.vpn.cusano.net/logan" # full image prefix
|
|
|
|
# ── Discord Bot ───────────────────────────────────────────────────────────────
|
|
vault_discord_token: ""
|
|
|
|
# ── Frontend (Firebase) ───────────────────────────────────────────────────────
|
|
vault_firebase_api_key: ""
|
|
vault_firebase_auth_domain: ""
|
|
vault_firebase_project_id: ""
|
|
vault_firebase_storage_bucket: ""
|
|
vault_firebase_messaging_sender_id: ""
|
|
vault_firebase_app_id: ""
|
|
|
|
# No GCP key needed — the VM uses Application Default Credentials via the
|
|
# GCE metadata server. Terraform grants the required IAM roles at apply time.
|