Skip to content
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

Merged
merged 1 commit into from
May 10, 2017

Conversation

jbudz
Copy link
Member

@jbudz jbudz commented May 9, 2017

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

@epixa
Copy link
Contributor

epixa commented May 9, 2017

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?

@jbudz
Copy link
Member Author

jbudz commented May 9, 2017

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.

@epixa
Copy link
Contributor

epixa commented May 9, 2017

If it's a regression, then we fix it in 5.4.1 for sure.

@tylersmalley tylersmalley self-requested a review May 9, 2017 17:00
@@ -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'))) {
Copy link
Contributor

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().

Copy link
Contributor

@spalger spalger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jbudz
Copy link
Member Author

jbudz commented May 10, 2017

5.4: 29ceef6
5.5/5.x: 8eb393a

@elasticmachine
Copy link
Contributor

Pinging @elastic/es-ui (Team:Elasticsearch UI)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature:Console Dev Tools Console Feature Feature:Dev Tools release_note:fix review Team:Kibana Management Dev Tools, Index Management, Upgrade Assistant, ILM, Ingest Node Pipelines, and more v5.4.1 v5.5.0 v6.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Console fails with SSL configured "unable to verify the first certificate"
7 participants