Robin Appelman
e4f85226c5
extend fix-key-location to handle cases from broken cross-storage moves
Signed-off-by: Robin Appelman <robin@icewind.nl>
1 year ago
Côme Chilliet
426c0341ff
Use typed version of IConfig::getSystemValue as much as possible
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
1 year ago
Côme Chilliet
f5c361cf44
composer run cs:fix
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
1 year ago
Côme Chilliet
6be7aa112f
Migrate from ILogger to LoggerInterface in lib/private
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2 years ago
J0WI
b344ff1a67
Refactor getEncryptionModule routine
3 years ago
John Molakvoæ (skjnldsv)
215aef3cbd
Update php licenses
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
3 years ago
Christoph Wurst
caff1023ea
Format control structures, classes, methods and function
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>
4 years ago
Christoph Wurst
85e369cddb
Fix multiline comments
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
4 years ago
Christoph Wurst
1a9330cd69
Update the license headers for Nextcloud 19
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
4 years ago
Christoph Wurst
b80ebc9674
Use the short array syntax, everywhere
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
4 years ago
Christoph Wurst
5bf3d1bb38
Update license headers
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
4 years ago
Bjoern Schiessle
8042e6b8fb
this was a migration step to ownCloud 8.0 to restructure the encryption folder which is no longer needed
Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
6 years ago
Morris Jobke
0eebff152a
Update license headers
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
6 years ago
Joas Schilling
1c0bffe87f
Fix translations
Signed-off-by: Joas Schilling <coding@schilljs.com>
7 years ago
Roeland Jago Douma
111c9f7563
Don't add the Encryption Storage Wrapper if there are no encryption modules
fixes #4125
If there is no encryption module enabled it makes no sense to setup the
encryption wrapper (because we can't do anything anyway).
This saves reading the header of files.
Especialy on external storage/objectstore this should improve
performance
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
7 years ago
Joas Schilling
ba87db3fcc
Fix others
8 years ago
Lukas Reschke
aba539703c
Update license headers
8 years ago
Roeland Jago Douma
d379157289
Move \OC\Encryption to PSR-4
8 years ago
Thomas Müller
50e20e531e
Introduce isReadyForUser and verify in file transfer ownership - fixes #23786
8 years ago
Bjoern Schiessle
93ed965cbb
fix creation of versions of encrypted files on external storages
in order to create a 1:1 copy of a file if a version gets created
we need to store this information on copyBetweenStorage(). This
allows us to by-pass the encryption wrapper if we read the source file.
8 years ago
Thomas Müller
682821c71e
Happy new year!
8 years ago
Morris Jobke
b945d71384
update licence headers via script
8 years ago
Bjoern Schiessle
289e9130f3
make system root of key storage configurable
9 years ago
Morris Jobke
f63915d0c8
update license headers and authors
9 years ago
Thomas Müller
5dc5b7f86d
Catch NotFoundException and return no quota information which simply reflects the current state - no file storage has been initialized for the user.
9 years ago
Thomas Müller
259b6ac2c1
Fixing grammar - refs https://www.transifex.com/projects/p/owncloud/translate/#en_GB/lib/50330746
9 years ago
Joas Schilling
9a4040c7ca
Move the storage wrapping into a testable method
9 years ago
Bjoern Schiessle
5549641f1f
improve error messages displayed to the user
9 years ago
Bjoern Schiessle
c63f2286c0
copy keys before we move a file between storages to make sure that the new target file reuses the old file key, otherwise versions will break
9 years ago
Jan-Christoph Borchardt
35292eb66c
rename to 'Default encryption module'
9 years ago
Joas Schilling
d600955a51
Make getDefaultModuleId public and get module protected
9 years ago
Joas Schilling
a09df6d453
Verify that the encryption module exists before setting it
9 years ago
Bjoern Schiessle
2990b0e07e
update share keys if a file is moved to a shared folder
9 years ago
Thomas Müller
225cde2183
pass KeyStorage via ctor
9 years ago
Joas Schilling
4d238c3949
Fix display name of encryption modules
9 years ago
Bjoern Schiessle
7d4b1b52d0
always create a new instance of the encryption module
9 years ago
Bjoern Schiessle
b25c06f576
detect system wide mount points correctly
9 years ago
Bjoern Schiessle
e3d77c4b01
add migration script from old encryption to new one
9 years ago
Thomas Müller
a4483243ac
fixing license headers - encryption code related
9 years ago
Bjoern Schiessle
a74ee67476
don't wrap share storages
9 years ago
Thomas Müller
664b2bb7af
cleaning up exception mess
9 years ago
Bjoern Schiessle
83cb382b3f
pass file helper to encryption wrapper
9 years ago
Thomas Müller
a98b7dbf6f
Fix double registration of encryption module
9 years ago
Thomas Müller
4db75e3407
Setting up the encryption wrapper in a setup hook - temporarily fixes the wrapping order
9 years ago
Bjoern Schiessle
a85e2e0bfd
make recovery settings work
9 years ago
Bjoern Schiessle
e2f714263f
fix encryption manager to handle more than one encryption module
9 years ago
Bjoern Schiessle
ff9c85ce60
implement basic encryption functionallity in core to enable multiple encryption modules
9 years ago