I feel like I’m missing something obvious here.
I have a user called “joe_user” in internal_users.yml
joe_user:
hash: <redacted>
reserved: false
hidden: false
backend_roles:
- "admin"
description: "Joe User"
who is mapped to a backend_role called “admin”
which in roles_mapping.yml should map to the predefined security role of “all_access”.
I’m looking at the list of predefined security roles which includes “all_access”.
all_access:
reserved: true
hidden: false
backend_roles:
- "admin"
And that user seems to work just fine – except for generating reports.
I’m not using the report scheduler plugin.
I’m just trying to generate a PDF report.
I went to my dashboard, I clicked “Reporting”, I selected generate PDF report and I get an error
There is nothing relevant in the elasticsearch log, but I did find this success in the kibana.log
May 03 17:35:27 es-master kibana[15546]: {"type":"response","@timestamp":"2022-05-03T21:35:26Z","tags":[],"pid":15546,"method":"post","statusCode":200,"req":{"url":"/api/ui_metric/report","method":"post","headers":{"host":"10.43.117.10:5601","connection":"keep-alive","content-length":"123","sec-ch-ua":"\" Not A;Brand\";v=\
\"99\", \"Chromium\";v=\"99\", \"Google Chrome\";v=\"99\"","content-type":"application/json","sec-ch-ua-mobile":"?0","user-agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.83 Safari/537.36","kbn-version":"7.10.2","sec-ch-ua-platform":"\"macOS\"","accept":"*/*"\
,"origin":"https://10.43.117.10:5601","sec-fetch-site":"same-origin","sec-fetch-mode":"cors","sec-fetch-dest":"empty","referer":"https://10.43.117.10:5601/app/dashboards","accept-encoding":"gzip, deflate, br","accept-language":"en-US,en;q=0.9"},"remoteAddress":"10.10.100.156","userAgent":"Mozilla/5.0 (Macintosh; Intel Mac\
OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.83 Safari/537.36","referer":"https://10.43.117.10:5601/app/dashboards"},"res":{"statusCode":200,"responseTime":302,"contentLength":9},"message":"POST /api/ui_metric/report 200 302ms - 9.0B"}
If I open up developer tools, I see this issue:
{"statusCode":400,"error":"Bad Request","message":"Invalid index name [_opendistro], must not start with '_'."}
The offending request url looks something like this:
/app/dashboards#/view/cf8654b0-a1f8-11ea-8847-eb065f5fdfa5?_g=(filters:!(),refreshInterval:(pause:!t,value:0),time:(from:'2022-05-03T21:25:36.872Z',to:'2022-05-03T21:40:36.872Z'))&_a=(description:'A%20dashboard%20of%20all%20of%20the%20EFS%20Audit%20visualizations',filters:!(),fullScreenMode:!f,options:(hidePanelTitles:!f,\
useMargins:!t),query:(language:kuery,query:''),timeRestore:!f,title:'My%20EFS%20Audit%20Events%20dashboard',viewMode:view)
and here is an image of the request body: