10000 [dhctl] Implement native SSH client by YuryLysov · Pull Request #13240 · deckhouse/deckhouse · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

[dhctl] Implement native SSH client #13240

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 13 commits into
base: main
Choose a base branch
from
Draft

Conversation

YuryLysov
Copy link
Contributor
@YuryLysov YuryLysov commented Apr 28, 2025

Description

Implement native go ssh client, which will be used by default. To keep using old cli ssh client, put --ssh-legacy-mode flag or use SSH_LEGACY_MODE environment variable set to true

Additionally, password authentication via SSH has been added. Target host password could be set by putting --ask-become-pass or ASK_BECOME_PASS environment variable. To set password for bastion host user, use flag --ask-bastion-pass or environment variable ASK_BASTION_PASS.

Why do we need it, and what problem does it solve?

  • Add ability to remove ssh-agent and ssh binaries in future
  • Add ability to use password authentication

Checklist

  • The code is covered by unit tests.
  • e2e tests passed.
  • Documentation updated according to the changes.
  • Changes were tested in the Kubernetes cluster manually.

Changelog entries

section: dhctl
type: chore
summary: Add native ssh client support to dhctl.
impact_level: default
---
section: dhctl
type: feature
summary: Add password authentication support to dhctl.
impact_level: default
---
section: candi
type: fix
summary: Fix deletion of NodeUsers.
impact_level: default

@YuryLysov YuryLysov added this to the v1.70.0 milestone Apr 28, 2025
@github-actions github-actions bot added area/cluster-and-infrastructure Pull requests that update infra modules type/dependencies Pull requests that update a dependency file area/cli Pull requests that update cli area/core Pull requests that update core modules go Pull requests that update Go code labels Apr 28, 2025
@YuryLysov YuryLysov self-assigned this Apr 28, 2025
@YuryLysov YuryLysov force-pushed the dhctl-native-ssh-client branch 6 times, most recently from d3dbd25 to 0268f9d Compare April 30, 2025 07:32
@YuryLysov YuryLysov added the e2e/run/gcp Run e2e tests in Google Cloud label Apr 30, 2025
@deckhouse-BOaTswain
Copy link
Collaborator
deckhouse-BOaTswain commented Apr 30, 2025

🟢 e2e: GCP for deckhouse:dhctl-native-ssh-client succeeded in 49m50s.

Workflow details

GCP-WithoutNAT-Containerd-1.30 - Connection string: ssh user@35.246.242.227

🟢 e2e: GCP, Containerd, Kubernetes 1.30 succeeded in 48m41s.

@github-actions github-actions bot removed the e2e/run/gcp Run e2e tests in Google Cloud label Apr 30, 2025
YuryLysov added 4 commits May 15, 2025 09:44
Signed-off-by: YuryLysov <yuriy.lysov@flant.com>
Signed-off-by: YuryLysov <yuriy.lysov@flant.com>
Signed-off-by: YuryLysov <yuriy.lysov@flant.com>
Signed-off-by: YuryLysov <yuriy.lysov@flant.com>
@YuryLysov YuryLysov force-pushed the dhctl-native-ssh-client branch from ced5e79 to e142e08 Compare May 15, 2025 05:44
YuryLysov added 2 commits May 15, 2025 09:44
Signed-off-by: YuryLysov <yuriy.lysov@flant.com>
Signed-off-by: YuryLysov <yuriy.lysov@flant.com>
@YuryLysov YuryLysov marked this pull request as ready for review May 15, 2025 11:05
@z9r5 z9r5 changed the title [dhctl] Implement native ssh client [dhctl] Implement native SSH client May 15, 2025
Signed-off-by: YuryLysov <yuriy.lysov@flant.com>
@raabdullaev raabdullaev modified the milestones: v1.70.0, v1.71.0 May 21, 2025
YuryLysov added 3 commits May 21, 2025 16:47
Signed-off-by: YuryLysov <yuriy.lysov@flant.com>
Signed-off-by: YuryLysov <yuriy.lysov@flant.com>
Signed-off-by: YuryLysov <yuriy.lysov@flant.com>
YuryLysov added 3 commits May 28, 2025 19:10
Signed-off-by: YuryLysov <yuriy.lysov@flant.com>
Signed-off-by: YuryLysov <yuriy.lysov@flant.com>
Signed-off-by: YuryLysov <yuriy.lysov@flant.com>
@sprait sprait marked this pull request as draft June 4, 2025 10:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/cli Pull requests that update cli area/cluster-and-infrastructure Pull requests that update infra modules area/core Pull requests that update core modules go Pull requests that update Go code type/dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants
0