Kibana anonymous access "TypeError: Cannot read properties of null (reading 'statusCode')"

Hello guys!

I faced the issue that my dashbaords and data views break

How I reproduce my issue:

  1. Deployed Elastic and Kibana 8.13.3 and logged in under elastic superuser to Kibana
  2. Added "Sample eCommerce orders" sample data set
  3. Navigated to "Editing [eCommerce] Revenue Dashboard" dashboard
  4. Everything works fine
  5. Redeployed Kibana with anon access directives in my "kibana.yml" file:
    xpack.security.authc.providers:
          basic.basic1:
            order: 1
          anonymous.anonymous1:
            order: 0
            credentials:
              username: anonymous_service_account
              password: anonymous_service_account_password
    
  6. Logged in under elastic superuser (not anon user) to Kibana and navigated to "Editing [eCommerce] Revenue Dashboard" dashboard
  7. Almost all visualizations are broken with error:
    Could not locate field: <field_name>
    for example:
    Could not locate field: category.keyword
    In the right corner there is the following error appears:
       TypeError: Cannot read properties of null (reading 'statusCode')
       at http://kibana.example.com/003e4a429463/bundles/plugin/dataViews/1.0.0/dataViews.plugin.js:1:42549
       at async data_views_service_public_DataViewsServicePublic.refreshFieldSpecMap (http://kibana.example.com/003e4a429463/bundles/plugin/dataViews/1.0.0/dataViews.plugin.js:1:31250)
       at async data_views_service_public_DataViewsServicePublic.initFromSavedObjectLoadFields (http://kibana.example.com/003e4a429463/bundles/plugin/dataViews/1.0.0/dataViews.plugin.js:1:32799)
       at async data_views_service_public_DataViewsServicePublic.initFromSavedObject (http://kibana.example.com/003e4a429463/bundles/plugin/dataViews/1.0.0/dataViews.plugin.js:1:33343)
       ```	
    
  8. If I go to "Data Views > Kibana Sample Data eCommerce" there are no fields and the same error as above appears

I tried to reload the problem pages with Developer Console (F12) to get some errors but did not find anything that differ from "initial state before I enabled anon access"

In Kibana logs with Debug I did not find "Cannot read properties of null" event

Kibana and Elastic are both 8.13.3 version

I found these topics:

but none of them helped

The issue reproduces only if I launch it in Openshift
No issue in Docker with the same configuration
No issue in minikube with the same configuration

Did I miss something regarding setting anon access for Kibana in Openshift via Helm Charts (cannot use ECK unfortunately)?

Thank you!

Images:



Looks like an approach with Helm charts is indeed not supported anyhow further

I deployed Elastic and Kibana via ECK operator and it works fine on Openshift

I think this topic may be closed