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

Allow for path configuration on token helpers #37

Merged
merged 1 commit into from
Apr 2, 2024

Conversation

jasonodonnell
Copy link
Contributor

This is a follow up PR for #36 to refactor the code a little bit more to make it more testable. I've added a path configurable and a test to ensure we error out if the client supplies an empty path. If this is merged I will update the Vault CLI code to pass in a path (or ignore it).

@jasonodonnell jasonodonnell requested a review from a team as a code owner April 2, 2024 19:11
Comment on lines -221 to -223
if err != nil {
return ""
}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This empty return concerned me because we use this value in filepath.Join prior to deleting files.

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.

This looks good. I like the change to pass in the path as part of the config!

@divyaac divyaac self-requested a review April 2, 2024 20:05
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.

3 participants