Need help putting jwt_auth_secret and database/passpharse away from config.toml #345
-
Hello, I'm trying to set up Garm in Kubernetes, and I would like to remove the sensitive strings from config.toml. I tried to use env vars like this :
In kubernetes :
But that didn't worked :
Is it possible to use env vars or source these as separate files ? That way I can manage the configuration in configmap and the sensitive strings as Kubernetes Secrets. I could encode the whole file as base64 and mounting it but the downside would be troubles when consulting the configuration from Git. Thanks :) |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
I think this can be implemented by changing the way the GARM config is generated. You can use a simple entrypoint that makes sure that the final garm config file will have the appropriate values. So you can define a config map with some placeholder for secrets, you can define some secrets with those values, then an entrypoint for the GARM container can compose the final config before starting GARM. I don't think this is something that needs to be implemented in GARM specifically. At some point I really need to make time and deploy GARM along side the operator. See what we can do in GARM to make it easier to have a nice experience when deploying it in k8s. The operator doesn't require GARM to be in k8s, so this is not necessarily something that needs to be changed there. But it would be nice to have some helm charts for GARM itself, not just the operator. |
Beta Was this translation helpful? Give feedback.
Hi @Fabiosilvero
I think this can be implemented by changing the way the GARM config is generated. You can use a simple entrypoint that makes sure that the final garm config file will have the appropriate values. So you can define a config map with some placeholder for secrets, you can define some secrets with those values, then an entrypoint for the GARM container can compose the final config before starting GARM.
I don't think this is something that needs to be implemented in GARM specifically.
At some point I really need to make time and deploy GARM along side the operator. See what we can do in GARM to make it easier to have a nice experience when deploying it in k8s. The operator doe…