Unbbal opened a new pull request, #907: URL: https://github.com/apache/mina-sshd/pull/907
This PR implements the missing authorized_keys option checks tracked in GH-905. Changes: - Enforce the expiry-time option before accepting a matching authorized_keys entry. - Enforce the from option using the client address, with support for address/hostname patterns, negation, and CIDR ranges. - Prefer ServerSession#getClientAddress(), falling back to getRemoteAddress(). - Reject invalid from patterns and invalid expiry-time values fail-closed. - Add unit tests for matching from, rejected from, CIDR, negation, invalid from, future expiry-time, and expired keys. Tests: - .\mvnw.cmd -pl sshd-core -am -Dtest=AuthorizedKeyEntriesPublickeyAuthenticatorTest '-Dsurefire.failIfNoSpecifiedTests=false' test -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
