adorsys / datasafe

Secure, Encrypted and Versioned Data Storage Library
https://adorsys.github.io/datasafe/
GNU Affero General Public License v3.0
55 stars 23 forks source link

example with partialpathEncryption #352

Closed AssahBismarkabah closed 1 month ago

AssahBismarkabah commented 1 month ago

Add documentation and refactor the 'Example' with 'partialpathEncryption'and 'Moved Files'

sonarcloud[bot] commented 1 month ago

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarCloud

codecov[bot] commented 1 month ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 86.76%. Comparing base (32d36bc) to head (698393b). Report is 17 commits behind head on develop.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## develop #352 +/- ## ========================================== Coverage 86.76% 86.76% Complexity 1 1 ========================================== Files 164 164 Lines 3348 3348 Branches 217 217 ========================================== Hits 2905 2905 Misses 309 309 Partials 134 134 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

AssahBismarkabah commented 1 month ago

https://github.com/adorsys/datasafe/blob/develop/datasafe-examples/datasafe-examples-business/src/test/java/de/adorsys/datasafe/examples/business/filesystem/RuntimeOverrideOperationsTest.java the encryption is completely disabled here.

@Motouom The partial path encryption implementation intentionally leaves the first segment of the path unencrypted to balance readability and security for example,

Directory structure: users/myuserid/private/files/usercontrolled.aes File: /usercontrolled.aes In this case, users remains unencrypted, providing easy navigation, files andusercontrolled.ae are encrypted, hiding the nature of documents. this way files are quickly located while still protecting sensitive information.