Repository navigation
don't load masterkey from arbitrary paths - #4180
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
WalkthroughThe change updates masterkey file resolution in MasterkeyFileLoadingStrategy.java to use a fixed filename from Constants (Constants.MASTERKEY_FILENAME) instead of deriving the filename from the key ID's scheme-specific part. It logs a warning when the scheme-specific part differs from the expected masterkey filename, resolves the masterkey via vault.getPath().resolve(Constants.MASTERKEY_FILENAME), and falls back to prompting the user if the file is missing. The unlock sequence is annotated with a dedicated unlock comment marker, and backup-related comments now indicate a “backup on successful unlock” with existing conditional backup logic preserved for vault-contained vs external files. Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes 🚥 Pre-merge checks | ✅ 1 | ❌ 2❌ Failed checks (1 warning, 1 inconclusive)
✅ Passed checks (1 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In
`@src/main/java/org/cryptomator/ui/keyloading/masterkeyfile/MasterkeyFileLoadingStrategy.java`:
- Line 36: Replace the duplicated filename constant in
MasterkeyFileLoadingStrategy by removing DEFAULT_MASTERKEY_PATH and using the
existing Constants.MASTERKEY_FILENAME; update any usages in
MasterkeyFileLoadingStrategy (e.g., where DEFAULT_MASTERKEY_PATH is referenced)
to reference Constants.MASTERKEY_FILENAME instead and import
org.cryptomator.ui.Constants if necessary so the class uses the single shared
constant.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: 4cf94e6c-6b12-45db-b701-f48dc05c9b9d
📒 Files selected for processing (1)
src/main/java/org/cryptomator/ui/keyloading/masterkeyfile/MasterkeyFileLoadingStrategy.java
No description provided.