CluPilotCloud/app/Provisioning/Steps/Host
nexxo 28e681b9df fix(vpn): lock every hub mutation; resolve duplicate keys inside the lock
- ConfigureWireguard and RemoveWireguardPeer mutate the hub too, and were not
  taking the lock, so a sync could still read the interface around them and
  write stale state. Both now hold wireguard:hub, which is what makes the
  read/mutation guarantee actually hold.
- The duplicate-key check ran before the allocation lock, so two concurrent
  creations with the same key both passed it and the loser hit the unique index
  as an unhandled 500. The check moved inside the lock, with the index kept as
  a caught backstop for any writer that does not take it — reproduced in a test
  by inserting a colliding row from within the allocation call.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-25 21:55:57 +02:00
..
CompleteHostOnboarding.php feat(engine): 11-step host onboarding pipeline (SSH -> WG -> Proxmox) 2026-07-25 10:04:39 +02:00
ConfigureProxmox.php feat(engine): 11-step host onboarding pipeline (SSH -> WG -> Proxmox) 2026-07-25 10:04:39 +02:00
ConfigureWireguard.php fix(vpn): lock every hub mutation; resolve duplicate keys inside the lock 2026-07-25 21:55:57 +02:00
CreateAutomationToken.php fix(engine): address Codex review (auth token bootstrap, tunnel recheck, ssh) 2026-07-25 10:20:59 +02:00
EstablishSshTrust.php feat(engine): 11-step host onboarding pipeline (SSH -> WG -> Proxmox) 2026-07-25 10:04:39 +02:00
HostStep.php feat(engine-b): CustomerStep base + shared resource trait + config 2026-07-25 11:39:56 +02:00
InstallProxmoxVe.php feat(engine): 11-step host onboarding pipeline (SSH -> WG -> Proxmox) 2026-07-25 10:04:39 +02:00
PrepareBaseSystem.php feat(engine): 11-step host onboarding pipeline (SSH -> WG -> Proxmox) 2026-07-25 10:04:39 +02:00
RebootIntoPveKernel.php fix(engine): drop wg peer on host removal; clear reboot state on deadline fail 2026-07-25 10:46:11 +02:00
RegisterCapacity.php feat(engine-b): 15-step customer pipeline + DNS/Traefik services 2026-07-25 11:50:26 +02:00
ValidateHostInput.php feat(engine): 11-step host onboarding pipeline (SSH -> WG -> Proxmox) 2026-07-25 10:04:39 +02:00
VerifyProxmoxApi.php feat(engine): 11-step host onboarding pipeline (SSH -> WG -> Proxmox) 2026-07-25 10:04:39 +02:00