Elasticsearch Creds #186
-
HI all , i have deployed elastalert on my kubernetes cluster ...and updated all the configurations into configmap .....configured as below , but i dont want to directly use my admin credentials over there...how to fetch the creds from VAULT Option basic-auth username and password for Elasticsearches_username: **** |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 8 replies
-
I assume you're asking about Hashicorp Vault. ElastAlert supports loading credentials via environment variable, which is the route you would probably want to follow, loading the secrets as environment variables at runtime. Some instructions can be found here. In terms of linking Vault to your k8s cluster so that it can load environment variables in pods, that depends. If you're running ElastAlert within your organisation, your SRE/Cloud team might already have a way of doing so, so you should check with them first. If you're doing so on your own, you might want to look at setting up the Vault provider for the k8s CSI driver (see here for more documentation) or similar. This requires a reasonable amount of familiarity with Kubernetes, however. |
Beta Was this translation helpful? Give feedback.
I assume you're asking about Hashicorp Vault.
ElastAlert supports loading credentials via environment variable, which is the route you would probably want to follow, loading the secrets as environment variables at runtime. Some instructions can be found here.
In terms of linking Vault to your k8s cluster so that it can load environment variables in pods, that depends. If you're running ElastAlert within your organisation, your SRE/Cloud team might already have a way of doing so, so you should check with them first.
If you're doing so on your own, you might want to look at setting up the Vault provider for the k8s CSI driver (see here for more documentation) or similar. This requires a rea…