fix: close unused SSH agent connections - #20
Conversation
|
Note Reviews pausedIt looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Team Run ID: 📒 Files selected for processing (2)
Included review availability: Your plan provides up to 8 included reviews per hour; 5 remain after this review. 📝 SummarySummary by CodeRabbit
WalkthroughThe tunnel authentication code now tracks SSH agent connection ownership. It closes unused and failed connections, retains connections needed for authentication, and cleans them up during manager and ProxyJump shutdown. Tests cover signer failures, empty signer results, successful retention, and manager cleanup. ChangesSSH agent connection ownership
Merge Risk: ⚪ Minimal · up to SSH agent connections are retained only while needed for authentication and are closed on failure and shutdown paths. No merge-blocking risk is currently identified. 🚥 Pre-merge checks | ✅ 4✅ Passed checks (4 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: ASSERTIVE
Plan: Team
Run ID: c87705ba-1e51-4165-a589-6135f35b323c
📒 Files selected for processing (2)
internal/tunnel/auth_test.gointernal/tunnel/tunnel.go
Included review availability: Your plan provides up to 8 included reviews per hour; 5 remain after this review.
Summary
Fixes #16
Validation