embulk / embulk-output-elasticsearch

Apache License 2.0
32 stars 26 forks source link

Support SSL and Basic authentication(Shield) #33

Closed sakama closed 7 years ago

sakama commented 7 years ago

Related to #32

This PR enables to use SSL and Basic authentication. This implementation works with Elastic Cloud. Also works with local Elasticsearch server that was installed X-Pack security feature(formally called as 'Shield').

'Security' also supports other auth method like LDAP or ActiveDirectory. But this PR doesn't contains support for such methods.

Process to enable 'security'(or shield) at local Elasticsearch server

# Install plugin
$ ./bin/plugin install license
$ ./bin/plugin install shield
$ ./bin/elasticsearch # start Es server

# Add user
$ ./bin/shield/esusers useradd admin -r admin # create 'admin' user as admin role
$ ./bin/shield/esusers useradd elastic -r power_user # create 'elastic' user as power_user role(read/write role)

References

Using Elasticsearch HTTP/REST Clients with Shield | Shield [2.4] | Elastic