Coder Social home page Coder Social logo

keycloak-kibana's People

Contributors

dbuczek avatar dchrzascik avatar finu avatar marooou avatar mateuszrapacz avatar tomnocon avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

keycloak-kibana's Issues

Unable to see Artifacts after yarn install and build

Hi,

I'm trying to run commands :

yarn install & yarn build and execution was successful.

$ yarn install
yarn install v1.22.5
[1/5] Validating package.json...
[2/5] Resolving packages...
success Already up-to-date.
$ node scripts/install.js
The kibana catalog already exists, so skipping the fetch kibana sources step
Done in 1.35s.

$ yarn build
yarn run v1.22.5
$ node scripts/build.js

yarn build in kibana\plugins\keycloak-kibana
$ plugin-helpers build

C:\Users\xxxxx\Documents\Git\keycloak-kibana-master\kibana\plugins\keycloak-ki
bana>"node" "C:\Users\xxx\Documents\Git\keycloak-kibana-master\kibana\plugi
ns\keycloak-kibana\node_modules.bin\........\packages\kbn-plugin-helpers\bi
n\plugin-helpers.js" build
Done in 41.60s.

However, I couldn't see the artifacts folder at all in my directory where the repo is "Artifacts will be produced in the kibana-extra/keycloak-kibana/build directory."

Could you please help me with this.
Thank you

@Finu If you can help me out on this plugin installation, it will be grateful because there is no proper documentation i have found for keycloak settings inside kibana pod.

Thank you

Error with yarn start

Hi,

I'm trying to use the keycloak-kibana plugin but I'm getting the following error:

yarn start
yarn run v1.22.4
$ node scripts/start.js --dev --no-base-path

node --no-warnings --max-http-header-size=65536 --max-old-space-size=4096 src/cli --dev --no-base-path --plugin-path /disk2/Keycloak-kibana/keycloak-kib
ana-master/kibana/plugins/keycloak-kibana in kibana
internal/modules/cjs/loader.js:583
throw err;
^

Error: Cannot find module '/disk2/Keycloak-kibana/keycloak-kibana-master/kibana/src/cli'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:581:15)
at Function.Module._load (internal/modules/cjs/loader.js:507:25)
at Function.Module.runMain (internal/modules/cjs/loader.js:742:12)
at startup (internal/bootstrap/node.js:283:19)
at bootstrapNodeJSCore (internal/bootstrap/node.js:743:3)
child_process.js:656
throw err;
^

Error: Command failed: node --no-warnings --max-http-header-size=65536 --max-old-space-size=4096 src/cli --dev --no-base-path --plugin-path /disk2/Keycloak-kibana/keycloak-kibana-master/kibana/plugins/keycloak-kibana
at checkExecSyncError (child_process.js:616:11)
at execSync (child_process.js:653:13)
at Object. (/disk2/Keycloak-kibana/keycloak-kibana-master/scripts/start.js:20:1)
at Module._compile (internal/modules/cjs/loader.js:689:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10)
at Module.load (internal/modules/cjs/loader.js:599:32)
at tryModuleLoad (internal/modules/cjs/loader.js:538:12)
at Function.Module._load (internal/modules/cjs/loader.js:530:3)
at Function.Module.runMain (internal/modules/cjs/loader.js:742:12)
at startup (internal/bootstrap/node.js:283:19)
error Command failed with exit code 1.

any help on this please.

SSL error in Kibana version 6.6.1

Hi All,

Kindly need your advise on this.
Currently I'm using Kibana 6.6.1 so after I install the plugin, I also add in the keycloak config in kibana.yml.

Please find my kibana config below

#Keycloak Setup
keycloak.serverUrl: https://keycloak/auth
keycloak.realm: keycloak
keycloak.clientId: keycloak-test
keycloak.clientSecret: mks7a4a4-d9se-lke0-97s7-ad7tyn12c16b
keycloak.session.cookieOptions.password: JWFn3Er]PqNZ7n{H$L9aa}Eeg#J`9?zb-/jyt?;#px>?@xaYrx_"P>Y%k[~7VGWV
#Server Setup
server.port: 5601
server.host: "192.168.0.1"
server.ssl.enabled: true
server.ssl.certificate: /app/server.crt
server.ssl.key: /app/server.key
path.data: "/app/kibana/data"
logging.dest: "/app/kibana/kibana.log"
xpack.security.enabled: false
#Elasticsearch Setup
elasticsearch.hosts: ["http://192.168.0.2:9200"]
elasticsearch.requestTimeout: 60000

If I run on htpp keycloak, it is working fine, but when I tried to run as https, it actually give me error.
Do I have to add my keycloak self signed to the truststore? How do I add my self signed keycloak into the Keycloak config?

{ Error: self signed certificate
at TLSSocket.onConnectSecure (_tls_wrap.js:1051:34)
at TLSSocket.emit (events.js:189:13)
at TLSSocket._finishInit (_tls_wrap.js:633:8) code: 'DEPTH_ZERO_SELF_SIGNED_CERT' }
FATAL Error: Unable to initialize internal user using client credentials grant. Make sure Service Accounts are enabled for this client and correct values for clientId and clientSecret were provided.

Thank you for your help

When using the non-oss version of ELK stack, only admin can log on

If not using the OSS version of the ELK stack, only users with the following (needs all) role mappings can log on:

  • manage-dashboards
  • view-visualizations
  • view-searches
  • discover
  • manage-kibana
  • manage-searches
  • manage-visualizations
  • view-dashboards

Can be reproduced in dev environment by changing image of Elastic to non-oss in docker-compose.yml and removing the --oss attribute in the start command. Also need to set xpack.security.enabled: false in kibana.yml

Support for 8x?

Are there any plans to now upgrade this plugin to support version 8.x as you have stated in previous issues?

Incompatibility with Kibana 7.6.x

After updating the Kibana version to 7.6.1 wherever necessary and running yarn start you get the following error:

...
server    log   [12:55:33.228] [fatal][root] TypeError: server.registerCapabilitiesModifier is not a function
    at configureAllowedAppsNavLinks (/Users/donovan/dev/absa/bcp/stackoverflow/elastic/keycloak-kibana/kibana/plugins/keycloak-kibana/index.js:92:10)
    at Plugin.init [as externalInit] (/Users/donovan/dev/absa/bcp/stackoverflow/elastic/keycloak-kibana/kibana/plugins/keycloak-kibana/index.js:249:7)
    at process._tickCallback (internal/process/next_tick.js:68:7)
...

Unable to save again already saved dashboard.

When you try to save changes on previously saved dashboard it throws error:

Validation Failed: 1: internal versioning can not be used for optimistic concurrency control. Please use if_seq_no and if_primary_term instead;: [action_request_validation_exception] Validation Failed: 1: internal versioning can not be used for optimistic concurrency control. Please use if_seq_no and if_primary_term instead

FATAL TypeError: Cannot read property 'name' of undefined

Greetings!

I am facing difficulties in enabling this plugin, kibana pod fails with below error during boot-up

FATAL TypeError: Cannot read property 'name' of undefined

Please find the detailed logs and other details furnished below, appreciate if you could share some pointers on fixing this. thanks.

env:

ES/Kibana version: v7.5.0 (community edition, deployed on Kubernetes using helm chart)
keycloak-kibana version: v3.2.0 (stable release)

kibana.yml

server.name: kibana
server.host: "0"
elasticsearch.hosts: [ "http://es-master:9200" ]
xpack.monitoring.ui.container.elasticsearch.enabled: false
keycloak.serverUrl: https://keycloak.qa.dev/auth
keycloak.realm: ssoapps
keycloak.clientId: zoom
keycloak.clientSecret: 3ef4dfc2-e2f0-412a-b84e-126a4a48113
xpack.security.enabled: false

logs

{"type":"log","@timestamp":"2020-03-12T08:34:12Z","tags":["info","plugins-service"],"pid":6,"message":"Plugin \"security\" is disabled."}
{"type":"log","@timestamp":"2020-03-12T08:34:12Z","tags":["info","plugins-system"],"pid":6,"message":"Setting up [14] plugins: [code,licensing,timelion,features,spaces,translations,uiActions,inspector,embeddable,advancedUiActions,newsfeed,eui_utils,expressions,data]"}
{"type":"log","@timestamp":"2020-03-12T08:34:12Z","tags":["info","plugins","code"],"pid":6,"message":"Setting up plugin"}
{"type":"log","@timestamp":"2020-03-12T08:34:12Z","tags":["info","plugins","licensing"],"pid":6,"message":"Setting up plugin"}
{"type":"log","@timestamp":"2020-03-12T08:34:12Z","tags":["info","plugins","timelion"],"pid":6,"message":"Setting up plugin"}
{"type":"log","@timestamp":"2020-03-12T08:34:12Z","tags":["info","plugins","features"],"pid":6,"message":"Setting up plugin"}
{"type":"log","@timestamp":"2020-03-12T08:34:12Z","tags":["info","plugins","spaces"],"pid":6,"message":"Setting up plugin"}
{"type":"log","@timestamp":"2020-03-12T08:34:12Z","tags":["info","plugins","translations"],"pid":6,"message":"Setting up plugin"}
{"type":"log","@timestamp":"2020-03-12T08:34:12Z","tags":["info","plugins","data"],"pid":6,"message":"Setting up plugin"}
{"type":"log","@timestamp":"2020-03-12T08:34:26Z","tags":["warning","legacy-plugins"],"pid":6,"path":"/usr/share/kibana/src/legacy/core_plugins/visualizations","message":"Skipping non-plugin directory at /usr/share/kibana/src/legacy/core_plugins/visualizations"}
{"type":"log","@timestamp":"2020-03-12T08:34:27Z","tags":["info","plugins","licensing"],"pid":6,"message":"Imported changed license information from Elasticsearch for the [data] cluster: type: basic | status: active"}
{"type":"log","@timestamp":"2020-03-12T08:34:27Z","tags":["info","plugins-system"],"pid":6,"message":"Starting [7] plugins: [code,licensing,timelion,features,spaces,translations,data]"}
{"type":"log","@timestamp":"2020-03-12T08:34:28Z","tags":["info","optimize"],"pid":6,"message":"Optimizing and caching bundles for core, graph, monitoring, space_selector, ml, dashboardViewer, apm, maps, canvas, infra, siem, uptime, lens, kibana, stateSessionStorageRedirect, status_page and timelion. This may take a few minutes"}
Browserslist: caniuse-lite is outdated. Please run next command `npm update`
Browserslist: caniuse-lite is outdated. Please run next command `npm update`
Browserslist: caniuse-lite is outdated. Please run next command `npm update`
Browserslist: caniuse-lite is outdated. Please run next command `npm update`
Browserslist: caniuse-lite is outdated. Please run next command `npm update`
Browserslist: caniuse-lite is outdated. Please run next command `npm update`
Browserslist: caniuse-lite is outdated. Please run next command `npm update`
Browserslist: caniuse-lite is outdated. Please run next command `npm update`
{"type":"log","@timestamp":"2020-03-12T08:35:20Z","tags":["info","optimize"],"pid":6,"message":"Optimization of bundles for core, graph, monitoring, space_selector, ml, dashboardViewer, apm, maps, canvas, infra, siem, uptime, lens, kibana, stateSessionStorageRedirect, status_page and timelion complete in 51.69 seconds"}
{"type":"log","@timestamp":"2020-03-12T08:35:20Z","tags":["status","plugin:[email protected]","info"],"pid":6,"state":"green","message":"Status changed from uninitialized to green - Ready","prevState":"uninitialized","prevMsg":"uninitialized"}
{"type":"log","@timestamp":"2020-03-12T08:35:20Z","tags":["status","plugin:[email protected]","info"],"pid":6,"state":"yellow","message":"Status changed from uninitialized to yellow - Waiting for Elasticsearch","prevState":"uninitialized","prevMsg":"uninitialized"}
{"type":"log","@timestamp":"2020-03-12T08:35:20Z","tags":["status","plugin:[email protected]","info"],"pid":6,"state":"yellow","message":"Status changed from uninitialized to yellow - Waiting for Elasticsearch","prevState":"uninitialized","prevMsg":"uninitialized"}
{"type":"log","@timestamp":"2020-03-12T08:35:20Z","tags":["status","plugin:[email protected]","info"],"pid":6,"state":"yellow","message":"Status changed from uninitialized to yellow - Waiting for Elasticsearch","prevState":"uninitialized","prevMsg":"uninitialized"}
{"type":"log","@timestamp":"2020-03-12T08:35:20Z","tags":["status","plugin:[email protected]","info"],"pid":6,"state":"green","message":"Status changed from uninitialized to green - Ready","prevState":"uninitialized","prevMsg":"uninitialized"}
{"type":"log","@timestamp":"2020-03-12T08:35:20Z","tags":["status","plugin:[email protected]","info"],"pid":6,"state":"yellow","message":"Status changed from uninitialized to yellow - Waiting for Elasticsearch","prevState":"uninitialized","prevMsg":"uninitialized"}
{"type":"log","@timestamp":"2020-03-12T08:35:20Z","tags":["status","plugin:[email protected]","info"],"pid":6,"state":"yellow","message":"Status changed from uninitialized to yellow - Waiting for Elasticsearch","prevState":"uninitialized","prevMsg":"uninitialized"}
{"type":"log","@timestamp":"2020-03-12T08:35:20Z","tags":["status","plugin:[email protected]","info"],"pid":6,"state":"yellow","message":"Status changed from uninitialized to yellow - Waiting for Elasticsearch","prevState":"uninitialized","prevMsg":"uninitialized"}
{"type":"log","@timestamp":"2020-03-12T08:35:20Z","tags":["status","plugin:[email protected]","info"],"pid":6,"state":"yellow","message":"Status changed from uninitialized to yellow - Waiting for Elasticsearch","prevState":"uninitialized","prevMsg":"uninitialized"}
{"type":"log","@timestamp":"2020-03-12T08:35:20Z","tags":["status","plugin:[email protected]","info"],"pid":6,"state":"yellow","message":"Status changed from uninitialized to yellow - Waiting for Elasticsearch","prevState":"uninitialized","prevMsg":"uninitialized"}
{"type":"log","@timestamp":"2020-03-12T08:35:20Z","tags":["status","plugin:[email protected]","info"],"pid":6,"state":"yellow","message":"Status changed from uninitialized to yellow - Waiting for Elasticsearch","prevState":"uninitialized","prevMsg":"uninitialized"}
{"type":"log","@timestamp":"2020-03-12T08:35:20Z","tags":["status","plugin:[email protected]","info"],"pid":6,"state":"green","message":"Status changed from uninitialized to green - Ready","prevState":"uninitialized","prevMsg":"uninitialized"}
{"type":"log","@timestamp":"2020-03-12T08:35:20Z","tags":["status","plugin:[email protected]","info"],"pid":6,"state":"yellow","message":"Status changed from uninitialized to yellow - Waiting for Elasticsearch","prevState":"uninitialized","prevMsg":"uninitialized"}
{"type":"log","@timestamp":"2020-03-12T08:35:20Z","tags":["status","plugin:[email protected]","info"],"pid":6,"state":"yellow","message":"Status changed from uninitialized to yellow - Waiting for Elasticsearch","prevState":"uninitialized","prevMsg":"uninitialized"}
{"type":"log","@timestamp":"2020-03-12T08:35:20Z","tags":["status","plugin:[email protected]","info"],"pid":6,"state":"green","message":"Status changed from uninitialized to green - Ready","prevState":"uninitialized","prevMsg":"uninitialized"}
{"type":"log","@timestamp":"2020-03-12T08:35:20Z","tags":["status","plugin:[email protected]","info"],"pid":6,"state":"green","message":"Status changed from uninitialized to green - Ready","prevState":"uninitialized","prevMsg":"uninitialized"}
{"type":"log","@timestamp":"2020-03-12T08:35:20Z","tags":["status","plugin:[email protected]","info"],"pid":6,"state":"green","message":"Status changed from uninitialized to green - Ready","prevState":"uninitialized","prevMsg":"uninitialized"}
{"type":"log","@timestamp":"2020-03-12T08:35:20Z","tags":["status","plugin:[email protected]","info"],"pid":6,"state":"green","message":"Status changed from uninitialized to green - Ready","prevState":"uninitialized","prevMsg":"uninitialized"}
{"type":"log","@timestamp":"2020-03-12T08:35:20Z","tags":["status","plugin:[email protected]","info"],"pid":6,"state":"yellow","message":"Status changed from uninitialized to yellow - Waiting for Elasticsearch","prevState":"uninitialized","prevMsg":"uninitialized"}
{"type":"log","@timestamp":"2020-03-12T08:35:20Z","tags":["status","plugin:[email protected]","info"],"pid":6,"state":"green","message":"Status changed from uninitialized to green - Ready","prevState":"uninitialized","prevMsg":"uninitialized"}
{"type":"log","@timestamp":"2020-03-12T08:35:20Z","tags":["status","plugin:[email protected]","info"],"pid":6,"state":"green","message":"Status changed from uninitialized to green - Ready","prevState":"uninitialized","prevMsg":"uninitialized"}
{"type":"log","@timestamp":"2020-03-12T08:35:20Z","tags":["status","plugin:[email protected]","info"],"pid":6,"state":"green","message":"Status changed from uninitialized to green - Ready","prevState":"uninitialized","prevMsg":"uninitialized"}
{"type":"log","@timestamp":"2020-03-12T08:35:20Z","tags":["status","plugin:[email protected]","info"],"pid":6,"state":"yellow","message":"Status changed from uninitialized to yellow - Waiting for Elasticsearch","prevState":"uninitialized","prevMsg":"uninitialized"}
{"type":"log","@timestamp":"2020-03-12T08:35:20Z","tags":["status","plugin:[email protected]","info"],"pid":6,"state":"green","message":"Status changed from uninitialized to green - Ready","prevState":"uninitialized","prevMsg":"uninitialized"}
{"type":"log","@timestamp":"2020-03-12T08:35:20Z","tags":["status","plugin:[email protected]","info"],"pid":6,"state":"green","message":"Status changed from uninitialized to green - Ready","prevState":"uninitialized","prevMsg":"uninitialized"}
{"type":"log","@timestamp":"2020-03-12T08:35:20Z","tags":["status","plugin:[email protected]","info"],"pid":6,"state":"yellow","message":"Status changed from uninitialized to yellow - Waiting for Elasticsearch","prevState":"uninitialized","prevMsg":"uninitialized"}
{"type":"log","@timestamp":"2020-03-12T08:35:20Z","tags":["status","plugin:[email protected]","info"],"pid":6,"state":"green","message":"Status changed from uninitialized to green - Ready","prevState":"uninitialized","prevMsg":"uninitialized"}
{"type":"log","@timestamp":"2020-03-12T08:35:20Z","tags":["status","plugin:[email protected]","info"],"pid":6,"state":"green","message":"Status changed from uninitialized to green - Ready","prevState":"uninitialized","prevMsg":"uninitialized"}
{"type":"log","@timestamp":"2020-03-12T08:35:20Z","tags":["status","plugin:[email protected]","info"],"pid":6,"state":"green","message":"Status changed from uninitialized to green - Ready","prevState":"uninitialized","prevMsg":"uninitialized"}
{"type":"log","@timestamp":"2020-03-12T08:35:20Z","tags":["info","task_manager"],"pid":6,"message":"Initialising Task Manager with UUID: 59954ab1-8253-4eda-b13e-296b7d279956"}
{"type":"log","@timestamp":"2020-03-12T08:35:20Z","tags":["status","plugin:[email protected]","info"],"pid":6,"state":"green","message":"Status changed from uninitialized to green - Ready","prevState":"uninitialized","prevMsg":"uninitialized"}
{"type":"log","@timestamp":"2020-03-12T08:35:20Z","tags":["status","plugin:[email protected]","info"],"pid":6,"state":"yellow","message":"Status changed from uninitialized to yellow - Waiting for Elasticsearch","prevState":"uninitialized","prevMsg":"uninitialized"}
{"type":"log","@timestamp":"2020-03-12T08:35:20Z","tags":["status","plugin:[email protected]","info"],"pid":6,"state":"yellow","message":"Status changed from uninitialized to yellow - Waiting for Elasticsearch","prevState":"uninitialized","prevMsg":"uninitialized"}
{"type":"log","@timestamp":"2020-03-12T08:35:20Z","tags":["info","siem"],"pid":6,"message":"Plugin initializing"}
{"type":"log","@timestamp":"2020-03-12T08:35:20Z","tags":["info","siem"],"pid":6,"message":"Plugin done initializing"}
{"type":"log","@timestamp":"2020-03-12T08:35:20Z","tags":["status","plugin:[email protected]","info"],"pid":6,"state":"green","message":"Status changed from uninitialized to green - Ready","prevState":"uninitialized","prevMsg":"uninitialized"}
{"type":"log","@timestamp":"2020-03-12T08:35:20Z","tags":["status","plugin:[email protected]","info"],"pid":6,"state":"yellow","message":"Status changed from uninitialized to yellow - Waiting for Elasticsearch","prevState":"uninitialized","prevMsg":"uninitialized"}
{"type":"log","@timestamp":"2020-03-12T08:35:20Z","tags":["status","plugin:[email protected]","info"],"pid":6,"state":"yellow","message":"Status changed from uninitialized to yellow - Waiting for Elasticsearch","prevState":"uninitialized","prevMsg":"uninitialized"}
{"type":"log","@timestamp":"2020-03-12T08:35:20Z","tags":["status","plugin:[email protected]","info"],"pid":6,"state":"green","message":"Status changed from uninitialized to green - Ready","prevState":"uninitialized","prevMsg":"uninitialized"}
{"type":"log","@timestamp":"2020-03-12T08:35:20Z","tags":["status","plugin:[email protected]","info"],"pid":6,"state":"green","message":"Status changed from uninitialized to green - Ready","prevState":"uninitialized","prevMsg":"uninitialized"}
{"type":"log","@timestamp":"2020-03-12T08:35:20Z","tags":["status","plugin:[email protected]","info"],"pid":6,"state":"green","message":"Status changed from uninitialized to green - Ready","prevState":"uninitialized","prevMsg":"uninitialized"}
{"type":"log","@timestamp":"2020-03-12T08:35:20Z","tags":["status","plugin:[email protected]","info"],"pid":6,"state":"yellow","message":"Status changed from uninitialized to yellow - Waiting for Elasticsearch","prevState":"uninitialized","prevMsg":"uninitialized"}
{"type":"log","@timestamp":"2020-03-12T08:35:20Z","tags":["warning","encrypted_saved_objects"],"pid":6,"message":"Generating a random key for xpack.encrypted_saved_objects.encryptionKey. To be able to decrypt encrypted saved objects attributes after restart, please set xpack.encrypted_saved_objects.encryptionKey in kibana.yml"}
{"type":"log","@timestamp":"2020-03-12T08:35:20Z","tags":["status","plugin:[email protected]","info"],"pid":6,"state":"green","message":"Status changed from uninitialized to green - Ready","prevState":"uninitialized","prevMsg":"uninitialized"}
{"type":"log","@timestamp":"2020-03-12T08:35:20Z","tags":["status","plugin:[email protected]","info"],"pid":6,"state":"green","message":"Status changed from uninitialized to green - Ready","prevState":"uninitialized","prevMsg":"uninitialized"}
{"type":"log","@timestamp":"2020-03-12T08:35:20Z","tags":["status","plugin:[email protected]","info"],"pid":6,"state":"green","message":"Status changed from uninitialized to green - Ready","prevState":"uninitialized","prevMsg":"uninitialized"}
{"type":"log","@timestamp":"2020-03-12T08:35:20Z","tags":["status","plugin:[email protected]","info"],"pid":6,"state":"yellow","message":"Status changed from uninitialized to yellow - Waiting for Elasticsearch","prevState":"uninitialized","prevMsg":"uninitialized"}
{"type":"log","@timestamp":"2020-03-12T08:35:20Z","tags":["fatal","root"],"pid":6,"message":"TypeError: Cannot read property 'name' of undefined\n    at Plugin.init [as externalInit] (/usr/share/kibana/plugins/keycloak-kibana/index.js:210:40)\n    at Object.register (/usr/share/kibana/src/legacy/server/plugins/lib/plugin.js:96:20)\n    at internals.Server.register (/usr/share/kibana/node_modules/hapi/lib/server.js:431:35)\n    at Plugin.init (/usr/share/kibana/src/legacy/server/plugins/lib/plugin.js:100:28)\n    at Plugin.init (/usr/share/kibana/node_modules/lodash/index.js:7411:25)\n    at callPluginHook (/usr/share/kibana/src/legacy/server/plugins/lib/call_plugin_hook.js:53:25)"}
{"type":"log","@timestamp":"2020-03-12T08:35:20Z","tags":["info","plugins-system"],"pid":6,"message":"Stopping all plugins."}
{"type":"log","@timestamp":"2020-03-12T08:35:20Z","tags":["info","plugins","data"],"pid":6,"message":"Stopping plugin"}
{"type":"log","@timestamp":"2020-03-12T08:35:20Z","tags":["info","plugins","translations"],"pid":6,"message":"Stopping plugin"}
{"type":"log","@timestamp":"2020-03-12T08:35:20Z","tags":["info","plugins","spaces"],"pid":6,"message":"Stopping plugin"}
{"type":"log","@timestamp":"2020-03-12T08:35:20Z","tags":["info","plugins","features"],"pid":6,"message":"Stopping plugin"}
{"type":"log","@timestamp":"2020-03-12T08:35:20Z","tags":["info","plugins","timelion"],"pid":6,"message":"Stopping plugin"}
{"type":"log","@timestamp":"2020-03-12T08:35:20Z","tags":["info","plugins","licensing"],"pid":6,"message":"Stopping plugin"}
{"type":"log","@timestamp":"2020-03-12T08:35:20Z","tags":["info","plugins","code"],"pid":6,"message":"Stopping plugin"}

 FATAL  TypeError: Cannot read property 'name' of undefined

No css in account page

hello, I installed the latest version of the plugin for kibana 6.3.0 everything works correctly except that when I access the tab of the user's profile the page appears loaded without the css.

My keycloak's version is 4.1

Thank you in advance.

Plugin does not work with Kibana 7.4.0

When building the plugin towards the 7.4.0 version of kibana i get the following error when loading the plugin.

{"type":"log","@timestamp":"2019-10-24T11:30:56Z","tags":["fatal","root"],"pid":6,"message":"{ Error: Optimizations failure.\n   6712 modules\n    \n    ERROR in /plugins/kibana/keycloak-kibana/public/views/nav_control/nav_control.js\n    Module not found: Error: Can't resolve 'ui/chrome/directives/header_global_nav' in '/plugins/kibana/keycloak-kibana/public/views/nav_control'\n    \n    ERROR in /plugins/kibana/keycloak-kibana/public/authz/decorations/HeaderGlobalNavDecorator.js\n    Module not found: Error: Can't resolve 'ui/chrome/directives/header_global_nav/components/header' in '/plugins/kibana/keycloak-kibana/public/authz/decorations'\n\n    at FsOptimizer.failedStatsToError (/usr/share/kibana/src/optimize/base_optimizer.js:438:26)\n    at compiler.run (/usr/share/kibana/src/optimize/fs_optimizer.js:43:26)\n    at finalCallback (/usr/share/kibana/node_modules/webpack/lib/Compiler.js:257:39)\n    at hooks.done.callAsync.err (/usr/share/kibana/node_modules/webpack/lib/Compiler.js:273:13)\n    at AsyncSeriesHook.eval [as callAsync] (eval at create (/usr/share/kibana/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:15:1)\n    at AsyncSeriesHook.lazyCompileHook (/usr/share/kibana/node_modules/tapable/lib/Hook.js:154:20)\n    at onCompiled (/usr/share/kibana/node_modules/webpack/lib/Compiler.js:271:21)\n    at hooks.afterCompile.callAsync.err (/usr/share/kibana/node_modules/webpack/lib/Compiler.js:671:15)\n    at AsyncSeriesHook.eval [as callAsync] (eval at create (/usr/share/kibana/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:15:1)\n    at AsyncSeriesHook.lazyCompileHook (/usr/share/kibana/node_modules/tapable/lib/Hook.js:154:20)\n    at compilation.seal.err (/usr/share/kibana/node_modules/webpack/lib/Compiler.js:668:31)\n    at AsyncSeriesHook.eval [as callAsync] (eval at create (/usr/share/kibana/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:6:1)\n    at AsyncSeriesHook.lazyCompileHook (/usr/share/kibana/node_modules/tapable/lib/Hook.js:154:20)\n    at hooks.optimizeAssets.callAsync.err (/usr/share/kibana/node_modules/webpack/lib/Compilation.js:1385:35)\n    at AsyncSeriesHook.eval [as callAsync] (eval at create (/usr/share/kibana/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:6:1)\n    at AsyncSeriesHook.lazyCompileHook (/usr/share/kibana/node_modules/tapable/lib/Hook.js:154:20)\n  cause:\n   { Error: Optimizations failure.\n      6712 modules\n       \n       ERROR in /plugins/kibana/keycloak-kibana/public/views/nav_control/nav_control.js\n       Module not found: Error: Can't resolve 'ui/chrome/directives/header_global_nav' in '/plugins/kibana/keycloak-kibana/public/views/nav_control'\n       \n       ERROR in /plugins/kibana/keycloak-kibana/public/authz/decorations/HeaderGlobalNavDecorator.js\n       Module not found: Error: Can't resolve 'ui/chrome/directives/header_global_nav/components/header' in '/plugins/kibana/keycloak-kibana/public/authz/decorations'\n   \n       at FsOptimizer.failedStatsToError (/usr/share/kibana/src/optimize/base_optimizer.js:438:26)\n       at compiler.run (/usr/share/kibana/src/optimize/fs_optimizer.js:43:26)\n       at finalCallback (/usr/share/kibana/node_modules/webpack/lib/Compiler.js:257:39)\n       at hooks.done.callAsync.err (/usr/share/kibana/node_modules/webpack/lib/Compiler.js:273:13)\n       at AsyncSeriesHook.eval [as callAsync] (eval at create (/usr/share/kibana/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:15:1)\n       at AsyncSeriesHook.lazyCompileHook (/usr/share/kibana/node_modules/tapable/lib/Hook.js:154:20)\n       at onCompiled (/usr/share/kibana/node_modules/webpack/lib/Compiler.js:271:21)\n       at hooks.afterCompile.callAsync.err (/usr/share/kibana/node_modules/webpack/lib/Compiler.js:671:15)\n       at AsyncSeriesHook.eval [as callAsync] (eval at create (/usr/share/kibana/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:15:1)\n       at AsyncSeriesHook.lazyCompileHook (/usr/share/kibana/node_modules/tapable/lib/Hook.js:154:20)\n       at compilation.seal.err (/usr/share/kibana/node_modules/webpack/lib/Compiler.js:668:31)\n       at AsyncSeriesHook.eval [as callAsync] (eval at create (/usr/share/kibana/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:6:1)\n       at AsyncSeriesHook.lazyCompileHook (/usr/share/kibana/node_modules/tapable/lib/Hook.js:154:20)\n       at hooks.optimizeAssets.callAsync.err (/usr/share/kibana/node_modules/webpack/lib/Compilation.js:1385:35)\n       at AsyncSeriesHook.eval [as callAsync] (eval at create (/usr/share/kibana/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:6:1)\n       at AsyncSeriesHook.lazyCompileHook (/usr/share/kibana/node_modules/tapable/lib/Hook.js:154:20)\n     data:\n      { errors: [Array],\n        warnings: [],\n        version: '4.39.2',\n        hash: 'b1d7ef06f61880f6256f',\n        time: 190097,\n        builtAt: 1571916655350,\n        publicPath: '__REPLACE_WITH_PUBLIC_PATH__',\n        outputPath: '/usr/share/kibana/optimize/bundles',\n        assetsByChunkName: [Object],\n        assets: [Array],\n        filteredAssets: 0,\n        entrypoints: [Object],\n        namedChunkGroups: [Object],\n        chunks: [Array],\n        modules: [Array],\n        filteredModules: 0,\n        logging: [Object],\n        children: [Array] },\n     isBoom: true,\n     isServer: true,\n     output: { statusCode: 500, payload: [Object], headers: {} },\n     reformat: [Function],\n     typeof: [Function: internal] },\n  isOperational: true,\n  data:\n   { errors:\n      [ '/plugins/kibana/keycloak-kibana/public/views/nav_control/nav_control.js\\nModule not found: Error: Can\\'t resolve \\'ui/chrome/directives/header_global_nav\\' in \\'/plugins/kibana/keycloak-kibana/public/views/nav_control\\'\\nresolve \\'ui/chrome/directives/header_global_nav\\' in \\'/plugins/kibana/keycloak-kibana/public/views/nav_control\\'\\n  Parsed request is a module\\n  using description file: /plugins/kibana/keycloak-kibana/package.json (relative path: ./public/views/nav_control)\\n    aliased with mapping \\'ui\\': \\'/usr/share/kibana/src/legacy/ui/public\\' to \\'/usr/share/kibana/src/legacy/ui/public/chrome/directives/header_global_nav\\'\\n      using description file: /plugins/kibana/keycloak-kibana/package.json (relative path: ./public/views/nav_control)\\n        Field \\'browser\\' doesn\\'t contain a valid alias configuration\\n        using description file: /usr/share/kibana/package.json (relative path: ./src/legacy/ui/public/chrome/directives/header_global_nav)\\n          no extension\\n            Field \\'browser\\' doesn\\'t contain a valid alias configuration\\n            /usr/share/kibana/src/legacy/ui/public/chrome/directives/header_global_nav doesn\\'t exist\\n          .js\\n            Field \\'browser\\' doesn\\'t contain a valid alias configuration\\n            /usr/share/kibana/src/legacy/ui/public/chrome/directives/header_global_nav.js doesn\\'t exist\\n          .ts\\n            Field \\'browser\\' doesn\\'t contain a valid alias configuration\\n            /usr/share/kibana/src/legacy/ui/public/chrome/directives/header_global_nav.ts doesn\\'t exist\\n          .tsx\\n            Field \\'browser\\' doesn\\'t contain a valid alias configuration\\n            /usr/share/kibana/src/legacy/ui/public/chrome/directives/header_global_nav.tsx doesn\\'t exist\\n          .json\\n            Field \\'browser\\' doesn\\'t contain a valid alias configuration\\n            /usr/share/kibana/src/legacy/ui/public/chrome/directives/header_global_nav.json doesn\\'t exist\\n          as directory\\n            /usr/share/kibana/src/legacy/ui/public/chrome/directives/header_global_nav doesn\\'t exist\\n[/usr/share/kibana/src/legacy/ui/public/chrome/directives/header_global_nav]\\n[/usr/share/kibana/src/legacy/ui/public/chrome/directives/header_global_nav.js]\\n[/usr/share/kibana/src/legacy/ui/public/chrome/directives/header_global_nav.ts]\\n[/usr/share/kibana/src/legacy/ui/public/chrome/directives/header_global_nav.tsx]\\n[/usr/share/kibana/src/legacy/ui/public/chrome/directives/header_global_nav.json]\\n @ /plugins/kibana/keycloak-kibana/public/views/nav_control/nav_control.js 11:25-74\\n @ /plugins/kibana/keycloak-kibana/public/views/nav_control/index.js\\n @ ./node_modules/val-loader/dist/cjs.js!./src/optimize/create_ui_exports_module.js?{\"type\":\"chromeNavControls\",\"modules\":[\"plugins/keycloak-kibana/views/nav_control\",\"plugins/spaces/views/nav_control\"]}\\n @ ./src/legacy/ui/public/chrome/chrome.js\\n @ ./src/legacy/ui/public/chrome/index.js\\n @ ./src/legacy/core_plugins/status_page/public/status_page.js\\n @ ./optimize/bundles/status_page.entry.js',\n        '/plugins/kibana/keycloak-kibana/public/authz/decorations/HeaderGlobalNavDecorator.js\\nModule not found: Error: Can\\'t resolve \\'ui/chrome/directives/header_global_nav/components/header\\' in \\'/plugins/kibana/keycloak-kibana/public/authz/decorations\\'\\nresolve \\'ui/chrome/directives/header_global_nav/components/header\\' in \\'/plugins/kibana/keycloak-kibana/public/authz/decorations\\'\\n  Parsed request is a module\\n  using description file: /plugins/kibana/keycloak-kibana/package.json (relative path: ./public/authz/decorations)\\n    aliased with mapping \\'ui\\': \\'/usr/share/kibana/src/legacy/ui/public\\' to \\'/usr/share/kibana/src/legacy/ui/public/chrome/directives/header_global_nav/components/header\\'\\n      using description file: /plugins/kibana/keycloak-kibana/package.json (relative path: ./public/authz/decorations)\\n        Field \\'browser\\' doesn\\'t contain a valid alias configuration\\n        using description file: /usr/share/kibana/package.json (relative path: ./src/legacy/ui/public/chrome/directives/header_global_nav/components/header)\\n          no extension\\n            Field \\'browser\\' doesn\\'t contain a valid alias configuration\\n            /usr/share/kibana/src/legacy/ui/public/chrome/directives/header_global_nav/components/header doesn\\'t exist\\n          .js\\n            Field \\'browser\\' doesn\\'t contain a valid alias configuration\\n            /usr/share/kibana/src/legacy/ui/public/chrome/directives/header_global_nav/components/header.js doesn\\'t exist\\n          .ts\\n            Field \\'browser\\' doesn\\'t contain a valid alias configuration\\n            /usr/share/kibana/src/legacy/ui/public/chrome/directives/header_global_nav/components/header.ts doesn\\'t exist\\n          .tsx\\n            Field \\'browser\\' doesn\\'t contain a valid alias configuration\\n            /usr/share/kibana/src/legacy/ui/public/chrome/directives/header_global_nav/components/header.tsx doesn\\'t exist\\n          .json\\n            Field \\'browser\\' doesn\\'t contain a valid alias configuration\\n            /usr/share/kibana/src/legacy/ui/public/chrome/directives/header_global_nav/components/header.json doesn\\'t exist\\n          as directory\\n            /usr/share/kibana/src/legacy/ui/public/chrome/directives/header_global_nav/components/header doesn\\'t exist\\n[/usr/share/kibana/src/legacy/ui/public/chrome/directives/header_global_nav/components/header]\\n[/usr/share/kibana/src/legacy/ui/public/chrome/directives/header_global_nav/components/header.js]\\n[/usr/share/kibana/src/legacy/ui/public/chrome/directives/header_global_nav/components/header.ts]\\n[/usr/share/kibana/src/legacy/ui/public/chrome/directives/header_global_nav/components/header.tsx]\\n[/usr/share/kibana/src/legacy/ui/public/chrome/directives/header_global_nav/components/header.json]\\n @ /plugins/kibana/keycloak-kibana/public/authz/decorations/HeaderGlobalNavDecorator.js 10:14-81\\n @ /plugins/kibana/keycloak-kibana/public/authz/index.js\\n @ /plugins/kibana/keycloak-kibana/public/views/nav_control/index.js\\n @ ./node_modules/val-loader/dist/cjs.js!./src/optimize/create_ui_exports_module.js?{\"type\":\"chromeNavControls\",\"modules\":[\"plugins/keycloak-kibana/views/nav_control\",\"plugins/spaces/views/nav_control\"]}\\n @ ./src/legacy/ui/public/chrome/chrome.js\\n @ ./src/legacy/ui/public/chrome/index.js\\n @ ./src/legacy/core_plugins/status_page/public/status_page.js\\n @ ./optimize/bundles/status_page.entry.js' ],\n     warnings: [],\n     version: '4.39.2',\n     hash: 'b1d7ef06f61880f6256f',\n     time: 190097,\n     builtAt: 1571916655350,\n     publicPath: '__REPLACE_WITH_PUBLIC_PATH__',\n     outputPath: '/usr/share/kibana/optimize/bundles',\n     assetsByChunkName:\n      { commons: [Array],\n        canvas: [Array],\n        code: [Array],\n        dark_theme: [Array],\n        dashboardViewer: 'dashboardViewer.bundle.js',\n        graph: 'graph.bundle.js',\n        infra: 'infra.bundle.js',\n        kibana: [Array],\n        light_theme: [Array],\n        maps: 'maps.bundle.js',\n        monitoring: [Array],\n        'plugin/data': 'plugin/data.bundle.js',\n        'plugin/inspector': 'plugin/inspector.bundle.js',\n        siem: 'siem.bundle.js',\n        space_selector: 'space_selector.bundle.js',\n        stateSessionStorageRedirect: 'stateSessionStorageRedirect.bundle.js',\n        status_page: 'status_page.bundle.js',\n        timelion: 'timelion.bundle.js',\n        uptime: 'uptime.bundle.js' },\n     assets:\n      [ [Object],\n        [Object],\n        [Object],\n        [Object],\n        [Object],\n        [Object],\n        [Object],\n        [Object],\n        [Object],\n        [Object],\n        [Object],\n        [Object],\n        [Object],\n        [Object],\n        [Object],\n        [Object],\n        [Object],\n        [Object],\n        [Object],\n        [Object],\n        [Object],\n        [Object],\n        [Object],\n        [Object],\n        [Object],\n        [Object],\n        [Object],\n        [Object],\n        [Object],\n        [Object],\n        [Object],\n        [Object],\n        [Object],\n        [Object],\n        [Object],\n        [Object],\n        [Object],\n        [Object],\n        [Object],\n        [Object],\n        [Object],\n        [Object],\n        [Object],\n        [Object],\n        [Object],\n        [Object],\n        [Object],\n        [Object],\n        [Object],\n        [Object],\n        [Object],\n        [Object],\n        [Object],\n        [Object],\n        [Object],\n        [Object],\n        [Object],\n        [Object],\n        [Object],\n        [Object],\n        [Object],\n        [Object],\n        [Object],\n        [Object],\n        [Object],\n        [Object] ],\n     filteredAssets: 0,\n     entrypoints:\n      { graph: [Object],\n        monitoring: [Object],\n        space_selector: [Object],\n        dashboardViewer: [Object],\n        code: [Object],\n        maps: [Object],\n        canvas: [Object],\n        infra: [Object],\n        siem: [Object],\n        uptime: [Object],\n        kibana: [Object],\n        stateSessionStorageRedirect: [Object],\n        status_page: [Object],\n        timelion: [Object],\n        'plugin/inspector': [Object],\n        'plugin/data': [Object],\n        light_theme: [Object],\n        dark_theme: [Object] },\n     namedChunkGroups:\n      { graph: [Object],\n        monitoring: [Object],\n        space_selector: [Object],\n        dashboardViewer: [Object],\n        code: [Object],\n        maps: [Object],\n        canvas: [Object],\n        infra: [Object],\n        siem: [Object],\n        uptime: [Object],\n        kibana: [Object],\n        stateSessionStorageRedirect: [Object],\n        status_page: [Object],\n        timelion: [Object],\n        'plugin/inspector': [Object],\n        'plugin/data': [Object],\n        light_theme: [Object],\n        dark_theme: [Object] },\n     chunks:\n      [ [Object],\n        [Object],\n        [Object],\n        [Object],\n        [Object],\n        [Object],\n        [Object],\n        [Object],\n        [Object],\n        [Object],\n        [Object],\n        [Object],\n        [Object],\n        [Object],\n        [Object],\n        [Object],\n        [Object],\n        [Object],\n        [Object] ],\n     modules:\n      [ [Object],\n        [Object],\n        [Object],\n        [Object],\n        [Object],\n        [Object],\n        [Object],\n        [Object],\n        [Object],\n        [Object],\n        [Object],\n        [Object],\n        [Object],\n        [Object],\n        [Object],\n        [Object],\n        [Object],\n        [Object],\n        [Object],\n        [Object],\n        [Object],\n        [Object],\n        [Object],\n        [Object],\n        [Object],\n        [Object],\n        [Object],\n        [Object],\n        [Object],\n        [Object],\n        [Object],\n        [Object],\n        [Object],\n        [Object],\n        [Object],\n        [Object],\n        [Object],\n        [Object],\n        [Object],\n        [Object],\n        [Object],\n        [Object],\n        [Object],\n        [Object],\n        [Object],\n        [Object],\n        [Object],\n        [Object],\n        [Object],\n        [Object],\n        [Object],\n        [Object],\n        [Object],\n        [Object],\n        [Object],\n        [Object],\n        [Object],\n        [Object],\n        [Object],\n        [Object],\n        [Object],\n        [Object],\n        [Object],\n        [Object],\n        [Object],\n        [Object],\n        [Object],\n        [Object],\n        [Object],\n        [Object],\n        [Object],\n        [Object],\n        [Object],\n        [Object],\n        [Object],\n        [Object],\n        [Object],\n        [Object],\n        [Object],\n        [Object],\n        [Object],\n        [Object],\n        [Object],\n        [Object],\n        [Object],\n        [Object],\n        [Object],\n        [Object],\n        [Object],\n        [Object],\n        [Object],\n        [Object],\n        [Object],\n        [Object],\n        [Object],\n        [Object],\n        [Object],\n        [Object],\n        [Object],\n        [Object],\n        ... 6612 more items ],\n     filteredModules: 0,\n     logging: { 'webpack.buildChunkGraph.visitModules': [Object] },\n     children:\n      [ [Object],\n        [Object],\n        [Object],\n        [Object],\n        [Object],\n        [Object],\n        [Object],\n        [Object],\n        [Object],\n        [Object],\n        [Object],\n        [Object],\n        [Object],\n        [Object],\n        [Object],\n        [Object] ] },\n  isBoom: true,\n  isServer: true,\n  output:\n   { statusCode: 500,\n     payload:\n      { statusCode: 500,\n        error: 'Internal Server Error',\n        message: 'An internal server error occurred' },\n     headers: {} },\n  reformat: [Function],\n  typeof: [Function: internal] }"}
{"type":"log","@timestamp":"2019-10-24T11:30:56Z","tags":["info","plugins-system"],"pid":6,"message":"Stopping all plugins."}
{"type":"log","@timestamp":"2019-10-24T11:30:56Z","tags":["info","plugins","data"],"pid":6,"message":"Stopping plugin"}
{"type":"log","@timestamp":"2019-10-24T11:30:56Z","tags":["info","plugins","translations"],"pid":6,"message":"Stopping plugin"}
 FATAL  Error: Optimizations failure.
   6712 modules

    ERROR in /plugins/kibana/keycloak-kibana/public/views/nav_control/nav_control.js
    Module not found: Error: Can't resolve 'ui/chrome/directives/header_global_nav' in '/plugins/kibana/keycloak-kibana/public/views/nav_control'

    ERROR in /plugins/kibana/keycloak-kibana/public/authz/decorations/HeaderGlobalNavDecorator.js
    Module not found: Error: Can't resolve 'ui/chrome/directives/header_global_nav/components/header' in '/plugins/kibana/keycloak-kibana/public/authz/decorations'

Allow user to access specific space

Hello,

When I create a new space and try to access it from a user which has not the manage Kibana role, I got the following error :
{"statusCode":403,"error":"Forbidden","message":"The user is not authorized to perform this operation."}

How can we allow access to a specific space without giving management access ?

Is it possible to restrict users to a given space ?

Thanks

Cannot set default strategy more than once

It doesn't work with the Kibana 7.2.0. The error "Cannot set default strategy more than once" is raising at the code:

  server.auth.default('keycloak');

error log:

{"type":"log","@timestamp":"2019-08-12T03:33:28Z","tags":["fatal","root"],"pid":1,"message":"{ AssertionError [ERR_ASSERTION]: Cannot set default strategy more than once\n at new AssertionError (internal/assert.js:269:11)\n at Object.exports.assert (/usr/share/kibana/node_modules/hoek/lib/index.js:736:11)\n at module.exports.internals.Auth.default (/usr/share/kibana/node_modules/hapi/lib/auth.js:73:14)\n at Plugin.init [as externalInit] (/usr/share/kibana/plugins/keycloak-kibana/index.js:202:7)\n at process._tickCallback (internal/process/next_tick.js:68:7)\n generatedMessage: false,\n name: 'AssertionError [ERR_ASSERTION]',\n code: 'ERR_ASSERTION',\n actual: false,\n expected: true,\n operator: '==',\n isBoom: true,\n isServer: true,\n data: null,\n output:\n { statusCode: 500,\n payload:\n { statusCode: 500,\n error: 'Internal Server Error',\n message: 'An internal server error occurred' },\n headers: {} },\n reformat: [Function],\n [Symbol(SavedObjectsClientErrorCode)]: 'SavedObjectsClient/generalError' }"}
kibana |
kibana | FATAL AssertionError [ERR_ASSERTION]: Cannot set default strategy more than once

Doesn't work with kibana 7.2.0

Here is the error log:

{"type":"log","@timestamp":"2019-08-12T03:22:20Z","tags":["fatal","root"],"pid":1,"message":"{ Error: custom client factory is already set, unable to replace the current one\n at ScopedSavedObjectsClientProvider.setClientFactory (/usr/share/kibana/src/legacy/server/saved_objects/service/lib/scoped_client_provider.js:30:13)\n at Object.setScopedSavedObjectsClientFactory (/usr/share/kibana/src/legacy/server/saved_objects/saved_objects_mixin.js:145:63)\n at setScopedSavedObjectsClientFactory (/usr/share/kibana/plugins/keycloak-kibana/server/services/SecureClusterFacade.js:36:16)\n at Plugin.init [as externalInit] (/usr/share/kibana/plugins/keycloak-kibana/index.js:209:7)\n at process._tickCallback (internal/process/next_tick.js:68:7)\n isBoom: true,\n isServer: true,\n data: null,\n output:\n { statusCode: 500,\n payload:\n { statusCode: 500,\n error: 'Internal Server Error',\n message: 'An internal server error occurred' },\n headers: {} },\n reformat: [Function],\n [Symbol(SavedObjectsClientErrorCode)]: 'SavedObjectsClient/generalError' }"}

Plugin version 2.0.0-alpha1 compatibility with Kibana version 6.2.3

Currently we see that 2.0.0-alpha1 is only compatible with a specific version
This version is compatible with Kibana 6.6.1

Though we tried installing the plugin we get an error as below.
./kibana-plugin install file:/Users/dhruva/Downloads/keycloak-kibana-2.0.0-alpha2/build/keycloak-kibana-2.0.0.zip
Attempting to transfer from file:/Users/dhruva/Downloads/keycloak-kibana-2.0.0-alpha2/build/keycloak-kibana-2.0.0.zip
Transferring 2452998 bytes....................
Transfer complete
Retrieving metadata from plugin archive
Extracting plugin archive
Extraction complete
Optimizing and caching browser bundles...
Plugin installation was unsuccessful due to error ""keycloak.serverUrl", "keycloak.realm", "keycloak.clientId", "keycloak.clientSecret", and "keycloak.session.cookieOptions.password" settings were not applied. Check for spelling errors and ensure that expected plugins are installed and enabled."

Error with Kibana 7.9.1 - "server.registerCapabilitiesModifier is not a function"

Hello, I followed your guide to build the plugin for a more recent version of Kibana (we're using v7.9.1 here). I managed to do it correctly and added the required config you provide as example for both Kibana and Keycloak, but Kibana doesn't seem to want to load your plugin. I get this error :

 FATAL  TypeError: server.registerCapabilitiesModifier is not a function,
{"type":"log","@timestamp":"2020-12-15T10:08:14Z","tags":["info","plugins-system"],"pid":6,"message":"Stopping all plugins."},
{"type":"log","@timestamp":"2020-12-15T10:08:14Z","tags":["fatal","root"],"pid":6,"message":"TypeError: server.registerCapabilitiesModifier is not a function\n    at configureAllowedAppsNavLinks (/usr/share/kibana/plugins/keycloak-kibana/index.js:92:10)\n    at Plugin.init [as externalInit] (/usr/share/kibana/plugins/keycloak-kibana/index.js:249:7)\n    at process._tickCallback (internal/process/next_tick.js:68:7)"}

I've searched for infos, it seems that the function registerCapabilitiesModifier has been deprecated and/or is part of a legacy API.

Could you provide some help here ? That would be really appreciated !

Issue when managing shared dashboard

  • user1 share Dash01 with "can manage" to user2
  • user2 delete "can manage" for Dash01 for himself

In console there is fired:

  • GET http://localhost:5601/api/saved_objects/dashboard/dd7bf090-9da6-11e9-8c6c-437f42d13a89/permissions 403 (Forbidden)
  • Warning: a promise was rejected with a non-error: [object Object] at responseErrorHandler (http://localhost:5601/bundles/commons.bundle.js:2976:29) at responseError (http://localhost:5601/bundles/commons.bundle.js:2981:12) at processQueue (webpack://%5Bname%5D/./node_modules/angular/angular.js?:17169:37) at eval (webpack://%5Bname%5D/./node_modules/angular/angular.js?:17217:27) at Scope.$digest (webpack://%5Bname%5D/./node_modules/angular/angular.js?:18352:15) at Scope.$apply (webpack://%5Bname%5D/./node_modules/angular/angular.js?:18649:24) at done (webpack://%5Bname%5D/./node_modules/angular/angular.js?:12627:47) at completeRequest (webpack://%5Bname%5D/./node_modules/angular/angular.js?:12871:7) at XMLHttpRequest.requestLoaded (webpack://%5Bname%5D/./node_modules/angular/angular.js?:12788:9)
  • Uncaught (in promise)
    data:
    error: "Forbidden"
    message: "The user is not authorized to get permissions for the resource"
    statusCode: 403
  • and UI suggest that action is still in progress

Accessing resources to which user no longer has access.

For example if I set as home dashboard Dash01 that is shared to me from other user. And then this user revoke this access kibana during login still sets url to this dashboard - and result is empty page. Same with accessing vis and searches. Maybe some default redirect to main page, etc if user
does not have access to provided resource.

idp_entity_id elasticsearch with keycloak doesn't redirect to sso.keycloak

Hi,

I've configured my elasticsearch with xpack ssl/tls in order to login on Kibana via Keycloak ssl but, when I run the kibana:5601 in my browser doesn't redirect me to the keyloack in order to enter my credentials and login to kibana.

Here is my config for elasticsearch.yml

xpack.security.enabled: true

xpack.security.transport.ssl.enabled: true
xpack.security.transport.ssl.verification_mode: certificate
xpack.security.transport.ssl.keystore.path: certs/elastic-certificates.p12
xpack.security.transport.ssl.truststore.path: certs/elastic-certificates.p12

xpack.security.http.ssl.enabled: true
xpack.security.http.ssl.keystore.path: certs/elastic-certificates.p12
xpack.security.http.ssl.truststore.path: certs/elastic-certificates.p12
xpack.security.authc.token.enabled: true
xpack.security.http.ssl.client_authentication: optional
#xpack.security.authc.realms.pki1.type: pki


xpack.security.authc.realms:
  saml.saml1:
    order: 2
    idp.metadata.path: saml-elasticsearch-metadata.xml
    idp.entity_id: "http://192.168.100.101:8080/auth/realms/grafana"
    sp.entity_id:  "http://192.168.100.101:5601/"
    sp.acs: "http://192.168.100.101:5601/api/security/v1/saml"
    sp.logout: "http://192.168.100.101:5601/logout"
    attributes.principal: "username"
    attributes.groups: "Role"
    nameid_format : "urn:oasis:names:tc:SAML:1.1:nameid-format:unspecified"
    force_authn: true

My kibana,yml config:

xpack.security.enabled: true
elasticsearch.username: "kibana"
elasticsearch.password: "kibana"
elasticsearch.ssl.certificateAuthorities: config/certs/client-ca.cer
elasticsearch.ssl.verificationMode: certificate

Can you please help me what I'm missing ?

elastic_login

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.