Skip to content

fix(rust): admin ssh not working - #807

Merged
erebe merged 2 commits into
mainfrom
rust-cli
Nov 24, 2026
Merged

erebe merged 2 commits into
mainfrom
rust-cli

Conversation

@erebe

@erebe erebe commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.


Summary by cubic

Fixes the admin SSH command in the Rust CLI, which was failing to fetch the kubeconfig and leaking the SSH tunnel past the shell session.

  • Kubeconfig endpoints now send Accept: application/x-yaml instead of application/json, avoiding 406 Not Acceptable from the API.
  • The SSH bastion tunnel now uses socks5h:// so the bastion resolves host names instead of resolving them locally.
  • The tunnel is now closed when the admin shell exits, and killed automatically when the CLI exits or is terminated, matching the Go implementation's behavior.
  • Adds exit hooks to the logging crate so all exit paths can run cleanup, and registers a Pdeathsig handler on Linux.

Written for commit 0daa61c. Summary will update on new commits.

View guided diff Turn on auto-fix

@cubic-dev-ai cubic-dev-ai Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

All reported issues were addressed across 15 files

Reply with feedback, questions, or to request a fix.

View guided diff | Turn on auto-fix | Re-trigger cubic

Comment thread rust/crates/cobra/src/exec.rs Resolved
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@erebe
erebe merged commit e6ff82b into main Nov 24, 2026
11 of 12 checks passed
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.

1 participant