-
Notifications
You must be signed in to change notification settings - Fork 24.9k
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
Tribe Node fails to start with secure settings for xpack.security #32117
Labels
>bug
:Core/Infra/Settings
Settings infrastructure and APIs
:Security/Security
Security issues without another label
v6.3.1
Comments
tvernum
added
>bug
:Security/Security
Security issues without another label
v6.3.1
labels
Jul 17, 2018
Pinging @elastic/es-security |
Pinging @elastic/es-core-infra |
We discussed this during the core/infra weekly meeting today and we have agreement that we are not going to address this issue. We feel this is justified because:
As such, we feel the only change here should be making the error message clearer. |
jasontedor
added
help wanted
adoptme
and removed
team-discuss
help wanted
adoptme
labels
Jul 19, 2018
rjernst
added a commit
to rjernst/elasticsearch
that referenced
this issue
Jul 23, 2018
This commit adds a clear error message when tribe setup attempts to copy a secure setting into tribe settings. This behavior has never worked, but the previous error message was very confusing, complaining about a source key not being found later when trying to read the setting. closes elastic#32117
rjernst
added a commit
that referenced
this issue
Jul 24, 2018
This commit adds a clear error message when tribe setup attempts to copy a secure setting into tribe settings. This behavior has never worked, but the previous error message was very confusing, complaining about a source key not being found later when trying to read the setting. closes #32117
The error message was made more clear in #32298, thus I am closing this issue per above agreement. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
>bug
:Core/Infra/Settings
Settings infrastructure and APIs
:Security/Security
Security issues without another label
v6.3.1
If a node is configured as a tribe node, then we automatically copy each
xpack.security.*
setting from the root settings, to each of the tribe client settings (Security.addTribeSettings
)However, that fails if the
xpack.security
setting is a SecureSetting asSettings.Builder.copy
cannot copy secure settings.The error is a somewhat cryptic
Given Tribe is deprecated in 6.x and removed in 7, we don't want to do much here, but we don't want a situation where nodes fail to start, and the errors are unclear.
Possible solutions:
xpack.security.*
on tribe nodes. That is, inaddTribeSettings
fail if we find a secure setting (with a reasonable error message)tribe.xyz.xpack.security.*
secure setting already exist in the keystore. That is if,xpack.security.transport.ssl.keystore.secure_password
exists in the keystore, require thattribe.xyz.xpack.security.transport.ssl.keystore.secure_password
also exist, and fail with a reasonble error message if it does not.The text was updated successfully, but these errors were encountered: