Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Abstract revoked key handling in KnownHostsServerKeyVerifier #653

Merged
merged 1 commit into from
Jan 25, 2025

Conversation

joeljohansson99
Copy link
Contributor

@joeljohansson99 joeljohansson99 commented Jan 13, 2025

Abstract handling of revoked key so extending classes has an easier way to add functionality when a matching host entry has a 'revoked' marker.

Fixes #652.

@tomaswolf
Copy link
Member

The formatter is not happy. Run a local maven build; it'll reformat the file. Then commit (amend) the result and force push.

@joeljohansson99
Copy link
Contributor Author

Hi Thomas, thanks for the feedback. I ran the formatting, and committed. I did not get the amend to work, hope that is alright.

@joeljohansson99
Copy link
Contributor Author

I moved the debug logging. Think it makes sense too. Thanks

New method handleRevokedKey() is invoked if a revoked host key is
encountered, before the key exchange is rejected. Subclasses can
override to customize reporting. The default just issues a log message.
@tomaswolf tomaswolf force-pushed the revoked_key_handling branch from 3d2b31a to 909b5e2 Compare January 25, 2025 16:49
@tomaswolf tomaswolf merged commit 909b5e2 into apache:master Jan 25, 2025
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add option to extend KnownHostServerKeyVerifier handling of revoked keys
2 participants