From 61b1e0cc07d37e22c36ca3be36a046a4d1371084 Mon Sep 17 00:00:00 2001 From: Erich Blume Date: Mon, 16 Mar 2026 14:50:35 -0700 Subject: [PATCH] Switch unpoller to remote API mode via api.ui.com Local API key auth doesn't work with the UX7's new Integration API. Use the remote Site Manager API instead, which auto-discovers consoles. Events disabled due to upstream bug (unpoller/unpoller#966). Co-Authored-By: Claude Opus 4.6 (1M context) --- argocd/manifests/unpoller/deployment.yaml | 2 +- argocd/manifests/unpoller/up.conf | 8 +++++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/argocd/manifests/unpoller/deployment.yaml b/argocd/manifests/unpoller/deployment.yaml index 2f7d13c..8fcd0fa 100644 --- a/argocd/manifests/unpoller/deployment.yaml +++ b/argocd/manifests/unpoller/deployment.yaml @@ -22,7 +22,7 @@ spec: - containerPort: 9130 name: metrics env: - - name: UP_UNIFI_DEFAULT_API_KEY + - name: UP_UNIFI_REMOTE_API_KEY valueFrom: secretKeyRef: name: unpoller-unifi diff --git a/argocd/manifests/unpoller/up.conf b/argocd/manifests/unpoller/up.conf index 0430067..ede751a 100644 --- a/argocd/manifests/unpoller/up.conf +++ b/argocd/manifests/unpoller/up.conf @@ -7,10 +7,12 @@ [unifi] dynamic = false + # Remote API mode — auto-discovers consoles via api.ui.com + remote = true + # API key comes from environment variable: UP_UNIFI_REMOTE_API_KEY [unifi.defaults] - # API key comes from environment variable: UP_UNIFI_DEFAULT_API_KEY - url = "https://192.168.1.1" - verify_ssl = false + verify_ssl = true save_sites = true save_dpi = false + save_events = false