Kibana: 馃悰 Selecting non-default Space causes infinite error+refresh loop

Created on 27 Jun 2019  路  8Comments  路  Source: elastic/kibana

Kibana version: 7.2.0

Elasticsearch version: 7.2.0

Server OS version: Debian 9

Browser version: Firefox 67.0.4

Browser OS version: Ubuntu 18.04.2 LTS

Original install method (e.g. download page, yum, from source, etc.): Download page

Describe the bug: After creating a new Space, then attempting to navigate to that space (either via the intro Space-selector screen or via the top-navigation dropdown menu for selecting a different Space), Kibana enters an infinite "loading... error" loop.

Steps to reproduce:

  1. Create a new Space without access to the Index Pattern Management feature.
  2. Navigate to that Space for the first time.
  3. Kibana immediately redirects to the Index Pattern Management interface, causing an infinite loading+error loop.

Expected behavior: Either of the following would be acceptable:

  1. Integrate the creation of at least one Index Pattern into the workflow of creating a new Space, OR
  2. When creating or modifying a Space with no index patterns, enforce that the Index Pattern Management feature is enabled, OR
  3. When a user attempts to access the Index Pattern Management feature, but does not have access to that feature (due to Space restrictions, Role permissions, or otherwise), simply display a helpful error instead of exploding spectacularly.

Screenshots (if relevant):

This screen appears briefly (less than 100ms) between long periods where only a Loading spinner is visible. It took a few attempts to get the timing right to take this screenshot:

Screenshot from 2019-06-27 12-37-13

Errors in browser console (if relevant):

Provide logs and/or server output (if relevant):

Any additional context:

SecuritFeature Controls Security bug

All 8 comments

Pinging @elastic/kibana-security

Hey @canterberry, thanks for the bug report.

I'm having a hard time reproducing this issue. Can you share a little more about your configuration? Can you post your kibana.yml, with any sensitive information redacted?

repro

edit: the gif was cutoff at the end slightly, but still illustrates my attempt. Full video here: http://recordit.co/0I2npdKf2i

Your repro steps look correct.
A video of me following the same steps (starting from the Spaces management screen):

:film_strip: elastic.kibana.39837.mp4

Here's our Kibana configuration:

kibana.yml

elasticsearch:
  hosts:
  - "<<<REDACTED>>>"
  username: "<<<REDACTED>>>"
  password: "<<<REDACTED>>>"
  ssl:
    certificate: "<<<REDACTED>>>"
    key: "<<<REDACTED>>>"
    certificateAuthorities:
    - "<<<REDACTED>>>"
    verificationMode: "full"
kibana:
  defaultAppId: "discover"
  index: ".kibana"
path:
  data: <<<REDACTED>>>
server:
  host: "<<<REDACTED>>>"
  port: "<<<REDACTED>>>"
  name: "<<<REDACTED>>>"
  xsrf:
    whitelist:
    - /api/security/v1/saml
  ssl:
    enabled: true
    certificate: "<<<REDACTED>>>"
    key: "<<<REDACTED>>>"
    certificateAuthorities:
    - "<<<REDACTED>>>"
    supportedProtocols:
    - "TLSv1.2"
xpack:
  monitoring:
    enabled: true
  security:
    authProviders:
    - saml
    encryptionKey: "<<<REDACTED>>>"
    public:
      hostname: "<<<REDACTED>>>"
      port: <<<REDACTED>>>
      protocol: https
    secureCookies: true

In this configuration, we have two Kibana nodes running behind an application load balancer in AWS, operating over TLSv1.2; our Kibana users are using SAML authentication.

Thanks for the update, I was able to reproduce when setting the kibana.defaultAppId option to "discover", like your kibana.yml indicates.

Can you verify that removing this configuration option "fixes" the problem for you? I want to make sure we're isolating the problem correctly.

@legrego This default value of the kibana.defaultAppId option is "discover" according to the Kibana Settings documentation. Removing it should have no impact, so I'll try removing it and see if the problem persists.

You're absolutely right, it _shouldn't_ have an impact...however, it looks like there's a bug in the documentation, as the current default value is home:
https://github.com/elastic/kibana/blob/e1b1c56eefd4f0fe09666adc45d11b0f413a3d02/src/legacy/core_plugins/kibana/index.js#L54

@legrego Excellent sleuthing. That did, indeed, fix the problem!

Awesome, thanks for confirming!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

TiNico22 picture TiNico22  路  87Comments

panda87 picture panda87  路  206Comments

passkey1510 picture passkey1510  路  96Comments

Alex-Ikanow picture Alex-Ikanow  路  364Comments

tbragin picture tbragin  路  81Comments