Skip to content

Avoid counterproductive checks in IsUserAuthority and IsHostAuthority#56250

Merged
espadolini merged 1 commit intomasterfrom
espadolini/fix-1999-1
Jun 30, 2025
Merged

Avoid counterproductive checks in IsUserAuthority and IsHostAuthority#56250
espadolini merged 1 commit intomasterfrom
espadolini/fix-1999-1

Conversation

@espadolini
Copy link
Copy Markdown
Contributor

This PR removes the special handling for *ssh.Certificate authorities in the IsHostAuthority and IsUserAuthority callbacks used by x/crypto/ssh.CertChecker as it's a condition that should never happen anyway, and can lead to accepting invalid credentials as legitimate.

@espadolini espadolini enabled auto-merge June 30, 2025 18:34
@espadolini espadolini added this pull request to the merge queue Jun 30, 2025
Merged via the queue into master with commit 1cb6427 Jun 30, 2025
45 of 46 checks passed
@espadolini espadolini deleted the espadolini/fix-1999-1 branch June 30, 2025 19:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

no-changelog Indicates that a PR does not require a changelog entry size/sm

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants