Skip to content

custom VNC password changes #193

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

Merged
merged 11 commits into from
Apr 28, 2025
Merged

Conversation

anshulsharma-hashicorp
Copy link
Contributor

@anshulsharma-hashicorp anshulsharma-hashicorp commented Apr 22, 2025

Description:
Ability to set the custom VNC password. So the user can set their own VNC password required to connect to VM through VNC. This way do not have to go through the debug log to look at the set password.

Added the unit test cases and tested through the sample packer templates.

Closes #186

@anshulsharma-hashicorp anshulsharma-hashicorp requested a review from a team as a code owner April 22, 2025 08:07
anurag5sh
anurag5sh previously approved these changes Apr 22, 2025
Copy link

@anurag5sh anurag5sh left a comment

Choose a reason for hiding this comment

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

LGTM!

@@ -28,7 +28,21 @@ type stepConfigureVNC struct {
l *net.Listener
}

func VNCPassword() string {
type vncpwd struct{}
Copy link

Choose a reason for hiding this comment

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

Suggested change
type vncpwd struct{}
type vncPassword struct{}

Copy link

Choose a reason for hiding this comment

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

NIT

func VNCPassword() string {
type vncpwd struct{}

func (p *vncpwd) VNCPassword(c *Config) (string, error) {
Copy link

Choose a reason for hiding this comment

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

Suggested change
func (p *vncpwd) VNCPassword(c *Config) (string, error) {
func (p *vncpwd) getVNCPassword(c *Config) (string, error) {

Copy link

Choose a reason for hiding this comment

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

Probably we can rename the method to this. Or any other better naming convention you would like

@anshulsharma-hashicorp anshulsharma-hashicorp merged commit f7e58de into main Apr 28, 2025
23 checks passed
@anshulsharma-hashicorp anshulsharma-hashicorp deleted the custom_vnc_password branch April 28, 2025 07:52
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.

Allow VNC passwords to be set from config
3 participants