Skip to content

feat(ssh): wire sshconfig RekeyLimit bytes to RekeyThreshold#373

Merged
kke merged 2 commits into
mainfrom
ssh-config-rekey-limit
Jun 4, 2026
Merged

feat(ssh): wire sshconfig RekeyLimit bytes to RekeyThreshold#373
kke merged 2 commits into
mainfrom
ssh-config-rekey-limit

Conversation

@kke

@kke kke commented Jun 3, 2026

Copy link
Copy Markdown
Contributor

No description provided.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR wires the parsed ssh_config RekeyLimit (bytes) setting into the underlying golang.org/x/crypto/ssh client configuration by setting ClientConfig.RekeyThreshold, and adds a unit test to validate the behavior.

Changes:

  • Set ssh.ClientConfig.RekeyThreshold from c.sshConfig.RekeyLimit.MaxData when configured.
  • Add a focused unit test to ensure RekeyLimit.MaxData is propagated into the client config.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
protocol/ssh/connection.go Maps sshconfig’s RekeyLimit.MaxData into x/crypto/ssh’s RekeyThreshold.
protocol/ssh/connection_test.go Adds a unit test verifying RekeyThreshold is set from RekeyLimit.MaxData.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread protocol/ssh/connection.go Outdated
@kke kke force-pushed the ssh-config-rekey-limit branch from 23ddaa5 to 8604264 Compare June 4, 2026 10:06
@kke kke requested a review from Copilot June 4, 2026 10:06

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated no new comments.

Signed-off-by: Kimmo Lehto <klehto@mirantis.com>
@kke kke force-pushed the ssh-config-rekey-limit branch from 8604264 to fba4fd6 Compare June 4, 2026 11:28
@kke kke requested a review from Copilot June 4, 2026 11:28

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated no new comments.

Signed-off-by: Kimmo Lehto <klehto@mirantis.com>
@kke kke marked this pull request as ready for review June 4, 2026 13:04
@kke kke merged commit 61276dd into main Jun 4, 2026
12 checks passed
@kke kke deleted the ssh-config-rekey-limit branch June 4, 2026 13:04
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.

2 participants