Skip to content
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

fix: insecure host key #254

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

fix: insecure host key #254

wants to merge 1 commit into from

Conversation

tenthirtyam
Copy link
Collaborator

Summary

Enhancements to the EsxiDriver in the builder/vmware/common/driver_esxi.go file to improve security by using known host key verification. The most important changes involve importing the knownhosts package and updating the SSH connection configuration to use a known hosts file.

  • Imported the knownhosts package to enable host key verification.
  • Updated the connect function to use a known hosts file for host key verification instead of ignoring host keys.

Reference

https://github.com/hashicorp/packer-plugin-vmware/security/code-scanning/7

Uses the knownhosts package to validate the host key.

Signed-off-by: Ryan Johnson <ryan.johnson@broadcom.com>
@tenthirtyam tenthirtyam added bug security Security issues/fixes. labels Oct 15, 2024
@tenthirtyam tenthirtyam added this to the v1.1.1 milestone Oct 15, 2024
@tenthirtyam tenthirtyam self-assigned this Oct 15, 2024
@tenthirtyam tenthirtyam requested a review from a team as a code owner October 15, 2024 02:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug security Security issues/fixes.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant