Skip to content

Fix identity token panic during invalidation#8015

Merged
briankassouf merged 5 commits into
masterfrom
fix-identity-cache-flush
Dec 17, 2019
Merged

Fix identity token panic during invalidation#8015
briankassouf merged 5 commits into
masterfrom
fix-identity-cache-flush

Conversation

@kalafut
Copy link
Copy Markdown
Contributor

@kalafut kalafut commented Dec 12, 2019

No description provided.

@kalafut kalafut added this to the 1.3.1 milestone Dec 12, 2019
@kalafut kalafut requested review from a user and calvn December 12, 2019 20:17
briankassouf
briankassouf previously approved these changes Dec 12, 2019
Copy link
Copy Markdown
Member

@jefferai jefferai left a comment

Choose a reason for hiding this comment

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

Don't know if it's the right fix but seems reasonable.

I'd also like to see some nil checks added to oidcCache though.

@kalafut kalafut requested a review from jefferai December 16, 2019 06:16
briankassouf
briankassouf previously approved these changes Dec 16, 2019
Comment thread vault/identity_store_oidc.go Outdated
}

i.oidcCache.Flush(nilNamespace)
i.oidcCache.Flush(noNamespace)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Here (and elsewhere in this PR where you call flush), and in SetDefault below, you've added error returns to the functions but aren't actually checking them here.

@briankassouf briankassouf merged commit a8de99b into master Dec 17, 2019
@briankassouf briankassouf deleted the fix-identity-cache-flush branch December 17, 2019 18:45
kalafut pushed a commit that referenced this pull request Dec 17, 2019
* Fix identity token crash during invalidation

* Check for nil namespace

* Fix test

* Add nil check test

* Check OIDC cache errors
briankassouf pushed a commit that referenced this pull request Dec 17, 2019
* Fix identity token crash during invalidation

* Check for nil namespace

* Fix test

* Add nil check test

* Check OIDC cache errors
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants