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

Convert not_before_duration to seconds before returning it #15559

Conversation

Gabrielopesantos
Copy link
Contributor

@Gabrielopesantos Gabrielopesantos commented May 20, 2022

Description

Found a bug in an improvement that was merged to main the other day (#15250).
The SSH Role field not_before_duration field is returned in nanoseconds instead of seconds (as expected).
The following requests fixes this issue by converting the value of the fields to seconds before returning it.

Screenshots of the bug (not_before_duration meant to be 30 seconds)

ui
cli

PS: The screenshots are a bit bigger than expected.

Others

Not sure if it's worth creating an issue for this.

@cipherboy
Sorry for pinging, just thought it would be faster since you have context of what was done.

@Gabrielopesantos Gabrielopesantos marked this pull request as ready for review May 20, 2022 22:07
@cipherboy cipherboy requested review from a team and cipherboy May 20, 2022 22:46
@cipherboy
Copy link
Contributor

@Gabrielopesantos Thanks for catching this! I'll take a look on Monday, but I've tagged us so we'll hopefully remember.

@cipherboy cipherboy added bug Used to indicate a potential bug secret/ssh labels May 20, 2022
Copy link
Contributor

@cipherboy cipherboy left a comment

Choose a reason for hiding this comment

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

Typically we don't need a changelog entry for this that haven't hit a RC or anything yet, so I'd usually ask you to remove it. But its such a small change that it seems a waste to re-run CI...

@cipherboy cipherboy merged commit 9083bd2 into hashicorp:main May 23, 2022
Gabrielopesantos added a commit to Gabrielopesantos/vault that referenced this pull request Jun 6, 2022
…#15559)

* Convert not_before_duration to seconds before returning it

* changelog file
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Used to indicate a potential bug secret/ssh
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants