Skip to content

elasticsearch username and password security #1383

Closed Locked Answered by jertel
ofcerci4826 asked this question in Q&A
Discussion options

You must be logged in to vote

ElastAlert 2 can read the ES credentials from the config.yml or from env vars. If you are using Kubernetes, the config file or env vars can be reconstructed from Kube Secrets. If you're not using Kubernetes, you can use a config.yml with permissions set to 600.

If you need more security beyond that, such as reading the credentials from a credential vault over the network, then you can create a custom front-end Python wrapper for the ElastAlert 2 module, and after init'ing the ElastAlert object, update the loaded config dict with the secure ES credentials. Then hand off the flow back to the ElastAlert module via obj.start(), where obj is the ElastAlert object.

Alternatively, you can submit…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by jertel
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants