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

auth: store period value on tokens created via login #7885

Merged
merged 9 commits into from
Oct 26, 2020

Conversation

calvn
Copy link
Contributor

@calvn calvn commented Nov 15, 2019

Periodic tokens created directly via the token store as the period value stored as part of its token entry, but the same does not apply for tokens generated via login by auth methods. This PR adds that value to the token entry of tokens generated via login.

@calvn calvn added this to the 1.3.1 milestone Nov 15, 2019
@@ -2463,57 +2481,8 @@ func testTokenStore_HandleRequest_Lookup(t *testing.T, batch bool) {
"entity_id": "",
"type": tokenType,
}

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The diff makes this looks somewhat erroneous, but this deletion is basically to remove the "// Test via POST" step that seems to be happening twice. I suspect that it's a copy/paste duplication.

@briankassouf briankassouf modified the milestones: 1.3.1, 1.4 Dec 17, 2019
Copy link
Contributor

@tyrannosaurus-becks tyrannosaurus-becks left a comment

Choose a reason for hiding this comment

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

This looks really good. Would it be possible to merge and push master to ensure the tests are still passing?

vault/request_handling_test.go Show resolved Hide resolved
Copy link
Contributor

@tyrannosaurus-becks tyrannosaurus-becks left a comment

Choose a reason for hiding this comment

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

Well done! Thank you!

@pbernal pbernal modified the milestones: 1.4, triaged Feb 15, 2020
@calvn calvn requested a review from ncabatoff June 5, 2020 20:31
@pbernal pbernal modified the milestones: triaged, 1.5 Jun 12, 2020
@pbernal pbernal modified the milestones: 1.5, 1.6 Jun 26, 2020
@vishalnayak vishalnayak merged commit 297faa4 into master Oct 26, 2020
@vishalnayak vishalnayak deleted the auth-backend-token-entry-period branch October 26, 2020 20:26
vishalnayak added a commit that referenced this pull request Oct 26, 2020
* auth: store period value on tokens created via login

* test: reduce potentially flaskiness due to ttl check

* test: govet on package declaration

* changelog++

* Temporarily remove CL entry

* Add back the CL entry

Co-authored-by: Vishal Nayak <[email protected]>
vishalnayak added a commit that referenced this pull request Oct 27, 2020
* auth: store period value on tokens created via login

* test: reduce potentially flaskiness due to ttl check

* test: govet on package declaration

* changelog++

* Temporarily remove CL entry

* Add back the CL entry

Co-authored-by: Vishal Nayak <[email protected]>

Co-authored-by: Calvin Leung Huang <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants