Skip to content

Abstract revoked key handling in KnownHostsServerKeyVerifier#653

Merged
tomaswolf merged 1 commit into
apache:masterfrom
joeljohansson99:revoked_key_handling
Jan 25, 2025
Merged

Abstract revoked key handling in KnownHostsServerKeyVerifier#653
tomaswolf merged 1 commit into
apache:masterfrom
joeljohansson99:revoked_key_handling

Conversation

@joeljohansson99
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
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