aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Encryption
Commit message (Collapse)AuthorAgeFilesLines
* chore(deps): Update nextcloud/coding-standard to v1.3.1provokateurin2024-09-195-6/+6
| | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* fix(psalm): Fix @throws annotationsfix/psalm/throws-annotationsprovokateurin2024-09-171-1/+1
| | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* style: update codestyle for coding-standard 1.2.3Daniel Kesselberg2024-08-254-11/+11
| | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* Merge branch 'master' into refactor/OC-Server-getEncryptionFilesHelperJohn Molakvoæ2024-06-041-1/+2
|\ | | | | Signed-off-by: John Molakvoæ <skjnldsv@users.noreply.github.com>
| * Merge pull request #40133 from ↵John Molakvoæ2024-06-041-1/+2
| |\ | | | | | | | | | summersab/refactor/OC-Server-getEncryptionKeyStorage
| | * chore: adjust conflicting php class name usageJohn Molakvoæ2024-05-301-2/+2
| | | | | | | | | | | | Co-authored-by: Benjamin Gaussorgues <github-fa3ie@altahrim.net> Signed-off-by: John Molakvoæ <skjnldsv@users.noreply.github.com>
| | * Refactor `OC\Server::getEncryptionKeyStorage`Andrew Summers2024-03-151-1/+2
| | | | | | | | | | | | Signed-off-by: Andrew Summers <18727110+summersab@users.noreply.github.com>
* | | Merge branch 'master' into refactor/OC-Server-getEncryptionFilesHelperJohn Molakvoæ2024-05-3016-429/+160
|\| | | | | | | | Signed-off-by: John Molakvoæ <skjnldsv@users.noreply.github.com>
| * | chore: Add SPDX headerAndy Scherzinger2024-05-2416-337/+63
| | | | | | | | | | | | Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
| * | fix: Apply new coding standard to all filesCôme Chilliet2024-04-021-1/+1
| |/ | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
| * Merge pull request #42893 from nextcloud/file-info-key-locationJohn Molakvoæ2024-02-232-25/+26
| |\
| | * add key location to info:file outputRobin Appelman2024-02-012-25/+26
| | | | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
| * | chore: Fix DI for Encryption\DecryptAll commandCôme Chilliet2024-01-302-47/+14
| |/ | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
| * Revert "add key location to info:file output"Robin Appelman2024-01-172-26/+25
| | | | | | | | This reverts commit 7bf82fc312acb775bf150ce506d16a05989cd43e.
| * add key location to info:file outputRobin Appelman2024-01-172-25/+26
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
| * chore: apply changes from Nextcloud coding standards 1.1.1Joas Schilling2023-11-234-14/+14
| | | | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com> Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
| * extend fix-key-location to handle cases from broken cross-storage movesRobin Appelman2023-08-313-5/+42
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | Refactor `OC\Server::getEncryptionFilesHelper`Andrew Summers2023-08-292-2/+4
|/ | | | Signed-off-by: Andrew Summers <18727110+summersab@users.noreply.github.com>
* Refactors "strpos" calls in lib/private to improve code readability.Faraz Samapoor2023-05-151-4/+1
| | | | Signed-off-by: Faraz Samapoor <fsamapoor@gmail.com>
* Use typed version of IConfig::getSystemValue as much as possibleCôme Chilliet2023-04-053-6/+6
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* composer run cs:fixCôme Chilliet2023-01-209-10/+0
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* add marker interface to mark system mount points for encryptionRobin Appelman2022-08-251-43/+4
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Remove OCP\App and OCP\BackgroundJobCarl Schwan2022-08-012-33/+31
| | | | | | | | | | Both deprecated since NC 23 IAppManager is the replacement for OCP\App unfortunately it can't be dependency injected in classes used by the installed otherwise the database connection is initialised too early Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Move CappedMemoryCache to OCPCarl Schwan2022-07-141-1/+1
| | | | | | | | This is an helpful helper that should be used in more place than just server and this is already the case with groupfodlers, deck, user_oidc and more using it, so let's make it public Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Fix hook encryption with cron jobCarl Schwan2022-06-071-13/+25
| | | | | | | | Make sure the setup fs is set before using the Update service Fix #29674 Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Trim mount point before matching in encryption codeVincent Petry2022-06-011-1/+1
| | | | | | | Often times the mount point has a leading slash. This fix sanitizes it to make sure matching works. Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* Add stricter psalm type for CappedMemoryCacheCarl Schwan2022-05-122-5/+5
| | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Migrate from ILogger to LoggerInterface in lib/privateCôme Chilliet2022-03-242-21/+6
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Refactor getEncryptionModule routineJ0WI2021-07-061-17/+13
|
* remove depricated methods from MountConfigRobin Appelman2021-06-162-15/+24
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Update php licensesJohn Molakvoæ (skjnldsv)2021-06-0416-16/+3
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Fix phpcs issues in encryption updateVincent Petry2021-03-191-3/+0
| | | | Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* Log and continue when failing to update encryption keys during for ↵Julius Härtl2021-03-193-12/+26
| | | | | | individual files Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Bump nextcloud/coding-standard from 0.3.0 to 0.5.0dependabot-preview[bot]2021-02-183-6/+6
| | | | | | | | | | Bumps [nextcloud/coding-standard](https://github.com/nextcloud/coding-standard) from 0.3.0 to 0.5.0. - [Release notes](https://github.com/nextcloud/coding-standard/releases) - [Changelog](https://github.com/nextcloud/coding-standard/blob/master/CHANGELOG.md) - [Commits](https://github.com/nextcloud/coding-standard/compare/v0.3.0...v0.5.0) Signed-off-by: dependabot-preview[bot] <support@dependabot.com> Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Catch throwable instead of exceptionRoeland Jago Douma2021-01-071-1/+1
| | | | | | | The error that gets thrown can also be a type error etc. So we should properly catch the Throwable. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* dont apply encryption wrapper for root mountRobin Appelman2020-12-291-1/+1
| | | | | | | the `shouldEncrypt` already disables encryption for anything thats not in the users data folder, however the encryption wrapper being applied anyway on the root folder breaks groupfolders Signed-off-by: Robin Appelman <robin@icewind.nl>
* Update all license headers for Nextcloud 21Christoph Wurst2020-12-163-3/+3
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Format code to a single space around binary operatorsChristoph Wurst2020-10-052-3/+3
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update the license headers for Nextcloud 20Christoph Wurst2020-08-241-0/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* New SSE key formatRoeland Jago Douma2020-08-201-15/+131
| | | | | | | * Encrypt the keys with the instance secret * Store them as json (so we can add other things if needed) Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Move OC_Mount_Config to proper classname and remove OC::$CLASSPATH usage in ↵Morris Jobke2020-07-102-2/+2
| | | | | | files_external Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Update license headers for 19Christoph Wurst2020-04-293-0/+3
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Add visibility to all constantsChristoph Wurst2020-04-102-5/+5
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Format control structures, classes, methods and functionChristoph Wurst2020-04-1014-51/+9
| | | | | | | | | | | | | | | To continue this formatting madness, here's a tiny patch that adds unified formatting for control structures like if and loops as well as classes, their methods and anonymous functions. This basically forces the constructs to start on the same line. This is not exactly what PSR2 wants, but I think we can have a few exceptions with "our" style. The starting of braces on the same line is pracrically standard for our code. This also removes and empty lines from method/function bodies at the beginning and end. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Remove trailing and in between spacesChristoph Wurst2020-04-091-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Unify function spacing to PSR2 recommendationChristoph Wurst2020-04-091-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Use exactly one empty line after the namespace declarationChristoph Wurst2020-04-091-1/+0
| | | | | | For PSR2 Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Fix multiline commentsChristoph Wurst2020-04-081-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update the license headers for Nextcloud 19Christoph Wurst2020-03-315-0/+6
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Use the short array syntax, everywhereChristoph Wurst2020-03-265-12/+12
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>