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

More robust handling of vmmetadataexporter CLI args #166

Open
wants to merge 3 commits into
base: release-v0.1.4
Choose a base branch
from

Conversation

ericwb
Copy link
Contributor

@ericwb ericwb commented Feb 7, 2025

This change does more validation of the CLI args given to vmmetadataexporter to avoid panics. If host isn't given, it errors and exits. If username or password isn't given, it prompts the user to input them.

This handles a variety of scenarios around giving or not giving these three arguments. It is also a better solution around handling a password, since a CLI password arg gets leaked to the shell history and potentially other logs.

Fixes #165

ericwb and others added 2 commits February 6, 2025 22:09
This change does more validation of the CLI args given to
vmmetadataexporter to avoid panics. If host isn't given, it
errors and exits. If username or password isn't given, it
prompts the user to input them.

This handles a variety of scenarios around giving or not giving
these three arguments. It is also a better solution around
handling a password, since a CLI password arg gets leaked to
the shell history and potentially other logs.

Fixes platform9#165

Signed-off-by: Eric Brown <[email protected]>
@sharma-tapas sharma-tapas changed the base branch from main to release-v0.1.4 February 18, 2025 06:34
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.

vmmetadataexporter panics if CLI args not given
2 participants