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

New Visual Builder feature is not working well with authentication #11643

Closed
amitripshtos opened this issue May 7, 2017 · 2 comments · Fixed by #11656
Closed

New Visual Builder feature is not working well with authentication #11643

amitripshtos opened this issue May 7, 2017 · 2 comments · Fixed by #11656
Assignees
Labels
bug Fixes for quality problems that affect the customer experience Feature:TSVB TSVB (Time Series Visual Builder) Feature:Visualizations Generic visualization features (in case no more specific feature label is available)

Comments

@amitripshtos
Copy link

Kibana version:
5.4.0
Elasticsearch version:
5.4.0
Server OS version:
fedora 25
Browser version:
chrome 58
Browser OS version:

Original install method (e.g. download page, yum, from source, etc.):
docker image from docker hub
Description of the problem including expected versus actual behavior:
My kibana is protected by a nginx proxy (using basic authentication)
When I go into the Visual Builder, even for "*" index I get empty results for everything, and the network responses are:


https:/elastic:5601/api/metrics/vis/data

Request Payload
view source
{timerange: {min: "2017-05-05T04:00:00.000Z", max: "2017-05-06T03:59:59.999Z"},…}
filters : [{bool: {must: [{query_string: {query: "*"}}], must_not: []}}]
panels : [{id: "29c4d9c0-3301-11e7-b6a6-adae3e743956", type: "timeseries",…}]
timerange: {min: "2017-05-05T04:00:00.000Z", max: "2017-05-06T03:59:59.999Z"}

Response
29c4d9c0-3301-11e7-b6a6-adae3e743956: {id: "29c4d9c0-3301-11e7-b6a6-adae3e743956", statusCode: 401,…}
error:
"↵↵<title>401 Unauthorized</title>↵↵

Unauthorized

This server could not verify that you↵are authorized to access the document↵requested. Either you supplied the wrong↵credentials (e.g., bad password), or your↵browser doesn't understand how to supply↵the credentials required.

↵↵"
id: "29c4d9c0-3301-11e7-b6a6-adae3e743956"
series : []
statusCode : 401

https://elastic:5601/api/metrics/fields?index=*

Response is: []

Steps to reproduce:

  1. Create elasticsearch and kibana and add proxy with authentication for the elasticsearch server
  2. Go into visual builder
  3. See that it does not work

Thanks guys :)

@simianhacker simianhacker self-assigned this May 8, 2017
@simianhacker simianhacker added Feature:TSVB TSVB (Time Series Visual Builder) bug Fixes for quality problems that affect the customer experience and removed bug Fixes for quality problems that affect the customer experience labels May 8, 2017
@simianhacker
Copy link
Member

I have a fix for this, I'll be submitting a PR at the end of the day.

simianhacker added a commit to simianhacker/kibana that referenced this issue May 8, 2017
simianhacker added a commit that referenced this issue May 10, 2017
…lder (#11656)

* Fixed #11643 - Return Boom errors directly to the browser

* Checking for 401 and boom errors instead of just boom errors

* removing the returns from the hapi routes
simianhacker added a commit that referenced this issue May 10, 2017
…lder (#11656)

* Fixed #11643 - Return Boom errors directly to the browser

* Checking for 401 and boom errors instead of just boom errors

* removing the returns from the hapi routes
simianhacker added a commit that referenced this issue May 10, 2017
…lder (#11656)

* Fixed #11643 - Return Boom errors directly to the browser

* Checking for 401 and boom errors instead of just boom errors

* removing the returns from the hapi routes
@amitripshtos
Copy link
Author

Tnx guys <3

snide pushed a commit to snide/kibana that referenced this issue May 30, 2017
…lder (elastic#11656)

* Fixed elastic#11643 - Return Boom errors directly to the browser

* Checking for 401 and boom errors instead of just boom errors

* removing the returns from the hapi routes
@timroes timroes added the Feature:Visualizations Generic visualization features (in case no more specific feature label is available) label Feb 12, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Fixes for quality problems that affect the customer experience Feature:TSVB TSVB (Time Series Visual Builder) Feature:Visualizations Generic visualization features (in case no more specific feature label is available)
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants