Skip to content

[v16] fix: Agent Forwarding - Windows System Agent and 1Password agent#57514

Merged
Joerger merged 3 commits intobranch/v16from
joerger/v16/fix-agent-forwarding-reconnect
Aug 5, 2025
Merged

[v16] fix: Agent Forwarding - Windows System Agent and 1Password agent#57514
Joerger merged 3 commits intobranch/v16from
joerger/v16/fix-agent-forwarding-reconnect

Conversation

@Joerger
Copy link
Copy Markdown
Contributor

@Joerger Joerger commented Aug 4, 2025

Backport #57243 to branch/v16

changelog: Fix a bug on Windows where a forwarded SSH agent would become dysfunctional after a single connection using the agent.

)

* Move lib/utils/agentconn to lib/sshagent.

* Move system agent connection logic and logging to sshagent.DialSystemAgent; Update comments.

* Retrieve a new system SSH agent connection for each agent forwarding channel request.

* Add test.

* Add type aliases to teleagent.

* Remove unused function.

* Revert import to fix go mod tidy error.

* Fix flaky test.

* Address comments.

* Use context.After stop function; Fix unsafe wg.Wait call.
@Joerger Joerger enabled auto-merge August 5, 2025 17:39
@Joerger Joerger added this pull request to the merge queue Aug 5, 2025
Merged via the queue into branch/v16 with commit 270582f Aug 5, 2025
38 checks passed
@Joerger Joerger deleted the joerger/v16/fix-agent-forwarding-reconnect branch August 5, 2025 18:06
@fheinecke fheinecke mentioned this pull request Sep 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants