-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
certificates generated from vault have invalid "Not Before" field #5481
Comments
If you are able to try that branch ^ that would be great. It should fix the problem but confirmation from the reporter is always nice :-) |
Works like a charm:
|
Thanks! |
Any recommendations on how to deal with this if we have upgraded to 0.11.3 in prod already? anything safer/easier than a downgrade path? |
Sure, you can build the binary yourself, or in less than a week there will be a beta. |
@shayangz You can also update your PKI roles to explicitly set 30s as the not_before_duration. |
Oh right, thanks Chris! Sometimes the easy things are easy to forget. |
btw, this issue also exists in @chrishoffman, is there a tune option on the secret engine to enforce |
It should be fixed there as well, yes. No tune option, it's something specific to the PKI backend. |
This problem also happens for
There doesn't currently appear to be a workaround for this. Is this planned for a hotfix? It is currently impacting us in production. |
Look four comments up (from yours) for the workaround |
I've already tried that -- it does not work for the endpoint I mentioned. I've confirmed that all my roles are set to not_before_duration = 30s. |
It should be fixed in master if you want to build from there. |
Describe the bug
After upgrading to 0.11.2 certificates generated from vault have invalid "Not Before" field set to
Jan 1 00:00:00 1 GMT
.To Reproduce
We have long-running Vault cluster starting from version ~0.4
Steps to reproduce the behavior:
Expected behavior
The
Not Before:
field should be set to the current date of certificate generation.Environment:
Vault Server Version (retrieve with
vault status
):Version 0.11.3
Vault CLI Version (retrieve with
vault version
):Vault v0.11.3 ('fb601237bfbe4bc16ff679f642248ee8a86e627b')
Server Operating System/Architecture:
Linux/amd64
Vault server configuration file(s):
Additional context
This may be introduced by:
Actual role as seen by Vault:
Note that
not_before_duration
is set to 0s.The text was updated successfully, but these errors were encountered: