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

A bunch of little fixes #23

Merged
merged 7 commits into from
Feb 17, 2021
Merged

A bunch of little fixes #23

merged 7 commits into from
Feb 17, 2021

Conversation

pcman312
Copy link
Contributor

@pcman312 pcman312 commented Feb 16, 2021

  • Renames /cred -> /creds
  • Removes prefix argument from static creds endpoint (it isn't supported & was creating problems with the path-help command on Vault)
  • Fixes creation error not showing up if a rollback failure occurs during dynamic credential creation

Copy link

@calvn calvn left a comment

Choose a reason for hiding this comment

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

One request on the role/ API path, otherwise 👍

@@ -18,8 +18,8 @@ import (
const (
secretCredsType = "creds"

dynamicRolePath = "role/"
dynamicCredPath = "cred/"
dynamicRolePath = "roles/"
Copy link

Choose a reason for hiding this comment

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

Consider reverting this back to role/

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

@pcman312 pcman312 requested a review from calvn February 17, 2021 19:22
@@ -183,11 +183,11 @@ teardown() {
vault delete openldap/config

# Remove any roles that were created so they don't bleed over to other tests
output=$(vault list -format=json openldap/role || true) # "or true" so it doesn't show an error if there are no roles
output=$(vault list -format=json openldap/roles || true) # "or true" so it doesn't show an error if there are no roles
Copy link

Choose a reason for hiding this comment

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

You'd have to revert these paths as well 😄

Copy link
Contributor Author

Choose a reason for hiding this comment

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

https://media.giphy.com/media/xT5LMWJSXHRbSusYve/giphy.gif

@pcman312 pcman312 requested a review from calvn February 17, 2021 19:47
@pcman312 pcman312 merged commit 6449f92 into master Feb 17, 2021
@pcman312 pcman312 deleted the small-fixes branch February 17, 2021 19:49
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.

2 participants