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: errcheck for parsing CLI flags with FlagSet() #28692

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

thevilledev
Copy link
Contributor

Description

Various code paths in the repository depend on apiClientMeta.FlagSet() but they do not check the return value of flags.Parse(). A parse error will be hidden from the end-user and the execution continues. With this change execution fails if flags.Parse() returns an error.

This issue is more wide-spread and affects various HashiCorp Vault related repositories. Originally I noticed this in hashicorp/vault-plugin-auth-kubernetes#202.

TODO only if you're a HashiCorp employee

Not a HashiCorp employee :-)

@thevilledev thevilledev requested review from a team as code owners October 11, 2024 19:55
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.

1 participant