-
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
[console] Properly check for existence of deprecated console configs #11670
Conversation
Is this a regression? If not, I think we should mark this as a breaking change just so people are aware. Since it's very clearly a bug without a workaround, we should still release this in 5.x, but probably only in 5.5. Thoughts? |
It's a regression from 5.3. It should be backwards compatible friendly when fixed, it will pull console's proxy config if it's configured and if not it will use the elasticsearch.ssl configuration. |
If it's a regression, then we fix it in 5.4.1 for sure. |
@@ -85,7 +85,7 @@ export default function (kibana) { | |||
const whitelist = config.get('elasticsearch.requestHeadersWhitelist'); | |||
const headers = filterHeaders(req.headers, whitelist); | |||
|
|||
if (config.has('console.proxyConfig')) { | |||
if (!isEmpty(config.get('console.proxyConfig'))) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ugh, we should rename config.has()
to config.hasSchema()
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Pinging @elastic/es-ui (Team:Elasticsearch UI) |
Currently when checking whether to use the deprecated console proxy config we check if the schema exists, which will always return true. This causes the proxy config to always be used instead of falling back to the elasticsearch.ssl configuration.
Instead of checking the schema, this pulls the config down and checks if it's empty. Closes #10984