Skip to content

Resolve pending GH code scanning alerts#220

Merged
luke-hagar-sp merged 2 commits intomainfrom
fixing-alerts
Feb 11, 2026
Merged

Resolve pending GH code scanning alerts#220
luke-hagar-sp merged 2 commits intomainfrom
fixing-alerts

Conversation

@luke-hagar-sp
Copy link
Contributor

Refactor SSH client configuration and enhance known hosts management

  • Changed version parsing in conn_tag_create.go to use ParseUint for better handling of version numbers.
  • Introduced functions in va.go to manage SSH known hosts, including creating a known_hosts file if it doesn't exist and prompting for user confirmation on first-time connections.
  • Updated RunVACmd and related functions to utilize the new SSH client configuration with proper host key verification.

Description

What is the intent of this change and why is it being made?

How Has This Been Tested?

What testing have you done to verify this change?

Refactor SSH client configuration and enhance known hosts management

- Changed version parsing in conn_tag_create.go to use ParseUint for better handling of version numbers.
- Introduced functions in va.go to manage SSH known hosts, including creating a known_hosts file if it doesn't exist and prompting for user confirmation on first-time connections.
- Updated RunVACmd and related functions to utilize the new SSH client configuration with proper host key verification.
…ication logic. This change simplifies the newSSHClientConfig function and enhances security by enforcing host key verification.
@luke-hagar-sp luke-hagar-sp merged commit f97efd0 into main Feb 11, 2026
8 checks passed
@luke-hagar-sp luke-hagar-sp deleted the fixing-alerts branch February 11, 2026 22:46
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