Skip to content

TUI and Mac app: passphrases for encrypted volumes - #32

Merged
darkspadez merged 1 commit into
mainfrom
claude/architecture-design-3fxhjv
Oct 22, 2026
Merged

darkspadez merged 1 commit into
mainfrom
claude/architecture-design-3fxhjv

Conversation

@darkspadez

Copy link
Copy Markdown
Contributor

Before: encrypted volumes (#31) could only be created and attached from the command line. In the TUI or the Mac app, adding one failed with "this volume is encrypted", and their bucket browsers couldn't read one.

After: making a volume from a folder in either app takes an optional passphrase, entered twice, which encrypts the new volume. Adding a volume takes a passphrase for encrypted ones. The passphrase is handed to rustfuse for that one command and is not stored, since each machine keeps the volume's key. The "In the Bucket" browsers read an added encrypted volume with the key already on this machine, without asking again.

How: rustfuse ls and get take --key-from <synced dir> to use that directory's key instead of the passphrase. The TUI's add and create forms gain secret fields, and the apps pass RUSTFUSE_PASSPHRASE and --encrypt to rustfuse. The Mac app's sheets gain a SecureField, plus an "Encrypt with a passphrase" toggle when making a volume. The argument builders on both sides have tests. When run outside a terminal, the CLI's missing-passphrase error now names the variable to set. --key-from was checked by hand against rustFS.


Generated by Claude Code

Making a volume from a folder takes an optional passphrase (twice) and
encrypts it; adding a volume takes one for encrypted volumes. The
passphrase reaches rustfuse in RUSTFUSE_PASSPHRASE and is not stored.
`ls` and `get` take --key-from <synced dir> so the bucket browsers read
an added encrypted volume with the key already on this machine.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017XkM29BZuvUK5RBjQ1fmWx
@coderabbitai

coderabbitai Bot commented Oct 22, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Essentials
  • Run ID: 3b2f9b7a-3856-4ecb-98ea-999772996c53

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Comment @coderabbitai help to get the list of available commands.

@darkspadez
darkspadez marked this pull request as ready for review October 22, 2026 23:11
@darkspadez
darkspadez merged commit 276d2e3 into main Oct 22, 2026
8 checks passed
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

Successfully merging this pull request may close these issues.

2 participants