Closed onedr0p closed 2 months ago
Hi @onedr0p I'm sorry I don't know too much for external secrets, looks it is a community operator? I think we will not support it soon. EMQX support use environment variables to configure, check this document: https://docs.emqx.com/en/enterprise/latest/configuration/configuration.html#environment-variables So maybe you can try set K8s secret to EMQX pod environment, I think it will be work.
This really isn't about ESO, it's more about consuming the config from an existing secret or configmap. I was just explaining my use-case with ESO.
OK, can environment variables meet your needs?
I suppose so
Is your feature request related to a problem? Please describe.
I would like to use the templating features of ESO in order to populate the
.spec.config
field in the EMQX resource and it would be great if the.spec.config
could read from an existing secret or configmap to achieve this.Describe the solution you'd like
Consider the following ...
EMQX resource
External Secret resource
This will create a Kubernetes secret and ESO would replaced
{{.LDAP_USERNAME}}
and{{.LDAP_PASSWORD}}
with my external secret from my provider.I could then use the secret in the EMQX resource using
configFrom
as shown in my example.