Commit Graph

54 Commits

Author SHA1 Message Date
admin b4cb92e09f docs: update hub CHANGELOG and README for v0.2.2
Add config hash comparison feature to changelog. Bump version references.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-20 16:18:28 +01:00
admin 7859e1182e deploy: bump hub to v0.2.2
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-20 16:15:56 +01:00
admin 9d0dd658ed feat: add config hash comparison in unified customer page
Compare controller's config_hash from reports against Hub-generated
YAML hash. Shows sync status (in sync / mismatch / unknown) on the
unified customer detail page next to the Push Config button.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-20 16:13:40 +01:00
admin a7a5304093 docs: update Hub README.md with v0.2.1 features
Document unified customer page, blocked status, pending dashboard,
config push, auto-create config, and customer state matrix.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-20 16:07:13 +01:00
admin 920c1a17c4 hub: add v0.2.1 changelog entry
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-20 16:01:38 +01:00
admin dec8b19ac2 manifests: bump hub image to v0.2.1
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-20 15:58:52 +01:00
admin 42e0617a6c hub: unified customer page, blocked status, dashboard merge
- Replace separate config detail and report detail pages with unified
  /customers/{id} page showing both config info and live report data
- Add "blocked" status for customers (hidden from dashboard, notifications
  suppressed, still accepts reports)
- Dashboard now shows config-only customers as "PENDING" status
- Customers list: all rows link to /customers/{id}, show BLOCKED badge
- New actions: block/unblock, push config to controller, auto-create
  config from report data
- /configs/{id} now redirects to /customers/{id}
- Add config-badge CSS classes for MANAGED/MANUAL/BLOCKED badges

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-20 15:57:39 +01:00
admin cb425d8086 feat: merge report-only customers into Customers page, rename tab
- Customers page now shows ALL customers: both pre-configured (managed)
  and report-only (manual) — merged from customer_configs + reports tables
- Renamed "Configurations" → "Customers" in navigation tabs
- Renamed "+ New Configuration" → "+ Add Customer"
- Status column with ok/warn/down badges, version column, managed/manual badge

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-20 15:27:05 +01:00
admin b07132f617 secret updated 2026-02-20 14:13:27 +01:00
admin 95bb261fa8 feat: registry credentials from k8s Secret via env vars
- main.go: REGISTRY_USERNAME / REGISTRY_TOKEN env vars override config file
- manifests/hub.yaml: reference Secret/gitea-creds, remove plaintext creds from ConfigMap

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-20 14:11:10 +01:00
admin 0fcc7d8e6f docs: add hub CHANGELOG.md, update ConfigMap with registry section
- hub/CHANGELOG.md: new file with v0.2.0 and prior version history
- manifests/hub.yaml: add registry config (version checker + template fetcher),
  pin image to v0.2.0, remove stale /healthz TODO comment

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-20 14:03:39 +01:00
admin 4c8bf63ce3 feat: customer config management — CRUD, API retrieval, per-customer auth (v0.2.0)
New "Configurations" section lets operators pre-configure customer settings
in the Hub, then docker-setup.sh can download a ready-made controller.yaml
using just a customer ID and retrieval password.

- Store: customer_configs table with CRUD + per-customer API key lookup
- API: GET /api/v1/config/{id} with X-Retrieval-Password auth
- Auth: per-customer API keys alongside existing global key (backward compatible)
- Web UI: /configs list, create, edit, delete, YAML preview, copy-to-clipboard
- YAML gen: deep-merge controller.yaml.example template with customer overrides
- Template fetcher: background goroutine refreshing template from Gitea repo
- Navigation: Dashboard / Configurations tabs on all pages

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-20 13:36:32 +01:00
admin 36a7d1c162 feat: add controller update trigger + version checker (v0.1.8)
Hub now tracks controller_url from reports, periodically checks the Gitea
registry for the latest controller image version, and shows a "Trigger Update"
button on the customer detail page that proxies to the controller's self-update
API endpoint using the shared API key.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-02-19 18:16:38 +01:00
admin d8e1ec44d7 added upsnap, guacamole logo 2026-02-19 14:19:02 +01:00
admin f7f605bb2a Fix hub store.go: log unchecked json.Unmarshal errors, GetInfraBackupMeta error handling 2026-02-19 14:06:44 +01:00
admin 41e313bf36 hub v0.1.7: Infrastructure backup endpoints for disaster recovery
Add infra-backup push/pull API for controller DR:
- POST /api/v1/infra-backup — controller pushes infrastructure snapshot
- GET /api/v1/infra-backup/{customer_id} — fresh controller pulls backup
- infra_backups SQLite table with per-customer snapshots
- Customer detail page shows infra backup status card
- README.md with full API docs and DR flow

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-19 13:17:12 +01:00
admin d3d3044b98 hub v0.1.6: Handle disabled reporting status, storage labels, date in history 2026-02-19 09:45:45 +01:00
admin fa4713255f Fix hub report 2026-02-19 09:39:34 +01:00
admin bd669e7a9d Hub: add preferences sync endpoint + notification display on customer page
- POST /api/v1/preferences: accepts {customer_id, email, enabled_events} from controller
- GetRecentNotifications() store method for last N notification log entries
- Customer detail page: new Notifications section (email, events, recent log table)
- joinStrings template function for event list display

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-16 20:18:10 +01:00
admin c9abc6bb9e added resend api key 2026-02-16 19:45:09 +01:00
admin e531516cfa Hub: add POST /api/v1/notify endpoint for customer notifications
- New notification relay endpoint: receives events from customer controllers,
  looks up customer email preferences, sends via Resend HTTP API
- New tables: customer_notifications (per-customer email + event prefs),
  notification_log (audit trail for all notification attempts)
- Hungarian email template with severity, event type, timestamp
- Config: notifications.resend_api_key + notifications.from_email
- Test events always pass event-type filter

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-16 19:29:55 +01:00
admin 869ff55fd1 add CLAUDE.md, .gitignore, fix statusIcon rendering
- Add CLAUDE.md with build workflow, project overview, and key patterns
- Add .gitignore to prevent committing binaries and IDE files
- Remove hub.exe from tracking (was accidentally committed)
- Fix statusIcon: use Unicode ● character instead of HTML entities
  that get double-escaped by Go html/template

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-16 15:53:02 +01:00
admin aa51df3ab4 damn exe 2026-02-16 15:09:31 +01:00
admin 7f4e479c63 fix: robust SQLite timestamp parsing for hub dashboard
Replace hardcoded time.Parse with parseSQLiteTime() that handles multiple
formats returned by modernc.org/sqlite, fixing hub showing DOWN status
and 00:00:00 timestamps in report history.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-16 14:56:30 +01:00
admin 50d9eb66bf updated hub probes 2026-02-16 14:17:58 +01:00
kisfenyo 2bd678a5f8 hub: add go.sum 2026-02-16 14:16:11 +01:00
admin a345cb93c3 added hub healthz endpoint 2026-02-16 14:13:35 +01:00
admin 17b1d36bf9 updated configmap with api key and PW 2026-02-16 14:03:03 +01:00
admin ab05609038 dockerfile update 2 2026-02-16 13:44:25 +01:00
admin f53a4bb44c updated dockerfile for felhom-hub 2026-02-16 13:42:23 +01:00
admin 868e8465ce updated hub yaml 2026-02-16 13:35:43 +01:00
admin 77b5a4ce4e Add felhom-hub: multi-customer dashboard service
- Hub service receives reports from customer controllers
- SQLite store with 90-day retention and auto-prune
- REST API: POST /api/v1/report, GET /api/v1/customers
- Dark theme dashboard with status overview table
- Customer detail page with system, storage, containers, backup, health
- Bearer token auth for report ingest, bcrypt auth for dashboard
- K8s manifest for felhom-system namespace (Deployment, Service, Ingress, PVC)
- Dockerfile with multi-stage build

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-16 13:19:25 +01:00
admin 13c5c874d2 replaced portainer with controller 2026-02-16 08:11:37 +01:00
admin 153e3d1867 deleted controller 2026-02-13 18:50:23 +01:00
admin 359e2bf010 Merge branch 'main' of https://gitea.dooplex.hu/admin/felhom.eu 2026-02-13 18:47:47 +01:00
admin 9136f99ad3 deleted controller 2026-02-13 18:47:29 +01:00
kisfenyo 0ff02f7c8f added assets dir 2026-02-13 17:01:29 +01:00
kisfenyo 83d86cb841 added all files 2026-02-13 16:59:51 +01:00
admin 5f67151a2f added assets 2026-02-13 16:55:28 +01:00
kisfenyo ae4b88a894 added felhom-controller 2026-02-13 16:51:10 +01:00
admin c2610cc9b8 fixed sitemap xml 2026-02-11 10:39:52 +01:00
admin f2eba5bd95 760 2026-02-11 10:00:10 +01:00
admin dc048f4c2d 800 2026-02-11 09:59:38 +01:00
admin 6a4a4bd730 760 2026-02-11 09:58:26 +01:00
admin 5c1eafd015 max width increased 2026-02-11 09:56:50 +01:00
admin 7557b924b7 updated disclaimer banner box 2026-02-11 09:56:10 +01:00
admin af0ab5060f modified files to UTF-8-BOM 2026-02-11 09:52:41 +01:00
admin 5bd014d740 test coding change to UTF-8-BOM 2026-02-11 09:51:07 +01:00
admin faf0444394 updated banner box (li) on page 2026-02-11 09:41:08 +01:00
admin 6c7cd38d0c updated deployment strategy for filebrowser 2026-02-11 09:24:36 +01:00