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

UI: remove renew self call after login #28204

Merged
merged 5 commits into from
Aug 28, 2024

Conversation

hashishaw
Copy link
Contributor

Description

When logging in with a non-renewable token (such as root or batch), I was seeing that upon login the UI immediately triggered a renew-self call. I traced it back to this PR where we updated the batch token to also updates expirationTime even though it's not renewable. This caused setLastFetch to try to compare now to null, which caused it to always renew.

Batch token after login before
Screenshot 2024-08-27 at 16 36 01

@hashishaw hashishaw added ui bug Used to indicate a potential bug backport/1.17.x labels Aug 27, 2024
@hashishaw hashishaw added this to the 1.17.5 milestone Aug 27, 2024
@hashishaw hashishaw requested review from a team as code owners August 27, 2024 21:56
@github-actions github-actions bot added the hashicorp-contributed-pr If the PR is HashiCorp (i.e. not-community) contributed label Aug 27, 2024
Copy link

Build Results:
All builds succeeded! ✅

Copy link

CI Results:
All Go tests succeeded! ✅

Copy link
Contributor

@hellobontempo hellobontempo left a comment

Choose a reason for hiding this comment

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

Good catch! Thanks for adding test coverage for the regression

@hashishaw hashishaw merged commit 872f31f into main Aug 28, 2024
31 checks passed
@hashishaw hashishaw deleted the ui/VAULT-30473/fix-renew-self-after-login branch August 28, 2024 15:05
hashishaw added a commit that referenced this pull request Aug 28, 2024
* check for renewAfterEpoch before comparing it

* add test coverage for regression

* add comment. Fixes VAULT-4630

* throw error

* add changelog
hellobontempo pushed a commit that referenced this pull request Aug 28, 2024
* check for renewAfterEpoch before comparing it

* add test coverage for regression

* add comment. Fixes VAULT-4630

* throw error

* add changelog
hashishaw added a commit that referenced this pull request Aug 29, 2024
* check for renewAfterEpoch before comparing it

* add test coverage for regression

* add comment. Fixes VAULT-4630

* throw error

* add changelog
ryancragun added a commit that referenced this pull request Aug 29, 2024
ryancragun added a commit that referenced this pull request Aug 29, 2024
ryancragun added a commit that referenced this pull request Aug 29, 2024
* backport of commit 78e1cce

* Revert "backport of commit a5262e0 (#28210)"

This reverts commit ff2e104.

* Revert "UI: remove renew self call after login (#28204) (#28211)"

This reverts commit d2d7958.

---------

Co-authored-by: Ryan Cragun <[email protected]>
ryancragun pushed a commit that referenced this pull request Aug 29, 2024
* check for renewAfterEpoch before comparing it

* add test coverage for regression

* add comment. Fixes VAULT-4630

* throw error

* add changelog
ryancragun added a commit that referenced this pull request Aug 29, 2024
* backport of commit a5262e0 (#28210)

Co-authored-by: Violet Hynes <[email protected]>

* UI: remove renew self call after login (#28204) (#28211)

* check for renewAfterEpoch before comparing it

* add test coverage for regression

* add comment. Fixes VAULT-4630

* throw error

* add changelog

---------

Co-authored-by: Violet Hynes <[email protected]>
Co-authored-by: Chelsea Shaw <[email protected]>
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 hashicorp-contributed-pr If the PR is HashiCorp (i.e. not-community) contributed ui
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants