Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sops-install-secrets: allow using tmpfs instead of ramfs #236

Open
caguiclajmg opened this issue Oct 9, 2022 · 2 comments
Open

sops-install-secrets: allow using tmpfs instead of ramfs #236

caguiclajmg opened this issue Oct 9, 2022 · 2 comments

Comments

@caguiclajmg
Copy link

caguiclajmg commented Oct 9, 2022

Deploying sops-nix to an OpenVZ host running kernel 4.19.0 fails due to lack of support for ramfs, would be nice to allow using tmpfs instead of ramfs by specifying it in the manifest.

Or perhaps, a dontcare flag for sops-install-secrets in which it doesn't check and mount the secrets mount point.

if err := unix.Mount("none", mountpoint, "ramfs", unix.MS_NODEV|unix.MS_NOSUID, "mode=0751"); err != nil {

Waiver: I do understand the security implications with tmpfs as you risk getting the contents swapped to disk.

I'm writing the patch myself as I have no way around this one but still want to keep using sops-nix for secret management, would just like to know if there is interest in upstream accepting a patch.

@caguiclajmg caguiclajmg changed the title sops-install-secrets: support specifying custom fstype sops-install-secrets: allow using tmpfs instead of ramfs Oct 9, 2022
@Mic92
Copy link
Owner

Mic92 commented Oct 9, 2022

I would accept a patch that add an option with a proper description about the security implication.

@KiaraGrouwstra
Copy link

should be fixed by #355

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants