-
Notifications
You must be signed in to change notification settings - Fork 8.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Exporting config w/ arrays in new platform plugin breaks #55576
Comments
Pinging @elastic/kibana-platform (Team:Platform) |
The way we flatten paths for the config's kibana/src/core/server/config/object_to_config_adapter.ts Lines 52 to 64 in 6034cc7
This is a difference with how the other parts of core (and legacy) was doing it, which preserves arrays at final values kibana/src/core/utils/get_flattened_object.ts Lines 24 to 36 in 133c299
I think considering arrays as terminal values makes sense, and would fix this issue. @restrry do you see any reason not to do this change? |
Created #56105 |
Kibana version:
Master since at least
4ca2fbdb11
Describe the bug:
Given a config object like:
Kibana fails to start when setting a
proxyConfig
like (2nd item not needed, just illustrating array) insidekibana.yml
:Error:
Error: Unknown configuration key(s): "console.proxyConfig". Check for spelling errors and ensure that expected plugins are installed
Expected behavior:
Kibana should start as normal and provide config to the plugin. Validation of the object seems to be working.
Any additional context:
Looks like this is caused by this line:
kibana/src/core/server/legacy/config/get_unused_config_keys.ts
Line 62 in 320b608
Returning a value like
console.proxyConfig
and then attempting to match against what it considers root paths likeconsole.proxyConfig.0.timeout
(the latter is not a subset of the former).The text was updated successfully, but these errors were encountered: