-
Notifications
You must be signed in to change notification settings - Fork 12
Integrate HSM changes to encryption #90
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
f496b35 to
5fea266
Compare
Codecov Report
@@ Coverage Diff @@
## master #90 +/- ##
============================================
+ Coverage 62.75% 64.28% +1.53%
- Complexity 568 594 +26
============================================
Files 30 33 +3
Lines 2081 2201 +120
============================================
+ Hits 1306 1415 +109
- Misses 775 786 +11
Continue to review full report at Codecov.
|
Codecov Report
@@ Coverage Diff @@
## master #90 +/- ##
============================================
+ Coverage 62.75% 64.26% +1.51%
- Complexity 572 598 +26
============================================
Files 30 33 +3
Lines 2089 2211 +122
============================================
+ Hits 1311 1421 +110
- Misses 778 790 +12
Continue to review full report at Codecov.
|
5fea266 to
a5e451b
Compare
|
@phil-davis Rebased the PR. Thanks for the helping hand. |
|
PVince81
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks fine to me apart from some minor things
@butonic quick look ?
b9b482d to
29c98ec
Compare
|
@sharidas can you test it ? #90 (comment) would also be good to have a docs ticket that explain how to set this up with the mock HSM for testing |
|
Updating my tests here... regarding #90 (comment) Regarding
The export-masterkey
decrypt
|
29c98ec to
c4fe345
Compare
c4fe345 to
d2eda5d
Compare
lib/AppInfo/Application.php
Outdated
| $server->getUserSession(), | ||
| $server->getConfig(), | ||
| $server->getL10N($c->getAppName())); | ||
| $hsmUrl = $this->config->getAppValue('encryption', 'hsm.url'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just do document ... this causes the hsm.url app config to be two things:
- the url for the hsm endpoint
- the toggle for using an hsm or the internal crypto implementation
these are two different things and I have a bad feeling about it. Maybe an additional property crypto.engine with internal and hsm makes more sense.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
a second key would be better, yes. @sharidas please add
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated the PR, by setting https://github.com/owncloud/encryption/pull/90/files#diff-b8a11151e44bcffc222c5fddc9ab92c9R133
Have also verified that it works with and without hsm.
|
@PVince81 a detailed setup is in the hsmdaemon Readme.md and Installation.md I would merge and deal with the todos if we get opportunity for it. |
|
@sharidas please check the test failures |
|
Most likely this failure https://drone.owncloud.com/owncloud/encryption/479/576 has nothing to do with my change. Because the failure happens in scenario https://github.com/owncloud/core/blob/master/tests/acceptance/features/webUISharingExternal/federationSharing.feature#L293 which has a tag |
d2eda5d to
74b6ed3
Compare
74b6ed3 to
da1ed90
Compare
|
I have updated the PR based on the requests made: |
|
restarted cancelled build |
|
can't restart the build https://drone.owncloud.com/owncloud/encryption/494/1297 :-( maybe rebase ? |
Rebasing it. |
da1ed90 to
d5fb771
Compare
Integrate HSM changes to encryption. Signed-off-by: Sujith H <sharidasan@owncloud.com>
4a50f84 to
994b361
Compare
|
Backport to stable10: owncloud/core#34527 |
Integrate HSM changes to encryption
Signed-off-by: Sujith H sharidasan@owncloud.com