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

Fix: kibana-keystore requires kibana.yml starting 8.11.2 #172938

Closed
wants to merge 2 commits into from

Conversation

delanni
Copy link
Contributor

@delanni delanni commented Dec 8, 2023

Summary

Closes #172919

In a specific use case, the Keystore would be used in a context where one of the default configs is not present, causing an error from opening a non-existent file. That's because findFile will default to the first file path, if no file is found. This path would later be read, causing an error.

The fix wraps the config path acquisition with a try-catch, defaulting to undefined. This undefined will then be skipped when enumerating the data path options.

fix: Fixes an issue where the keystore would crash if used with no available config

@delanni delanni added Team:Operations Team label for Operations Team release_note:fix backport:skip This commit does not require backporting labels Dec 8, 2023
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-operations (Team:Operations)

@delanni delanni requested a review from a team December 8, 2023 12:51
@jbudz
Copy link
Member

jbudz commented Dec 8, 2023

buildkite test this

@jbudz
Copy link
Member

jbudz commented Dec 8, 2023

buildkite test this

@kibana-ci
Copy link
Collaborator

💚 Build Succeeded

Metrics [docs]

✅ unchanged

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

@delanni
Copy link
Contributor Author

delanni commented Dec 11, 2023

Closing, as this will probably not be the final solution - for now we decided to revert

@delanni delanni closed this Dec 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport:skip This commit does not require backporting ci:build-cloud-image ci:build-os-packages release_note:fix Team:Operations Team label for Operations Team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants