Skip to content

gocryptfs

Recipe card from the charly-infrastructure plugin (Images — the deployable catalog).

gocryptfs – Encrypted filesystem support

Section titled “gocryptfs – Encrypted filesystem support”
Property Value
Install files charly.yml (packages only)

RPM: gocryptfs

rpm: (Fedora), pac: (Arch — community), deb: (Debian/Ubuntu — gocryptfs available in Debian main) — full parity.

charly.yml
my-image:
candy:
- gocryptfs

Typically used as part of the charly candy (the full toolchain: charly binary + virtualization + gocryptfs + socat) rather than directly.

When charly config mount or charly start mounts encrypted volumes, each gocryptfs daemon runs inside a systemd-run --scope --user --unit=charly-enc-<image>-<volume> scope unit. This decouples the FUSE mount lifecycle from the container service — mounts survive container stop/restart and remain browsable on the host.

The -allow_other flag is always passed to gocryptfs (required for rootless podman with --userns=keep-id). gocryptfs auto-enables default_permissions, so kernel UNIX permission checks still apply.

See /charly-automation:enc for full encrypted volume operations documentation.

  • Part of the charly candy’s full toolchain (used in githubrunner)

Use when the user asks about:

  • Encrypted volumes or filesystems
  • charly config encrypted volume operations (mount, unmount, status, passwd)
  • The gocryptfs candy
  • systemd scope units for encrypted mounts (charly-enc-*)