On 30 Oct 2024 at 7:33:42 PM, Mark Derricutt <m...@talios.com> wrote:
> Hey all, > > Have a question regarding support K8S secrets, in my Karaf > distribution/container image, I've patched the config.properties file > and updated the > org.apache.felix.configadmin.plugin.interpolation.secretsdir entry to a > directory I'm mounting my secrets into. > > When using $[foo] in one of my .cfg files, I see the non-interpolated > value being passed to my component rather than what I'd expect. > > Am I likely missing something obvious, or do I need to include a specific > bundle for secrets? > > Realised I missed off some important points here, I’m running Karaf 4.4.6 via a custom distribution, running staticcm config. ENV var interpolation works fine, but no secrets. Looking at https://github.com/apache/karaf/blob/main/client/src/main/java/org/apache/karaf/client/ClientConfig.java#L258 I see support for env: and props: - but nothing for secret: (pretty sure this is the wrong place, but I can’t see anything in the rest of the Karaf git repo either). Any pointers? Mark