Skip to content

[7.x] Secure password for monitoring HTTP exporter#51775

Merged
danhermann merged 3 commits intoelastic:7.xfrom
danhermann:backport_50919_secure_password
Feb 3, 2020
Merged

[7.x] Secure password for monitoring HTTP exporter#51775
danhermann merged 3 commits intoelastic:7.xfrom
danhermann:backport_50919_secure_password

Conversation

@danhermann
Copy link
Copy Markdown
Contributor

Adds reloadable SECURE_AUTH_PASSWORD to allow keystore entries in the form xpack.monitoring.exporters.*.secure_auth_password to securely supply passwords for monitoring exporters. Deprecates the insecure AUTH_PASSWORD setting.

It would have been ideal to include validation that only one of either the AUTH_PASSWORD or SECURE_AUTH_PASSWORD were set but the settings validation framework does not support secure settings. Additionally, the validation on the AUTH_USERNAME setting that required a password to be set if the username was set had to be removed because the password can now be set via a secure setting that the validation framework cannot see. It might be possible to extend the validation framework to handle secure settings, but if so, that would definitely be a separate work effort.

Making the SECURE_AUTH_PASSWORD setting reloadable meant that the Monitoring plugin had to be able to trigger a reload of any HTTP exporters when the cluster received a _nodes/reload_secure_settings request. This necessitated (unless I missed a cleaner approach) the addition of a reference to Exporters within the Monitoring class.

Fixes #50197.

Backport of #50919.

danhermann and others added 2 commits January 31, 2020 13:39
Adds a secure and reloadable SECURE_AUTH_PASSWORD setting to allow keystore entries in the form "xpack.monitoring.exporters.*.auth.secure_password" to securely supply passwords for monitoring HTTP exporters. Also deprecates the insecure `AUTH_PASSWORD` setting.
@elasticmachine
Copy link
Copy Markdown
Collaborator

Pinging @elastic/es-core-features (:Core/Features/Monitoring)

…/monitoring/exporter/http/HttpExporterIT.java

Co-Authored-By: Lee Hinman <dakrone@users.noreply.github.com>
@danhermann danhermann merged commit 4083eae into elastic:7.x Feb 3, 2020
@danhermann danhermann deleted the backport_50919_secure_password branch February 3, 2020 13:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants