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

CLI request when namespace is in argument and part of the path #12720

Merged
merged 3 commits into from
Oct 22, 2021

Conversation

hghaf099
Copy link
Contributor

@hghaf099 hghaf099 commented Oct 4, 2021

CLI makes request to incorrect URL when namespace is both provided as argument and part of the path
fixes #12675

@vercel vercel bot temporarily deployed to Preview – vault-storybook October 4, 2021 17:49 Inactive
@vercel vercel bot temporarily deployed to Preview – vault October 4, 2021 17:49 Inactive
Copy link
Contributor

@ccapurso ccapurso left a comment

Choose a reason for hiding this comment

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

I left a couple comments that would improve the readability and error handling. It looks good at a high level but we should add some tests to validate that the bug no longer exists. Some test scenarios might provide a little extra context for me to analyze the logic a little further as well.

command/kv_helpers.go Outdated Show resolved Hide resolved
command/kv_helpers.go Outdated Show resolved Hide resolved
@hghaf099
Copy link
Contributor Author

hghaf099 commented Oct 6, 2021

Yes, I am creating some tests, however, the tests are going to be in the enterprise side, as namespaces are required to fully examine the change.

@vercel vercel bot temporarily deployed to Preview – vault-storybook October 6, 2021 21:58 Inactive
@vercel vercel bot temporarily deployed to Preview – vault October 6, 2021 21:58 Inactive
Copy link
Contributor

@ccapurso ccapurso left a comment

Choose a reason for hiding this comment

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

Looks good

@hghaf099 hghaf099 merged commit fd76783 into main Oct 22, 2021
@hghaf099 hghaf099 deleted the fix-cli-namespace-in-arg-and-path branch October 22, 2021 02:35
@hghaf099 hghaf099 restored the fix-cli-namespace-in-arg-and-path branch October 22, 2021 19:35
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.

Vault CLI makes request to incorrect URL when namespace is both provided as argument and part of the path
2 participants