summaryrefslogtreecommitdiffstats
path: root/lib/private/Encryption
Commit message (Collapse)AuthorAgeFilesLines
* 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>
* Keep the modification time during decryptFilesammo28282020-02-011-0/+1
|
* Update license headersChristoph Wurst2019-12-0516-19/+21
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Some php-cs fixesRoeland Jago Douma2019-11-229-13/+6
| | | | | | | | | | | * Order the imports * No leading slash on imports * Empty line before namespace * One line per import * Empty after imports * Emmpty line at bottom of file Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* list files which could not be decryptedBjoern Schiessle2018-12-141-0/+3
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* Add interface to allow storages from opting out of encryptionRobin Appelman2018-11-291-3/+1
| | | | | | As opposed to hard-coding a list of excluded storages Signed-off-by: Robin Appelman <robin@icewind.nl>
* skip already decrypted files on decrypt all commandBjoern Schiessle2018-10-241-0/+6
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* Remove deprecated \OCP\User::userExistsRoeland Jago Douma2018-03-261-3/+4
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Remove deprecated \OCP\User::getUsersRoeland Jago Douma2018-03-251-2/+5
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* this was a migration step to ownCloud 8.0 to restructure the encryption ↵Bjoern Schiessle2018-03-021-9/+0
| | | | | | folder which is no longer needed Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* Simplify ternary operator statementsMorris Jobke2018-01-261-1/+1
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Update license headersMorris Jobke2017-11-067-1/+11
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* only collect detailed access list if it is really neededBjoern Schiessle2017-07-061-1/+9
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* don't try to encrypt/decrypt the certificate bundleBjoern Schiessle2017-06-131-0/+1
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* Remove unused use statementsMorris Jobke2017-04-221-1/+0
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Fix translationsJoas Schilling2017-04-181-2/+2
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Adjust docs and make !$currentAccess simplerJoas Schilling2017-04-131-2/+2
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Return the token as wellJoas Schilling2017-04-131-1/+1
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Return the paths for the users without setting them all upJoas Schilling2017-04-131-2/+2
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Fix commentsRoeland Jago Douma2017-04-131-1/+1
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>