Security
Security is also part of X-Pack gold and premium subscriptions. Security for Elasticsearch is two-fold:
- User authentication to access the cluster using username and password
- Securing the communication between the nodes and the client using SSL
Authentication and roles
X-Pack provides role-based authentication. When you install X-Pack, authentication is enabled automatically. To get started, two default users are created:
Username | Password | Role |
elastic | changeme | This is a superuser |
kibana | changeme | To access Kibana, the user has the required permissions to talk to Elasticsearch |
You can add more users or roles in the Kibana Management Console by going to the Users page. Along with creating new users, you can also add or change roles by going to the Roles page. For example, let's create a new role chapter10_superuser
. The users in this role have super user permissions to the chapter10
index only. In the following screenshot, you can see that we restricted the index privileges to only the chapter10...