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

chore: ensure internalQuerier utilizes identical authMiddleware to API #3439

Merged
merged 1 commit into from Nov 3, 2020

Conversation

jtlisi
Copy link
Contributor

@jtlisi jtlisi commented Oct 30, 2020

What this PR does:

This PR ensures the authentication middleware used by the internalQuerier is the same that is used by the API struct. I was worried this might be causing an issue with queries for single binary users with no org id errors, however, I manually verified it is not. Currently, this isn't causing an issue because the query-frontend will create the x-scope-orgid header with fake as a value so the AuthenticateUser middleware is valid. However, this will ensure any changes made to the auth middleware used by the API in the future will also be added to this internalHandler..

@jtlisi jtlisi closed this Oct 30, 2020
@jtlisi jtlisi reopened this Oct 30, 2020
Signed-off-by: Jacob Lisi <jacob.t.lisi@gmail.com>
Copy link
Contributor

@pracucci pracucci left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

@pracucci pracucci merged commit 163a304 into master Nov 3, 2020
@pracucci pracucci deleted the 20201030_use_api_middleware branch November 3, 2020 15:04
csmarchbanks pushed a commit that referenced this pull request Nov 3, 2020
#3439)

Signed-off-by: Jacob Lisi <jacob.t.lisi@gmail.com>
pracucci pushed a commit that referenced this pull request Nov 10, 2020
* Cut release 1.5.0-rc.0 (#3417)

Signed-off-by: Chris Marchbanks <csmarchbanks@gmail.com>

* Deploy on master or tags (#3419)

Signed-off-by: Chris Marchbanks <csmarchbanks@gmail.com>

* Properly calculate image tag in GitHub Actions (#3423)

Signed-off-by: Chris Marchbanks <csmarchbanks@gmail.com>

* fix: register querier routes explicitly with handler for instrumentation (#3436)

* fix: register querier routes explicitly with handler for instrumentation

Signed-off-by: Jacob Lisi <jacob.t.lisi@gmail.com>

* fix: use legacy prefix for querier routes

Signed-off-by: Jacob Lisi <jacob.t.lisi@gmail.com>

* remove unneeded changelog entry

Signed-off-by: Jacob Lisi <jacob.t.lisi@gmail.com>

* ensure the internal querier router uses the Server prefix

Signed-off-by: Jacob Lisi <jacob.t.lisi@gmail.com>

* simplify prefixes

Signed-off-by: Jacob Lisi <jacob.t.lisi@gmail.com>

* fix import issue caused by IDE

Signed-off-by: Jacob Lisi <jacob.t.lisi@gmail.com>

* chore: ensure internalQuerier utilizes identical authMiddleware to API (#3439)

Signed-off-by: Jacob Lisi <jacob.t.lisi@gmail.com>

* Cut release 1.5.0-rc.1

Signed-off-by: Chris Marchbanks <csmarchbanks@gmail.com>

* Cut release 1.5.0 (#3473)

* Cut release 1.5.0
* Update versions in k8s/ and docs/

Signed-off-by: Chris Marchbanks <csmarchbanks@gmail.com>

Co-authored-by: Jacob Lisi <jacob.t.lisi@gmail.com>
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.

None yet

2 participants