UAT destroy/redeploy routing fix — 2026-08-03
Scope
This change is limited to the UAT web-saas + agent-proxy delivery path. It
does not change production hosts, production DNS, or the upstream Xray
Exporter repository.
The intended UAT flow is:
Xray -> ai-workspace-xstream/xray-exporter -> Vector -> Billing -> PostgreSQL
-> Accounts -> Portal
Evidence from the failed delivery
- The native agent deployment received
XRAY_EXPORTER_RELEASE_REPOSITORY=compassvpn/xray-exportertogether with the UAT snapshot taguat-daily-build-2026.08.03-r6. - That tag exists on the fork used for the UAT build, not on the upstream compatibility repository. The Exporter download therefore returned 404.
- The UAT DNS reconciler rendered only
billing-*,console-*, andaccounts-*records from the Web SaaS IP. It did not render the separateagent-proxy.<target-domain>record from the agent-proxy CMDB IP. This leftagent-proxy.onwalk.netresolving to the Console host. - On the affected agent host, the service units had the new
--node-idand snapshot flags while the installed binary was an older v0.6.0 build that did not support them. Both exporter units consequently crash-looped, Vector had no scrape endpoint, and Billing/PostgreSQL received no usage snapshots.
Fix
- Leave the two Exporter inputs blank by default. For UAT, derive the release
repository from
ai-workspace-xstream/xray-exporterand the version from the resolveddeploy_tag. Production retains the upstreamcompassvpn/xray-exporter/v0.6.0compatibility default. - Extend the parameterized UAT DNS reconciler to render
agent-proxy.<target-domain>to the singleagent_proxyCMDB host IP. The existing three Web SaaS records continue to use the Web SaaS host IP. - Keep DNS changes UAT-only, idempotent, non-proxied, and parameterized; no IP address is hard-coded.
Destructive UAT validation sequence
After this change is merged, the UAT-only workflow will be run in two phases:
action=destroy,target_domains="web-saas + agent-proxy",vault_env_path=uat,cloud_provider=vultr-vps. This destroys only the dedicatedweb-saas-agent-proxyTerraform state and its two UAT VPSs.action=deploywith the same target,instance_plan=2C4G, the GitOps-pinned UAT snapshot tag, and application deployment enabled. The agent-proxy host remains the matrix-defined 1C2G host.
confirm_dns_switch remains false. The final gate will verify the direct UAT
IPs and then the public records/paths:
- Exporter binary and flags, both exporter services, and
/scrape; - Vector scrape acceptance and Billing sink delivery;
- Billing ingest, PostgreSQL
traffic_minute_buckets/billing_ledger/quota rows; - Accounts usage summary and
/panel/accountnon-zero presentation; - Grafana Xray series for
agent-proxy.onwalk.net.
Production comparison nodes remain read-only throughout this exercise.