Instead of using usernames and passwords, you can use API keys to grant access to Elasticsearch resources.