FATAL ValidationError - new config values

Hey,

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?

Hello,

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

Thanks,
Bhavya

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.