Replies: 2 comments 4 replies
|
Doesn't Rails secrets offer effectively the same functionality as this? (in an encrypted file and not affecting environment variable limits) Or are you deploying a non-Rails application? |
4 replies
|
I'm looking into deploying services with Kamal, and I think it looks very promising. However, being forced to expose secrets as environment variables is disappointing, as that is very far from optimal security wise. I'm not working with Rails applications, and was hoping that Kamal would be usable also beyond the Rails ecosystem. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I've been pondering a migration from cloud Kubernetes (deploys using krane) to mrsk.
A feature we use with k8s is mounting some secrets as files in the container rather than as environment variables.
In k8s, you can create a
volumesourced from the key-value pairs of a k8s secret. Then you can mount that volume in the container's filesystem, and each item in that secret appears as a file.Now every entry in the k8s secret
my-file-secretsappears as a read-only file in/opt/run/secrets. Nice!The most immediate benefit here is being able to run
envand get legible output, and evenenv | sort. Mostly useful for debugging, of course.The more important benefit is that there's a size limit to environment variables:
The general concept would be similar to
.env.erbwhere data is generated at deployment time and then available in the running container, so it wouldn't even be specific to secrets.Does this make sense for mrsk and secret/generated data?
All reactions