I still experience problems. Let me give you some additional info here.
The initial (Filebeat setup in this case) has been done like this:
docker run --net="host" \
-v .../ca.crt:/usr/share/filebeat/ca.crt \
docker.elastic.co/beats/filebeat:8.10.4 \
setup -e \
-E setup.kibana.username=filebeat_setup \
-E setup.kibana.password=... \
-E setup.kibana.host="http://localhost:5601" \
-E output.elasticsearch.username=filebeat_setup \
-E output.elasticsearch.password=... \
-E output.elasticsearch.hosts=["https://localhost:9200"] \
-E output.elasticsearch.ssl.certificate_authorities=["/usr/share/filebeat/ca.crt"]
This command seems to work fine and I get no errors. After this I issue the following for the other tenants:
docker run --net="host" \
-v .../ca.crt:/usr/share/filebeat/ca.crt \
docker.elastic.co/beats/filebeat:8.10.4 \
setup --dashboards \
-E setup.kibana.username=filebeat_setup \
-E setup.kibana.password=... \
-E setup.kibana.host="http://localhost:5601" \
-E setup.kibana.space.id=<tenant x> \
-E output.elasticsearch.username=filebeat_setup \
-E output.elasticsearch.password=... \
-E output.elasticsearch.hosts=["https://localhost:9200"] \
-E output.elasticsearch.ssl.certificate_authorities=["/usr/share/filebeat/ca.crt"]
Again the command executes without any errors. Now, if log in as a user of the "admins" role I may access (say the Filebeat Syslog) dashboard and click the links. However, if i switch to the "tenant x" space, select the same dashboard and then click the links, I get a 404 error.
If I log in as a member of the "tenant x" space, go to the same dashboard as the above, I can open the dashboard but clicking any of the links result int oa 404 error.
I think this shows that I must have done something wrong in my (ansible) setup.
The members of the "admins" role have all cluter privileges and the following Kibana features enabled for the "admins" space (sorry for the long yaml layout):
kibana:
features:
- feature: enterpriseSearch
privileges:
- all
- feature: discover
privileges:
- all
- feature: dashboard
privileges:
- all
- feature: canvas
privileges:
- all
- feature: maps
privileges:
- all
- feature: ml
privileges:
- all
- feature: logs
privileges:
- all
- feature: graph
privileges:
- all
- feature: visualize
privileges:
- all
- feature: infrastructure
privileges:
- all
- feature: apm
privileges:
- all
- feature: uptime
privileges:
- all
- feature: siem
privileges:
- all
- feature: securitySolutionCases
privileges:
- all
- feature: slo
privileges:
- all
- feature: dev_tools
privileges:
- all
- feature: advancedSettings
privileges:
- all
- feature: indexPatterns
privileges:
- all
- feature: fileManagement
privileges:
- all
- feature: filesSharedImage
privileges:
- all
- feature: savedObjectsManagement
privileges:
- all
- feature: savedObjectsTagging
privileges:
- all
- feature: osquery
privileges:
- none
- feature: actions
privileges:
- all
- feature: generalCases
privileges:
- all
- feature: guidedOnboardingFeature
privileges:
- all
- feature: monitoring
privileges:
- all
- monitoring_user
spaces:
- space: admins
The "tenant x" users have no cluster privileges and the following Kibana features:
kibana:
features:
- feature: enterpriseSearch
privileges:
- none
- feature: discover
privileges:
- all
- feature: dashboard
privileges:
- all
- feature: canvas
privileges:
- none
- feature: maps
privileges:
- none
- feature: ml
privileges:
- none
- feature: logs
privileges:
- none
- feature: graph
privileges:
- none
- feature: visualize
privileges:
- all
- feature: infrastructure
privileges:
- none
- feature: apm
privileges:
- none
- feature: uptime
privileges:
- none
- feature: siem
privileges:
- none
- feature: securitySolutionCases
privileges:
- none
- feature: slo
privileges:
- none
- feature: dev_tools
privileges:
- none
- feature: advancedSettings
privileges:
- none
- feature: indexPatterns
privileges:
- all
- feature: fileManagement
privileges:
- none
- feature: filesSharedImage
privileges:
- none
- feature: savedObjectsManagement
privileges:
- none
- feature: savedObjectsTagging
privileges:
- none
- feature: osquery
privileges:
- none
- feature: actions
privileges:
- none
- feature: generalCases
privileges:
- none
- feature: guidedOnboardingFeature
privileges:
- none
spaces:
- space: <tenant x>
Currently I'm out of luck understanding what's going on "under the hood" but it feels like I must have missed something in the Kibana sections above or a cluster/kibana privilege.
Again, many thanks for looking into this!