mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-09-10 10:35:51 +00:00
8919281718
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()