gocryptfs
Recipe card from the charly-infrastructure plugin (Images — the deployable catalog).
gocryptfs – Encrypted filesystem support
Section titled “gocryptfs – Encrypted filesystem support”Candy Properties
Section titled “Candy Properties”| Property | Value |
|---|---|
| Install files | charly.yml (packages only) |
Packages
Section titled “Packages”RPM: gocryptfs
Cross-distro coverage
Section titled “Cross-distro coverage”rpm: (Fedora), pac: (Arch — community), deb: (Debian/Ubuntu — gocryptfs available in Debian main) — full parity.
my-image: candy: - gocryptfsTypically used as part of the charly candy (the full toolchain: charly binary + virtualization + gocryptfs + socat) rather than directly.
Runtime Behavior
Section titled “Runtime Behavior”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.
Used In Boxes
Section titled “Used In Boxes”- Part of the
charlycandy’s full toolchain (used ingithubrunner)
Related Candies
Section titled “Related Candies”/charly-infrastructure:virtualization– part of thecharlycandy alongside gocryptfs/charly-infrastructure:socat– part of thecharlycandy alongside gocryptfs
When to Use This Skill
Section titled “When to Use This Skill”Use when the user asks about:
- Encrypted volumes or filesystems
charly configencrypted volume operations (mount, unmount, status, passwd)- The
gocryptfscandy - systemd scope units for encrypted mounts (
charly-enc-*)
Author + Test References
Section titled “Author + Test References”/charly-image:layer— candy authoring reference (tasks, vars, env_provide, tests block syntax)/charly-check:check— declarative testing framework for thecheck:block