Pulse/internal/models
rcourtman 8919281718 fix: clear agents that connected during unauthenticated setup window
When no auth is configured (fresh install), CheckAuth allows all requests.
This creates a race condition where existing agents from a previous setup
can report data before the wizard completes security configuration.

This fix clears all host agents and docker hosts when /api/security/quick-setup
is called, ensuring the wizard shows a clean state after security is configured.

Added:
- State.ClearAllHosts() - removes all host agents
- State.ClearAllDockerHosts() - removes all docker hosts
- Monitor.ClearUnauthenticatedAgents() - clears both and resets token bindings
- Call to ClearUnauthenticatedAgents() in handleQuickSecuritySetupFixed()
2025-12-13 21:22:04 +00:00
..
concurrency_test.go Fix settings security tab navigation 2025-10-11 23:29:47 +00:00
converters.go feat: add Kubernetes platform support 2025-12-12 21:31:11 +00:00
converters_test.go fix: Robust OCI container detection with state persistence 2025-12-12 20:06:39 +00:00
models.go fix: clear agents that connected during unauthenticated setup window 2025-12-13 21:22:04 +00:00
models_frontend.go feat(kubernetes): Add Kubernetes mock data and UI 2025-12-12 23:13:40 +00:00
state_docker_test.go style: Apply gofmt to 37 files 2025-12-02 17:21:48 +00:00
state_host_test.go test: Add tests for SyncGuestBackupTimes and UpdateStorageBackupsForInstance 2025-12-02 16:22:38 +00:00
state_snapshot.go feat: add Kubernetes platform support 2025-12-12 21:31:11 +00:00