Skip to content

fix: distinguish SSH auth exhaustion from invalid credentials#241

Draft
tgonzalezorlandoarm wants to merge 1 commit intomainfrom
too-many-auth-failures
Draft

fix: distinguish SSH auth exhaustion from invalid credentials#241
tgonzalezorlandoarm wants to merge 1 commit intomainfrom
too-many-auth-failures

Conversation

@tgonzalezorlandoarm
Copy link
Copy Markdown
Contributor

@tgonzalezorlandoarm tgonzalezorlandoarm commented Apr 24, 2026

Description

We already classify too many authentication failures as a distinct ssh error, but the health report was still treating it like a generic auth failure and suggesting only topo setup-keys.

Changes

Handle this case explicitly in the probe and health layers so the user gets a more accurate fix suggestion:

  • map ssh too many authentication failures to a dedicated probe error
  • surface a health fix that points users to their SSH config/key selection while still offering topo setup-keys as a recovery path

This keeps permission denied and too many authentication failures separate, which better reflects the likely cause of the failure.

@tgonzalezorlandoarm tgonzalezorlandoarm self-assigned this Apr 24, 2026
@tgonzalezorlandoarm tgonzalezorlandoarm requested a review from a team as a code owner April 24, 2026 09:18
@tgonzalezorlandoarm tgonzalezorlandoarm added the bug Something isn't working label Apr 24, 2026
Base automatically changed from fix-auth-probe to main April 24, 2026 09:23
…th checks

We already classify `too many authentication failures` as a distinct SSH
error, but the health report was still treating it like a generic auth
failure and suggesting only `topo setup-keys`.

Handle this case explicitly in the probe and health layers so the user
gets a more accurate fix suggestion:
- map SSH `too many authentication failures` to a dedicated probe error
- surface a health fix that points users to their SSH config/key selection
  while still offering `topo setup-keys` as a recovery path

This keeps `permission denied` and `too many authentication failures`
separate, which better reflects the likely cause of the failure.

Signed-off-by: Tomás González <tomasagustin.gonzalezorlando@arm.com>
@tgonzalezorlandoarm tgonzalezorlandoarm marked this pull request as draft April 24, 2026 09:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant