WIP: remove master key from core dump#359
WIP: remove master key from core dump#359salieri11 wants to merge 84 commits intochrisphoffman:wip-fscryptfrom
Conversation
chrisphoffman
left a comment
There was a problem hiding this comment.
I wanted to verify with pointers and padding that key is preserved. I'm able to write on ceph-fuse and read correctly on kernel client.
Can you share your steps to verify the key was excluded in core dump? Is it possible you can include it as a test?
Well for manual testing I can use |
4bb7c3d to
8341cca
Compare
83c27c9 to
a827329
Compare
a827329 to
4fe1328
Compare
f330840 to
53006c4
Compare
Signed-off-by: Yehuda Sadeh <ysadehwe@ibm.com>
Signed-off-by: Christopher Hoffman <choffman@redhat.com>
Signed-off-by: Christopher Hoffman <choffman@redhat.com>
Signed-off-by: Christopher Hoffman <choffman@redhat.com>
in dir when unlocked. Client should not be able to read/write the encrypted payload. Signed-off-by: Christopher Hoffman <choffman@redhat.com>
Signed-off-by: Christopher Hoffman <choffman@redhat.com>
Signed-off-by: Christopher Hoffman <choffman@redhat.com>
it put_cap_ref and it didn't happen. Issue with bool need_read. Fixes: https://tracker.ceph.com/issues/64307 Signed-off-by: Christopher Hoffman <choffman@redhat.com>
When creating symlink, ensure symlink_plain is set in fscrypt and non-fscrypt cases. Fixes: https://tracker.ceph.com/issues/64691 Signed-off-by: Christopher Hoffman <choffman@redhat.com>
Signed-off-by: Christopher Hoffman <choffman@redhat.com>
Signed-off-by: Christopher Hoffman <choffman@redhat.com>
Fix the logic in need read start/end. We need to make sure that a whole block is read when a rmw is issued, regardless if it starts at offset 0 or not. Change size that may be read from where offset starts to the whole fscrypt block. Fixes: https://tracker.ceph.com/issues/64819 Signed-off-by: Christopher Hoffman <choffman@redhat.com>
During a lookup of fscrypt enabled symlink, use target fscrypt info. This must be used because enc key for each file is derived from master_key+nonce. Fixes: https://tracker.ceph.com/issues/65615 Signed-off-by: Christopher Hoffman <choffman@redhat.com>
Fscrypt rmw fails when end of a write lines up with end of a block or end of the file. Fixes: https://tracker.ceph.com/issues/65745 Signed-off-by: Christopher Hoffman <choffman@redhat.com>
Only append pbl to bl if encrypted case. Fixes: https://tracker.ceph.com/issues/65964 Signed-off-by: Christopher Hoffman <choffman@redhat.com>
Signed-off-by: Christopher Hoffman <choffman@redhat.com>
Fixes: https://tracker.ceph.com/issues/66038 Signed-off-by: Christopher Hoffman <choffman@redhat.com>
Signed-off-by: Christopher Hoffman <choffman@redhat.com>
Signed-off-by: Christopher Hoffman <choffman@redhat.com>
Fixes: https://tracker.ceph.com/issues/64159 Signed-off-by: Christopher Hoffman <choffman@redhat.com>
Map ENOKEY return value from fuse_ll_open to itself, instead of returning EIO by default and printing misleading error message to the user. Fixes: https://tracker.ceph.com/issues/71230
Signed-off-by: Igor Golikov <igolikov@ibm.com>
Signed-off-by: Igor Golikov <igolikov@ibm.com>
to make sure the memory region with master key is not swapped to the disk Signed-off-by: Igor Golikov <igolikov@ibm.com>
3782765 to
62e58e5
Compare
abd57cf to
7f478c5
Compare
|
This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved |
|
Any updates on this @salieri11? |
fbdfa94 to
e1e2d48
Compare
d546e04 to
ef6003e
Compare
44c7eb3 to
2df7f4f
Compare
a3a72ec to
78dca14
Compare
6e0df0c to
48ad676
Compare
0fc7547 to
6ec36b4
Compare
This PR removes the master key when the user space encryption is used with CEPH FS.
Fixes https://tracker.ceph.com/issues/69205
Contribution Guidelines
To sign and title your commits, please refer to Submitting Patches to Ceph.
If you are submitting a fix for a stable branch (e.g. "quincy"), please refer to Submitting Patches to Ceph - Backports for the proper workflow.
When filling out the below checklist, you may click boxes directly in the GitHub web UI. When entering or editing the entire PR message in the GitHub web UI editor, you may also select a checklist item by adding an
xbetween the brackets:[x]. Spaces and capitalization matter when checking off items this way.Checklist
Show available Jenkins commands
jenkins retest this pleasejenkins test classic perfjenkins test crimson perfjenkins test signedjenkins test make checkjenkins test make check arm64jenkins test submodulesjenkins test dashboardjenkins test dashboard cephadmjenkins test apijenkins test docsjenkins render docsjenkins test ceph-volume alljenkins test ceph-volume toxjenkins test windowsjenkins test rook e2e