Skip to content

perf: Ensure encryption wrapper is only setup when needed - #62551

Draft
CarlSchwan wants to merge 2 commits into
masterfrom
carl/fix-encrytion-wrapper-condition
Draft

perf: Ensure encryption wrapper is only setup when needed#62551
CarlSchwan wants to merge 2 commits into
masterfrom
carl/fix-encrytion-wrapper-condition

Conversation

@CarlSchwan

Copy link
Copy Markdown
Member

Summary

The app needs to be enabled and the settings need to be on.

And second commit

refactor: Cleanup encryption manager

  • Port to IAppConfig
  • Port to IRootFolder
  • Add typing
  • Add Consumable attribute to OCP interface

TODO

  • ...

Checklist

AI (if applicable)

  • The content of this PR was partly or fully generated using AI

The app needs to be enabled and the settings need to be on.

Signed-off-by: Carl Schwan <carl@carlschwan.eu>
- Port to IAppConfig
- Port to IRootFolder
- Add typing
- Add Consumable attribute to OCP interface

Signed-off-by: Carl Schwan <carl@carlschwan.eu>
@CarlSchwan CarlSchwan added this to the Nextcloud 35 milestone Jul 27, 2026
@CarlSchwan CarlSchwan self-assigned this Jul 27, 2026
@CarlSchwan
CarlSchwan requested a review from a team as a code owner July 27, 2026 08:08
@CarlSchwan CarlSchwan added 3. to review Waiting for reviews technical debt 🧱 🤔🚀 performance 🚀 labels Jul 27, 2026
@CarlSchwan
CarlSchwan requested review from come-nc, leftybournes, provokateurin and salmart-dev and removed request for a team July 27, 2026 08:08
@CarlSchwan
CarlSchwan marked this pull request as draft July 27, 2026 18:40
@CarlSchwan

Copy link
Copy Markdown
Member Author

Failure is related

@@ -206,7 +206,7 @@ public function getDefaultEncryptionModuleId() {
*/
public function setupStorage(): void {
// If encryption is disabled and there are no loaded modules it makes no sense to load the wrapper
if (!empty($this->encryptionModules) || $this->isEnabled()) {
if ($this->encryptionModules !== [] && $this->isEnabled()) {

@artonge artonge Jul 28, 2026

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

cc. @come-nc as I recall that this is on purpose in case encryption was disabled without decrypting all files.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review Waiting for reviews performance 🚀 technical debt 🧱 🤔🚀

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants