-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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
Authorization header not being sent on x-pack requests by default #18258
Comments
Original comment by @epixa: /cc @ycombinator @spalger |
Original comment by @ycombinator: I'm able to reproduce this on |
Original comment by @ycombinator: For clarity: the original issue LINK REDACTED) mentions using Wireshark to inspect requests between the Kibana server and Elasticsearch. This isn't strictly necessary, IMO, because the problem seems to start with Kibana client (browser) itself. Sometimes the Authorization header sent from DiscoverAuthorization header not sent from Monitoring |
Original comment by @ycombinator: Also noticed that the So I'm not sure this is an x-pack vs. not issue. |
Original comment by @epixa: X-Pack server.route() calls that need to be audited to ensure they return a 401 with the appropriate realms: graph
ml
monitoring
reporting
searchprofiler
security
xpack_main
|
Original comment by @epixa: Kibana OSS API routes that need to be audited to ensure they properly return 401s with the necessary realm: cli
console
elasticsearch
kibana
timelion
server/http
server/status
ui
|
Original comment by @ycombinator: Plan after Zooming with @tsullivan and @epixa:
|
Original comment by @epixa: I've confirmed this behavior has been around since at least 5.1, so I've removed the blocker label on this for 5.3. We should get ahead of this problem and get this fixed up, though. |
Original comment by @skearns64: This seems likely to be related to LINK REDACTED |
Original comment by @epixa: @skearns64 Yep, that's the same issue. |
Superseded by #9583
Original comment by @epixa:
Kibana version: 5.2.1 (and probably all version through master)
Elasticsearch version: 5.2.1
Server OS version: darwin
Browser version: Chrome 56.0.2924.87
Browser OS version: darwin
Original Kibana install method (e.g. download page, yum, from source, etc.): download page
Original X-Pack install method (e.g. by name, offline install, from source, etc.): by name
Description of the problem including expected versus actual behavior:
Steps to reproduce:
Monitoring fails to work due to access denied errors by default. The search profiler (via dev tools) also fails (as do reporting requests behind the scenes, but that's disabled for this reproduction). In both cases, the authorization headers are not being sent, which is causing the failed requests. If you go to discover or something like that, the requests work and have the authorization header.
Now this is where it gets really strange: if you go to discover and then generate a short URL via the "share" menu, you'll see that that request does properly have an authorization header, and the short url is created. Now, if you go to search profiler and execute a search, the authorization header is sent and the request works this time. Also at this time, if you manually navigate to /app/monitoring (to make sure you're bypassing the access denied page), monitoring works and all the requests are sending the authorization header.
Taking that one step further, once the authorization header starts sending for xpack requests, even refreshing the page doesn't stop the requests from working. Starting a new incognito window will get us back into a failing state though.
The text was updated successfully, but these errors were encountered: