Skip to content

docs: Clarify recovery key documentation for master key vs. per-user key modes#14791

Merged
skjnldsv merged 3 commits intomasterfrom
fix/recovery-key-documentation-1340
May 7, 2026
Merged

docs: Clarify recovery key documentation for master key vs. per-user key modes#14791
skjnldsv merged 3 commits intomasterfrom
fix/recovery-key-documentation-1340

Conversation

@skjnldsv
Copy link
Copy Markdown
Member

@skjnldsv skjnldsv commented May 7, 2026

Summary

This PR fixes issue #1340 by clarifying the recovery key documentation, which has been confusing users since Nextcloud 13 changed the default encryption mode.

Problem

Users reported that recovery key configuration options don't appear in the default Nextcloud installation, suggesting the documentation was outdated. This confusion was reported in:

Root Cause

Since Nextcloud 13, the default encryption mode uses master keys (system-wide encryption), but recovery keys only exist in per-user key mode (legacy, opt-in). The documentation didn't clearly state this limitation.

Solution

Updated admin_manual/configuration_files/encryption_configuration.rst to:

  1. Update Key Management Modes section to explicitly state:

    • Master Key (default): No recovery key options available
    • User Keys: Recovery keys are optional and only available in this mode
  2. Add reference label for cross-linking from troubleshooting section

  3. Add caution box in "Enabling file recovery keys" subsection explaining:

    • Recovery keys only work in per-user key mode
    • Default master key mode doesn't expose recovery key UI
    • How to switch modes if needed (occ encryption:disable-master-key)
  4. Add troubleshooting entry directly addressing the issue:

Changes Made

  • Enhanced Key Management Modes comparison with explicit recovery key information
  • Added prominent warning box before recovery key configuration instructions
  • Added new troubleshooting subsection with answer to the exact question users were asking
  • Added reference to server issue Missing "Enable recovery key" field in the admin settings server#8283 explaining the design decision

Verification

✅ Documentation now clearly states recovery keys only exist in per-user key mode
✅ Troubleshooting section directly addresses GitHub issue #1340
✅ Commands to switch modes are clearly referenced
✅ Master key recommendation is clear with reasoning

Related Issues

Fixes #1340
Related to nextcloud/server#8283

Testing

The changes are documentation-only and don't affect functionality. The RST syntax has been verified and should build correctly.

Copy link
Copy Markdown
Contributor

@artonge artonge left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very verbose I think, I would only add a warning near the recovery key paragraph, but this is adding a lot of noise IMO. And also a lot of confusion as the AI generate part are truth-like but to truth.

Comment thread admin_manual/configuration_files/encryption_configuration.rst Outdated
Comment thread admin_manual/configuration_files/encryption_configuration.rst Outdated
Comment thread admin_manual/configuration_files/encryption_configuration.rst Outdated
Comment thread admin_manual/configuration_files/encryption_configuration.rst Outdated
Comment thread admin_manual/configuration_files/encryption_configuration.rst Outdated
Comment thread admin_manual/configuration_files/encryption_configuration.rst Outdated
Comment thread admin_manual/configuration_files/encryption_configuration.rst Outdated
skjnldsv added a commit that referenced this pull request May 7, 2026
Implement suggestions from @artonge and @schiessle to reduce verbosity and avoid
encouraging unnecessary migration to per-user key mode:

Changes:
- Remove vague 'performance and compatibility' claims from master key section
- Simplify recovery key descriptions to avoid encouraging adoption
- Delete duplicate caution box before recovery keys section
- Remove instructions on switching to per-user key mode
- Reframe per-user keys as compatibility option for legacy/older setups
- Add warning about recovery process being slow and resource-intensive
- Clarify that master key mode is the default and recommended approach

Key changes respond to review feedback:
- Avoid 'generating a need' for recovery keys when they're not needed in default mode
- Position per-user keys as historical compatibility option, not new choice
- Reduce overall verbosity while keeping core clarification of issue #1340

Addresses review comments on PR #14791

Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
@skjnldsv skjnldsv requested a review from artonge May 7, 2026 12:20
@skjnldsv
Copy link
Copy Markdown
Member Author

skjnldsv commented May 7, 2026

Updated @artonge and @schiessle

Comment thread admin_manual/configuration_files/encryption_configuration.rst Outdated
skjnldsv and others added 3 commits May 7, 2026 16:08
…key modes

Fix issue #1340: recovery key field documentation was confusing since it only applies
to per-user key mode, not the default master key mode introduced in Nextcloud 13.

Changes:
- Update Key Management Modes section to explicitly state recovery key availability
- Add reference label for cross-linking
- Add caution box in 'Enabling file recovery keys' subsection explaining the limitation
- Add troubleshooting entry: 'Why don't I see the recovery key option in Encryption settings?'
- Link to server issue #8283 for technical context
- Clarify that master key mode is recommended for most deployments

Fixes the confusion reported in:
- GitHub issue #1340
- Help forum: https://help.nextcloud.com/t/recovery-key-field-missing/50590
- Server issue #8283

Relates to: #1340

Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
Implement suggestions from @artonge and @schiessle to reduce verbosity and avoid
encouraging unnecessary migration to per-user key mode:

Changes:
- Remove vague 'performance and compatibility' claims from master key section
- Simplify recovery key descriptions to avoid encouraging adoption
- Delete duplicate caution box before recovery keys section
- Remove instructions on switching to per-user key mode
- Reframe per-user keys as compatibility option for legacy/older setups
- Add warning about recovery process being slow and resource-intensive
- Clarify that master key mode is the default and recommended approach

Key changes respond to review feedback:
- Avoid 'generating a need' for recovery keys when they're not needed in default mode
- Position per-user keys as historical compatibility option, not new choice
- Reduce overall verbosity while keeping core clarification of issue #1340

Addresses review comments on PR #14791

Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
Signed-off-by: John Molakvoæ <skjnldsv@users.noreply.github.com>
@skjnldsv skjnldsv force-pushed the fix/recovery-key-documentation-1340 branch from 238eb90 to 706f924 Compare May 7, 2026 14:08
@skjnldsv skjnldsv enabled auto-merge May 7, 2026 17:05
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 7, 2026

📖 Documentation Preview

🔍 Open preview →

📄 1 changed documentation page

Last updated: Thu, 07 May 2026 17:06:46 GMT

@skjnldsv skjnldsv merged commit 7c81200 into master May 7, 2026
34 of 37 checks passed
@skjnldsv skjnldsv deleted the fix/recovery-key-documentation-1340 branch May 7, 2026 17:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Recovery key documentation outdated since NC 13?

4 participants