Elasticsearch custom users with custom keys in existing Secret config

File realm doc provides example on how to define users and roles by Secret Kubernetes configuration with use of keys users and users_roles and referring to this with spec.auth.fileRealm from Elasticsearch configuration.

Question: we have centralized all our secrets in existing Kubernetes Secret (with standardized key naming) with automatic synchronization with AWS SSM. So I would like to avoid creating new Secret specifically for Elasticsearch. Does Elasticsearch configuration (spec.auth.fileRealm) support referring to secret and keys?


Sorry, only Secret names are allowed in the fileRealm and roles fields.

In the case of the file realm it is not possible to use something else than the expected users_roles and users keys. I'm not sure what the spec would look like if we want to be more flexible tbh, do you have something specific in mind ?