graylog2-server icon indicating copy to clipboard operation
graylog2-server copied to clipboard

add certificate authentication to elasticsearch

Open jalogisch opened this issue 6 years ago • 5 comments

Context

Elasticsearch is now providing with searchguard plugin or the x-pack security feature the ability to authenticate with a certificate.

Graylog should be able to authenticate not only with username/password but also certificates to make elasticsearch connection more secure.

Your Environment

  • Graylog Version: 3.1
  • Elasticsearch Version: 6.8

jalogisch avatar Aug 28 '19 14:08 jalogisch

Two links that can help building a development environment to test this: Run Elasticsearch in docker with SSL: https://www.elastic.co/guide/en/elasticsearch/reference/6.8/configuring-tls-docker.html Configure client certificate Auth: https://www.elastic.co/es/blog/elasticsearch-security-configure-tls-ssl-pki-authentication

radykal-com avatar Aug 29 '19 20:08 radykal-com

How are client certificates going to be configured?

  • In conf file on all servers specifying the filesystem path to the certificate, and the optional passphrase to decrypt the file
  • In Cluster config, using the UI?

What kind of certificate files are going to be supported? PKCS12, PEM, both?

radykal-com avatar Aug 30 '19 17:08 radykal-com

Any updates on this feature? I can't find any configurations of Graylog and Elasticsearch authentication with certificates, so I assume it is not implemented yet.

Bublomir avatar Nov 27 '19 09:11 Bublomir

Anything planned yet to implement this ? Also for the connection to mongodb this should also be nice, Any updates on this will be appreciated very much

ghost avatar Aug 31 '22 08:08 ghost

@johan-open-future for mongodb this is already working once you added the certificates to the trust/keystores and added the subjectname of the clientcertificate as username to the mongouri.

I've found no way to get client certificate authentication to work with open search though.

Jarvid avatar Sep 17 '22 13:09 Jarvid

We are looking into this as well. Having a certificate based authentication would be greatly appreciated. Opensearch nicely supports admin certificates already. Any thoughts on this?

scMarkus avatar Jan 07 '24 16:01 scMarkus