-
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
Log error or disable alerting plugin when security is enabled but not SSL #49403
Comments
Pinging @elastic/kibana-stack-services (Team:Stack Services) |
Here's what the error looks like today in the logs. It's pretty clear that the errors are due to API keys not being enabled, but would be nice to indicate that this happens because of running security without TLS:
|
I'm not sure this is available as a function rather than an http endpoint, butt we could self-call Kibana with this, as soon as the http server is available: kibana/x-pack/plugins/security/server/routes/api_keys/privileges.ts Lines 12 to 16 in 7e25301
Log the result in the server, if api keys aren't enabled. We could check it in subsequent API calls that we know will involve api key access, throw a more explicit error from there. Is the only reason api keys would be disabled because of the security/!https scenario? Would it make sense to have ES tell us why it's disabled, eg tacked into the info that might be returned via this potential enhancement. Feels like a Too Much Info issue (security-wise). Some doc on this subject would be useful. But feels like we should only be responding in HTTP requests about the api keys not being enabled, not WHY they aren't enabled. We should probably provide a tip in the logged message ^^^ though. An additional log message like "a common cause of api keys being disabled is using elasticsearch security but not using https" |
Speaking with @legrego it seems the Security team do not want us to use the API mentioned by @pmuellr as it is an internal one. Fortunately Security have an issue to address the lack of an API to check this, but it has not yet been prioritised: #59576 |
Without a warning, users would get errors at alert creation time that API keys isn't supported / working. This is due to a requirement of SSL for the communication between Elasticsearch and Kibana. We should have some early indication when users are running alerting in this grey area (security enabled / SSL disabled).
The text was updated successfully, but these errors were encountered: