Robin Appelman
e4f85226c5
extend fix-key-location to handle cases from broken cross-storage moves
Signed-off-by: Robin Appelman <robin@icewind.nl>
před 1 rokem
Côme Chilliet
426c0341ff
Use typed version of IConfig::getSystemValue as much as possible
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
před 1 rokem
Côme Chilliet
f5c361cf44
composer run cs:fix
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
před 1 rokem
Côme Chilliet
6be7aa112f
Migrate from ILogger to LoggerInterface in lib/private
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
před 2 roky
J0WI
b344ff1a67
Refactor getEncryptionModule routine
před 3 roky
John Molakvoæ (skjnldsv)
215aef3cbd
Update php licenses
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
před 3 roky
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>
před 4 roky
Christoph Wurst
85e369cddb
Fix multiline comments
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
před 4 roky
Christoph Wurst
1a9330cd69
Update the license headers for Nextcloud 19
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
před 4 roky
Christoph Wurst
b80ebc9674
Use the short array syntax, everywhere
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
před 4 roky
Christoph Wurst
5bf3d1bb38
Update license headers
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
před 4 roky
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>
před 6 roky
Morris Jobke
0eebff152a
Update license headers
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
před 6 roky
Joas Schilling
1c0bffe87f
Fix translations
Signed-off-by: Joas Schilling <coding@schilljs.com>
před 7 roky
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>
před 7 roky
Joas Schilling
ba87db3fcc
Fix others
před 8 roky
Lukas Reschke
aba539703c
Update license headers
před 8 roky
Roeland Jago Douma
d379157289
Move \OC\Encryption to PSR-4
před 8 roky
Thomas Müller
50e20e531e
Introduce isReadyForUser and verify in file transfer ownership - fixes #23786
před 8 roky
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.
před 8 roky
Thomas Müller
682821c71e
Happy new year!
před 8 roky
Morris Jobke
b945d71384
update licence headers via script
před 8 roky
Bjoern Schiessle
289e9130f3
make system root of key storage configurable
před 9 roky
Morris Jobke
f63915d0c8
update license headers and authors
před 9 roky
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.
před 9 roky
Thomas Müller
259b6ac2c1
Fixing grammar - refs https://www.transifex.com/projects/p/owncloud/translate/#en_GB/lib/50330746
před 9 roky
Joas Schilling
9a4040c7ca
Move the storage wrapping into a testable method
před 9 roky
Bjoern Schiessle
5549641f1f
improve error messages displayed to the user
před 9 roky
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
před 9 roky
Jan-Christoph Borchardt
35292eb66c
rename to 'Default encryption module'
před 9 roky
Joas Schilling
d600955a51
Make getDefaultModuleId public and get module protected
před 9 roky
Joas Schilling
a09df6d453
Verify that the encryption module exists before setting it
před 9 roky
Bjoern Schiessle
2990b0e07e
update share keys if a file is moved to a shared folder
před 9 roky
Thomas Müller
225cde2183
pass KeyStorage via ctor
před 9 roky
Joas Schilling
4d238c3949
Fix display name of encryption modules
před 9 roky
Bjoern Schiessle
7d4b1b52d0
always create a new instance of the encryption module
před 9 roky
Bjoern Schiessle
b25c06f576
detect system wide mount points correctly
před 9 roky
Bjoern Schiessle
e3d77c4b01
add migration script from old encryption to new one
před 9 roky
Thomas Müller
a4483243ac
fixing license headers - encryption code related
před 9 roky
Bjoern Schiessle
a74ee67476
don't wrap share storages
před 9 roky
Thomas Müller
664b2bb7af
cleaning up exception mess
před 9 roky
Bjoern Schiessle
83cb382b3f
pass file helper to encryption wrapper
před 9 roky
Thomas Müller
a98b7dbf6f
Fix double registration of encryption module
před 9 roky
Thomas Müller
4db75e3407
Setting up the encryption wrapper in a setup hook - temporarily fixes the wrapping order
před 9 roky
Bjoern Schiessle
a85e2e0bfd
make recovery settings work
před 9 roky
Bjoern Schiessle
e2f714263f
fix encryption manager to handle more than one encryption module
před 9 roky
Bjoern Schiessle
ff9c85ce60
implement basic encryption functionallity in core to enable multiple encryption modules
před 9 roky