Skip to content

feat(encryption): Migrate from hooks to events - #48560

Merged
come-nc merged 17 commits into
masterfrom
fix/migrate-encryption-away-from-hooks
May 14, 2025
Merged

feat(encryption): Migrate from hooks to events#48560
come-nc merged 17 commits into
masterfrom
fix/migrate-encryption-away-from-hooks

Conversation

@come-nc

Copy link
Copy Markdown
Contributor

Part of #32128

Summary

This is not half as clean as I would’ve liked, because original code is convoluted.
The owner thing in the event listener is ugly and probably incorrect but it was there before in HookManager class.

Checklist

@come-nccome-nc added the 3. to review Waiting for reviews label Oct 3, 2024
@come-nccome-nc added this to the Nextcloud 31 milestone Oct 3, 2024
@come-nccome-nc self-assigned this Oct 3, 2024
@come-nc
come-ncforce-pushed the fix/migrate-encryption-away-from-hooks branch 2 times, most recently from 7b456c7 to fc22188CompareNovember 5, 2024 15:53
@come-nc

Copy link
Copy Markdown
ContributorAuthor

Getting there, only one more failure. For some reason it’s not the same one locally and in the CI 🤷

@come-nc
come-ncforce-pushed the fix/migrate-encryption-away-from-hooks branch from 1d2e3f4 to f392a55CompareDecember 16, 2024 14:45
@blizzzblizzz mentioned this pull request Jan 8, 2025
@come-nc
come-ncforce-pushed the fix/migrate-encryption-away-from-hooks branch from efb5812 to 4a3def9CompareJanuary 13, 2025 08:58
@skjnldsvskjnldsv mentioned this pull request Jan 14, 2025
@come-nc
come-ncforce-pushed the fix/migrate-encryption-away-from-hooks branch from 314010a to 14b8770CompareJanuary 16, 2025 17:05
@skjnldsvskjnldsv mentioned this pull request Jan 16, 2025
Comment threadlib/private/Files/Storage/Wrapper/Encryption.php Fixed
Comment threadlib/private/Files/Storage/Wrapper/Encryption.php Fixed
Comment threadlib/private/Files/Storage/Wrapper/Encryption.php Fixed
Comment threadlib/private/Files/Storage/Wrapper/Encryption.php Fixed
@come-nc
come-ncforce-pushed the fix/migrate-encryption-away-from-hooks branch from d47a006 to bfbc787CompareJanuary 20, 2025 09:40
@come-nccome-nc added 2. developing Work in progress and removed 3. to review Waiting for reviews labels Jan 20, 2025
Comment threadlib/private/Files/Storage/Wrapper/Encryption.php Fixed
Comment threadlib/private/Files/Storage/Wrapper/Encryption.php Fixed
Comment threadlib/private/Files/Storage/Wrapper/Encryption.php Fixed
Comment threadlib/private/Files/Storage/Wrapper/Encryption.php Fixed
Comment threadlib/private/Files/Storage/Wrapper/Encryption.php Fixed
Comment threadlib/private/Files/Storage/Wrapper/Encryption.php Fixed
Comment threadlib/private/Files/Storage/Wrapper/Encryption.php Fixed
Comment threadlib/private/Files/Storage/Wrapper/Encryption.php Fixed
Comment threadlib/private/Files/Storage/Wrapper/Encryption.php Fixed
Comment threadlib/private/Files/Storage/Wrapper/Encryption.php Fixed
@come-nc
come-ncforce-pushed the fix/migrate-encryption-away-from-hooks branch from bfbc787 to f299305CompareJanuary 20, 2025 10:24
Comment threadlib/private/Files/ObjectStore/ObjectStoreStorage.php Fixed
Comment threadlib/private/Files/ObjectStore/ObjectStoreStorage.php Fixed
Comment threadlib/private/Files/Storage/Wrapper/Encryption.php Fixed
Comment threadlib/private/Files/Storage/Wrapper/Encryption.php Fixed
Comment threadlib/private/Files/Storage/Wrapper/Encryption.php Fixed
Comment threadlib/private/Files/Storage/Wrapper/Encryption.php Fixed
Comment threadlib/private/Files/Storage/Wrapper/Encryption.php Fixed
Comment threadlib/private/Files/Storage/Wrapper/Encryption.php Fixed
@AltahrimAltahrim mentioned this pull request Jan 21, 2025
Comment threadlib/private/Encryption/Update.php Outdated
@AltahrimAltahrim mentioned this pull request Jan 23, 2025
@come-nc
come-ncforce-pushed the fix/migrate-encryption-away-from-hooks branch from f299305 to d5fcd9bCompareFebruary 11, 2025 13:40
@come-nc
come-ncforce-pushed the fix/migrate-encryption-away-from-hooks branch from 840489b to f059ba8CompareApril 1, 2025 11:24
@come-nc
come-nc requested a review from a team as a code ownerApril 1, 2025 11:24
@come-nc
come-nc requested review from ArtificialOwl and icewind1991 and removed request for a teamApril 1, 2025 11:24
come-nc added 16 commits May 13, 2025 23:37
…ffects
It was clearing the hooks with the same results before
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
…ects
Adapt tests a bit to make them pass with Encryption wrapper registered
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
…ith encryption registered
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
…ems in files_versions tests
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
…tions
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
…n wrapper is present
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
 to avoid back&forth between path and Node object
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
…store in moveFromStorage
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
…rs are created with private key
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
@come-nc
come-ncforce-pushed the fix/migrate-encryption-away-from-hooks branch from a7e8847 to 43418eeCompareMay 13, 2025 21:37
@come-nccome-nc added 3. to review Waiting for reviews and removed 2. developing Work in progress labels May 14, 2025
@come-nc
come-nc requested a review from artongeMay 14, 2025 09:49
@come-nc
come-nc merged commit 2cd491f into masterMay 14, 2025
@come-nc
come-nc deleted the fix/migrate-encryption-away-from-hooks branch May 14, 2025 17:25
@nextcloud-botnextcloud-bot mentioned this pull request Aug 19, 2025
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to reviewWaiting for reviews

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants

@come-nc@icewind1991@susnux@artonge@skjnldsv@github-advanced-security