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>
WireGuard VPN: API endpoints for server config, key management, peer
CRUD with auto IP assignment, and client config generation with QR
codes. Web UI with full peer management.
TLS certificates: certbot integration with Cloudflare DNS-01 for
provisioning Let's Encrypt certs. HAProxy SNI routing with TLS
termination for the central domain. Web UI for domain config and
cert status.
Frontend architecture: Go API is now the single front door — proxies
to Vite in dev (hot reloads) and serves static files in prod. Removes
nginx dependency. Vite proxy config removed in favor of Go reverse proxy.
APT package: adds wireguard-tools, certbot, python3-certbot-dns-cloudflare
as dependencies. Removes nginx. Adds sudoers, polkit, and directory
setup for VPN and TLS.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- Add tests for retrieving and redacting per-app secrets in GetSecrets handler.
- Implement logic to restart workloads when ConfigMaps are updated during app deployment.
- Ensure complete cleanup of app configuration directories upon deletion, including all related files.
- Introduce a filter to skip non-Longhorn PVCs during backup operations.
- Refactor legacy helper functions in context.go to streamline instance path management.
- Update AppDetailPanel component to include action buttons for app lifecycle management and backup operations.