I tried to set xpack security for kibana by doing following
- bin/kibana-encryption-keys generate
- Copied the generated encryption keys to kibana.yml.
xpack.encryptedSavedObjects.encryptionKey: ####
xpack.reporting.encryptionKey: ####
xpack.security.encryptionKey: ####
- Restarted
ElasticSearch
andKibana
.
But when I try to access /app/synthetics/monitors
i see following error in kibana
[2023-08-18T18:44:45.491+00:00][ERROR][plugins.synthetics] ResponseError: {"error":"no handler found for uri [/_security/user/_has_privileges] and method [POST]"}
at KibanaTransport.request (/usr/share/kibana/node_modules/@elastic/transport/lib/Transport.js:479:27)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at KibanaTransport.request (/usr/share/kibana/node_modules/@kbn/core-elasticsearch-client-server-internal/src/create_transport.js:51:16)
at Security.hasPrivileges (/usr/share/kibana/node_modules/@elastic/elasticsearch/lib/api/api/security.js:795:16)
at hasEnablePermissions (/usr/share/kibana/node_modules/@kbn/synthetics-plugin/server/synthetics_service/get_api_key.js:183:25)
at async Promise.all (index 1)
at Object.getSyntheticsEnablement (/usr/share/kibana/node_modules/@kbn/synthetics-plugin/server/synthetics_service/get_api_key.js:154:54)
at handler (/usr/share/kibana/node_modules/@kbn/synthetics-plugin/server/routes/synthetics_service/enablement.js:28:22)
at handler (/usr/share/kibana/node_modules/@kbn/synthetics-plugin/server/synthetics_route_wrapper.js:84:21)
at Router.handle (/usr/share/kibana/node_modules/@kbn/core-http-router-server-internal/src/router.js:146:30)
at handler (/usr/share/kibana/node_modules/@kbn/core-http-router-server-internal/src/router.js:112:50)
at exports.Manager.execute (/usr/share/kibana/node_modules/@hapi/hapi/lib/toolkit.js:60:28)
at Object.internals.handler (/usr/share/kibana/node_modules/@hapi/hapi/lib/handler.js:46:20)
at exports.execute (/usr/share/kibana/node_modules/@hapi/hapi/lib/handler.js:31:20)
at Request._lifecycle (/usr/share/kibana/node_modules/@hapi/hapi/lib/request.js:371:32)
at Request._execute (/usr/share/kibana/node_modules/@hapi/hapi/lib/request.js:281:9)
[2023-08-18T18:44:45.492+00:00][ERROR][http] ResponseError: {"error":"no handler found for uri [/_security/user/_has_privileges] and method [POST]"}
at KibanaTransport.request (/usr/share/kibana/node_modules/@elastic/transport/lib/Transport.js:479:27)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at KibanaTransport.request (/usr/share/kibana/node_modules/@kbn/core-elasticsearch-client-server-internal/src/create_transport.js:51:16)
at Security.hasPrivileges (/usr/share/kibana/node_modules/@elastic/elasticsearch/lib/api/api/security.js:795:16)
at hasEnablePermissions (/usr/share/kibana/node_modules/@kbn/synthetics-plugin/server/synthetics_service/get_api_key.js:183:25)
at async Promise.all (index 1)
at Object.getSyntheticsEnablement (/usr/share/kibana/node_modules/@kbn/synthetics-plugin/server/synthetics_service/get_api_key.js:154:54)
at handler (/usr/share/kibana/node_modules/@kbn/synthetics-plugin/server/routes/synthetics_service/enablement.js:28:22)
at handler (/usr/share/kibana/node_modules/@kbn/synthetics-plugin/server/synthetics_route_wrapper.js:84:21)
at Router.handle (/usr/share/kibana/node_modules/@kbn/core-http-router-server-internal/src/router.js:146:30)
at handler (/usr/share/kibana/node_modules/@kbn/core-http-router-server-internal/src/router.js:112:50)
at exports.Manager.execute (/usr/share/kibana/node_modules/@hapi/hapi/lib/toolkit.js:60:28)
at Object.internals.handler (/usr/share/kibana/node_modules/@hapi/hapi/lib/handler.js:46:20)
at exports.execute (/usr/share/kibana/node_modules/@hapi/hapi/lib/handler.js:31:20)
at Request._lifecycle (/usr/share/kibana/node_modules/@hapi/hapi/lib/request.js:371:32)
at Request._execute (/usr/share/kibana/node_modules/@hapi/hapi/lib/request.js:281:9)
What I am missing here ?