-
Notifications
You must be signed in to change notification settings - Fork 492
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
Use github.com/hashicorp/vault/api.LifetimeWatcher instead of github.com/hashicorp/vault/api.Renewer #1985
Comments
Thank you for opening this @hiyosi (as usual :) ) I don't think there are any objections to doing this, but I do have a few questions!
I'm curious to hear a little bit more about the types of renewal failures that we might encounter, and what the desired behavior would be for each of those. My hope is that there is a clear choice in the behavior, and that we would not need to expose this as configuration.
Yikes... Perhaps an issue on their repository asking if/when there will be another release? I think there's some general hesitation in moving dependencies to un-released versions Finally, I assume that this is purely a client-side logic change that does not affect Vault API compatibility, right? In other words, will moving to |
@evan2645 Thank you for your reply. My concern is to make sure that the token is renewed continues even if some errors.
I think this change is only affect the client code. So there is no affect which Vault versions our plugin will work with. I'll create an issue on the hashicorp/vault repository ask them what they are thinking about the next release. |
https://pkg.go.dev/github.com/hashicorp/vault/[email protected] has been released. |
PR has been merged. |
vault
pluginThe LifetimeWatcher is expected to be added to the next release version of the
github.com/hashicorp/vault/api
.It will allow the user to select the behavior what happens when a renewal errors.
https://github.com/hashicorp/vault/blob/v1.6.0/api/lifetime_watcher.go
In the current release version(v1.0.4), it is not possible to select the behavior and will always stop to renew the token when some error occurs.
Therefore, it recommend to replace the Renewer to the LifetimeWatcher.
But I'm not sure when the next version will be released.(The latest release was on 26 Jul 2019.)
We can also give a commit hash...what do you think?
The text was updated successfully, but these errors were encountered: