FATAL ValidationError - new config values



My plugin is going to need some config. I put it into the config/kibana.yaml file like so:

my-kibana-plugin.zuser: "user"
my-kibana-plugin.zpass: "pass"

but I get the following error:

FATAL ValidationError: child "my-kibana-plugin" fails because ["zuser" is not allowed, "zpass" is not allowed]

How can I get this error to stop happening? and read the values in?

(Bhavya R M) #2


You need to add validation for your config file to plugins registration:
You can check out the kibana plugin for example: https://github.com/elastic/kibana/blob/master/src/core_plugins/kibana/index.js#L49:L54