Issue with Multitenancy Authentication Error in OpenSearch Dashboards
During execution charts test for Eliatra Suite, I noticed that an exception is being generated with the following log in OpenSearch Dasboards:
{"type":"log","@timestamp":"2023-04-25T15:42:55Z","tags":["info","plugins","eliatrasuite","eliatrasuite-multitenancy"],"pid":1,"statusCode":401,"name":"AuthenticationError","inner":{"name":"ResponseError","meta":{"body":"Unauthorized","statusCode":401,"headers":{"www-authenticate":"Basic realm=\"Eliatra Suite\"","content-type":"text/plain; charset=UTF-8","content-length":"12"},"meta":{"context":null,"request":{"params":{"path":"/_eliatra/security/authinfo","method":"get","headers":{"user-agent":"opensearch-js/1.1.0 (linux 5.19.0-1023-aws-x64; Node.js v14.20.1)","x-opensearch-product-origin":"opensearch-dashboards"},"querystring":"","timeout":30000},"options":{},"id":1},"name":"opensearch-js","connection":{"url":"https://eliatra-eliatra-suite-clients.es.svc:9200/","id":"https://eliatra-eliatra-suite-clients.es.svc:9200/","headers":{},"deadCount":0,"resurrectTimeout":0,"_openRequests":0,"status":"alive","roles":{"master":true,"data":true,"ingest":true}},"attempts":0,"aborted":false}}},"message":"Multitenancy: Could not get authinfo AuthenticationError: Response Error"}
This issue occurs when multitenancy is enabled in the dashboards, and the call to https://127.0.0.1:5601/api/status is made (which is used to check if the POD is working correctly). I found information that a similar issue was reported for Search Guard: https://forum.search-guard.com/t/kibana-multitenancy-plugin-unauthenticated-access-to-api-status-results-in-authenticationerror/2300/4