/claim #7724
This patch hardens validateSshKey() so Coolify re-syncs the key file when it is missing, stale, or corrupted on the executing node.
Instead of raw-content assumptions, it compares public key fingerprints:
PrivateKey::fingerprint fallback to computed)If mismatch is detected:
Issue #7724 reports sporadic Permission denied (publickey,password) symptoms consistent with stale per-node key files. This patch addresses that path directly while keeping scope small.
Compared to prior attempts, this version:
app/Helpers/SshMultiplexingHelper.php
validateSshKey(PrivateKey $privateKey, ?Server $server = null)tests/Unit/SshKeyFileSyncTest.php
I could not execute PHP tests in this environment because php is unavailable (php: command not found), but I added focused unit coverage for CI validation.
Fraktal DeFi DAO
@FraktalDeFiDAO
Zach Latta
@zachlatta