Skip to content

Elasticsearch credentials rotation on k8s #1058

@bozho

Description

@bozho

Hi,

We are deploying the exporter using the community helm chart and are passing in ES credentials as env. variables (ES_USERNAME and ES_PASSWORD), with values picked up from a Secret.

This makes credentials rotation quite cumbersome, since elasticsearch-exporter deployment needs to be restarted when credentials have been changed and the referenced Secret changes.

Would it be possible to add support for loading credentials from a file (like ES does with file authentication realm), with automatic reload on change? This would allow mounting the credentials Secret as a file, and updating the secret would update the mounted file. This would vastly simplify automating credentials rotation (using external-secrets controller, for example).

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions