The cluster's API server may advertise a different address than the VIP
(e.g. a node IP on another network interface). After retrieving the
kubeconfig from talosctl, patch the server URL to use the configured VIP
so it remains reachable from the management network.
Also add --force to talosctl kubeconfig to avoid context merging issues
when regenerating into an existing file.
The Central client's URL is now updated in-place when global config
is saved, and the pending-restart banner uses the last config apply
time as its baseline so it clears correctly.
The sidebar link to Wild Central was broken because the URL had no
proper home — the API read it from an env var, the web app guessed
with a hardcoded fallback. Now cloud.central.url in config.yaml is
the single source of truth.
- Add cloud.central.url to GlobalConfig (replaces unused domain field)
- API reads Central URL from env var, then config, then default
- Sidebar reads URL from global config, falls back to current hostname
- CentralComponent: editable Wild Central URL field (same pattern as operator email)
- Setup wizard central phase requires URL to be configured
Adds `wildcloud backup export` and `wildcloud backup import` commands
that create self-contained .tar.gz archives portable across clusters.
Export packages postgres dumps, mysql dumps, config, and PVC contents
(via temporary pods) into a single file. Import extracts data into the
target's backup destination and uses the existing restore flow for
databases/config, with direct PVC restoration via temporary pods.
Tested end-to-end on test-cloud: sentinel data in both postgres and
PVC survived export, deletion, and import.
- Fix sidebar fallback port (15055 -> 5055) for Wild Central link
- Fix setup wizard "central" phase route (was broken, pointed to non-existent route)
- Add Central health check to setup phase (Ping via /api/v1/health)
- Update setup wizard text: "Connect to Wild Central" with clearer guidance
- Fix CentralComponent naming: "Wild Cloud Settings" with accurate descriptions
- Export DetermineCurrentPhase for handler-level phase recalculation
Merge utilities/health into cluster/health. The cluster health endpoint
now checks live cluster state: node readiness, Flannel, CoreDNS,
kube-proxy, MetalLB, Traefik, and Longhorn — in addition to the
existing kubeconfig and certificate expiry checks.
Remove the unused utilities/health endpoint and cert-manager check
(moved to Wild Central).
Rename the CLI binary and all references from `wild` to `wildcloud`
across Go source, packaging scripts, docs, and e2e tests.
Add missing CLI commands: app restart, operation cancel.
Remove commands that belong to Wild Central (dns, proxy, firewall,
ddns, crowdsec, secret central) since those APIs live on Central now.
Merge service into app (install, logs, config), merge iso into asset
(delete), move orphan commands (health, node-ip) under cluster.
Clean up redundant commands (backup start, node cancel-discovery)
and standardize deletion confirmation on --yes/-y across all commands.
- api/.envrc.example: document all env vars (data dir, Central URL/token,
Cloud domain, directory path)
- cli: fix default WILD_API_URI from localhost:5055 (Central) to
localhost:5056 (Cloud) — the CLI talks to Cloud, not Central
Central client (api/internal/central/client.go):
- NewClient now accepts a token parameter
- All HTTP requests include Authorization: Bearer header when token is set
- Centralized auth via do() helper method
- Token read from WILD_CENTRAL_TOKEN environment variable
CLI client (cli/internal/client/client.go):
- Add SetToken method and token field
- doRequest includes Authorization header when token is set
- CLI reads token from WILD_CENTRAL_TOKEN env var in root command
Web app (web/src/services/api/client.ts):
- Add setToken/clearToken/hasToken methods matching Wild Central's pattern
- Token persisted in localStorage under 'wild-cloud:token'
- Authorization header included on all API requests
Simplifies the service registration contract — reach was only ever
"internal" or "public", so a boolean is clearer for consumers.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Update Wild Cloud to match Central's new domain-keyed service model:
Client changes:
- Removed Name, ExtraDomains, SourceNode from Service struct
- Added Subdomains bool field
- Added DeregisterBySource(source, backend) for batch cleanup
- DeregisterService uses domain in URL
Registration changes:
- RegisterInstanceWithCentral → RegisterInstanceDomains
- Now makes separate registrations per domain:
* Primary domain (subdomains:true, reach:public)
* Internal domain (subdomains:true, reach:internal)
* Each discovered extra domain (subdomains:false, reach:public)
- Calls DeregisterBySource before re-registering (cleanup)
Handler changes:
- CentralDeregisterInstance uses DeregisterBySource for batch cleanup
- CentralRegistrationStatus queries by domain, not name
- RegisterAppWithCentral uses domain-only Service
All tests pass.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
When registering an instance with Central, scan deployed app manifests
for ingress hostnames outside the instance's primary domain. These get
added as extraDomains so HAProxy routes them correctly.
For payne-cloud this discovers: payne.io, civilsociety.dev,
mywildcloud.org — domains that apps are actually serving.
Ported discoverExtraDomains, ingressHosts, ingressBaseDomain from the
old handlers_haproxy.go. Removed incorrect baseDomain auto-add that
was causing both instances to claim payne.io.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
On startup, Wild Cloud iterates all existing instances and registers
each with Central (DNS, HAProxy SNI routes, split DNS). Idempotent —
safe on every restart.
Also exports RegisterInstanceWithCentral for use from main.go.
This ensures all instances are routable even if Central was restarted
and lost registrations.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
The Wild Central link in the sidebar used VITE_CENTRAL_URL which
defaults to http://localhost:15055 — unreachable from other machines
on the LAN. Now reads cloud.central.domain from the API config and
links to https://<central-domain> instead. Falls back to the env var
for dev when no domain is configured.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
The load balancer IP is stored in config/apps/metallb/config.yaml
(per-app config), not in the main instance.yaml. The registration
helpers now check all three locations:
1. cluster.loadBalancerIp (main config)
2. apps.metallb.loadBalancerIp (main config apps section)
3. config/apps/metallb/config.yaml (per-app file)
This fixes "Cannot register: LB IP must be configured" when MetalLB
was deployed through the normal app install flow.
Verified: payne-cloud now registers with backendIP=192.168.8.240.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Add a "Central Registration" card to the CloudComponent page showing
whether the instance is registered with Wild Central for DNS/proxy/TLS.
- Status polling via GET /instances/{id}/central/status
- Register button (disabled when domain or LB IP missing)
- Unregister button (shown when registered)
- Clear messaging for missing prerequisites
- New hook: useCentralRegistration
- New API service: centralApi
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Instance registration with Central is now explicit and user-controlled:
API endpoints:
- POST /instances/{name}/central/register — register instance
- DELETE /instances/{name}/central/register — deregister
- GET /instances/{name}/central/status — check registration
Startup self-registration:
- Wild Cloud registers its own app domain (WILD_CLOUD_DOMAIN env var)
with Central on startup, idempotently
Changes:
- Removed auto-register from CreateInstance (domain/LB not set yet)
- Added handlers_central.go with register/deregister/status/app-register
- Added ProxyGET to Central client for status checks
- Added WILD_CLOUD_DOMAIN to .envrc
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Add explicit sidebar link to /instances/:id/cloud for instance domain
configuration (public domain, internal domain, DNS test). Shows in
both expanded and collapsed sidebar modes.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
The CloudComponent (public domain, internal domain, DNS test buttons)
was incorrectly deleted during Central extraction. This is instance-
scoped config, not Central config.
Restored CloudComponent and CloudPage, routed at
/instances/:instanceId/cloud.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
The Overview page crashed because CentralPage uses usePageHelp which
requires HelpProvider. CentralLayout provides this context.
Restored CentralLayout.tsx and wrapped /cloud routes in it, matching
the original route structure from main.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
The /cloud Overview page should show CentralComponent (operator email,
daemon status, Talos client) — not CloudComponent (instance domain
config). CentralComponent is a Cloud meta-config page despite its name.
Removed CloudPage/CloudComponent (instance-scoped, accessible via
Dashboard) and restored CentralPage/CentralComponent at /cloud.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Restore the sidebar from main and make the minimal change: replace
the Central section's individual nav items with a single "Wild Central"
external link. The layout now matches the original:
Central → Wild Central (external link)
Wild Cloud → Overview, Node USB Installer
Instance Selector
Dashboard, Cloud (Nodes, Services), Apps, Backups, Advanced
Restored /cloud routes for Overview and ISO pages.
Removed /central/* routes (served by Wild Central's own UI).
Removed Central page imports and redirect children.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
The Central page cleanup incorrectly removed CloudPage/CloudComponent
(instance-level domain/network config) and the Node USB Installer
sidebar link. These are Cloud-specific features, not Central.
- Restored CloudComponent and CloudPage from main
- Added Overview nav item in sidebar
- Added Node USB Installer nav item under Cloud section
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Central pages are now served by Wild Central's own UI — no need to
proxy Central API calls through Wild Cloud. The sidebar links to
Wild Central directly via VITE_CENTRAL_URL.
Removed: reverse proxy handler, ReverseProxy method, ProxyRequest
method, unused httputil/url imports.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Central pages (DNS, DHCP, Firewall, VPN, Ingress, CrowdSec) are now
served by the standalone Wild Central web app. Wild Cloud's sidebar
links to Central via VITE_CENTRAL_URL.
Removed: 12 Central pages, 12 Central components, 8 Central hooks,
4 Central API services, CentralLayout router
Added: "Wild Central" external link in sidebar
TypeScript type-check and production build pass.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
PathPrefix("/api/v1/services/") doesn't match "/api/v1/services"
(no trailing slash). Remove trailing slashes from proxy prefixes so
both /api/v1/services and /api/v1/services/foo are forwarded.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Wild Cloud's web UI still calls Central-namespaced endpoints (dnsmasq,
vpn, firewall, etc.). Instead of dropping those calls, forward them to
the Wild Central service via a reverse proxy.
Central paths (/api/v1/dnsmasq/*, /api/v1/vpn/*, etc.) are proxied
transparently to WILD_CENTRAL_URL (default http://localhost:5055).
This lets the existing UI work unchanged while Central runs as a
separate service. Set WILD_CENTRAL_URL to point at Central's address.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Remove all Central-specific code from Wild Cloud. Networking concerns
(DNS, HAProxy, nftables, WireGuard, certbot, CrowdSec, DDNS) are now
managed by the standalone Wild Central service.
Wild Cloud now uses a Central client (internal/central/client.go) to
register instance services with Central via HTTP API. When an instance
is created or its domain/LB IP changes, Cloud calls Central's service
registration API instead of managing dnsmasq/HAProxy directly.
Removed: 8 Central handler files, 8 internal packages (~6500 LOC)
Added: Central API client for service registration
Modified: Instance creation and config updates use Central client
All 17 test packages pass.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Remove border, background, and shadow from the instance selector
dropdown so it visually matches the sidebar group labels. Keeps the
chevron as the only hint it's interactive.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Add a dedicated Cloudflare page under Central for API token management
with live verification against the Cloudflare API (token validity, zone
access). Migrate the token secret path from ddns.cloudflare.apiToken to
cloudflare.apiToken with backward-compatible fallback.
Restructure sidebar into two groups: Central (networking platform
services) and Wild Cloud (overview, instance management). The instance
selector now sits inside the Wild Cloud section as a natural divider
between meta and instance-scoped items.
Move Central Domain & TLS config from Overview to the Cloudflare page.
Move Node USB Installer route to /cloud/iso (not instance-scoped).
Fix FirewallComponent Lucide icon title prop type error.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Distinguish between "disabled" (opt-in feature intentionally off, gray)
and "stopped" (expected service not running, yellow warning). Core
services like DNS, HAProxy, CrowdSec show warning when stopped. Opt-in
features like VPN and firewall show warning only when enabled in config
but not actually running. Opt-in features that are simply disabled stay
gray (secondary).
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Service status badges (Running, Active, Enabled) now consistently use
variant="success" (green bg, white text) instead of variant="default"
(primary color). Fixes visual inconsistency where some status badges
appeared dark/primary while others were green. Also standardizes icon
size to h-3 w-3, removes XCircle from inactive states, and cleans up
bg-green-600 hacks in CloudflareComponent that were working around
the wrong variant choice.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Consistent pattern: active state uses variant="default" with CheckCircle
h-3 w-3 icon and gap-1; inactive state uses variant="secondary" with no
icon. Standardize inactive text to "Stopped"/"Disabled" (not "Not running").
Central overview keeps variant="success" as the top-level system health
indicator. Remove unused XCircle import from Ingress.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
- Firewall: unified port list showing auto-managed (locked) and user ports,
raw nftables rules moved to Advanced collapsible, success/error alerts
- Ingress: Advanced collapsible showing generated haproxy.cfg, success/error
alerts on custom route add/delete
- VPN: auto-apply after config save, Advanced collapsible showing wg status,
consistent alert styling
- DHCP: success/error alerts on config save and static lease operations
- Central: success/error alerts on operator email and domain saves
- Firewall auto-includes WireGuard listen port when VPN is enabled (backend
and frontend), VPN config save triggers nftables resync
- Fix HAProxy stats socket path: make it configurable on Manager so tests
don't hit the real HAProxy on the host
- Fix DDNS checkAndUpdate to skip Cloudflare calls when IP is unchanged
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>