-
Notifications
You must be signed in to change notification settings - Fork 211
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
Enhance file cache to encrypt data written to the cache file #1192
Conversation
@jiangliu , a new test job has been submitted. Please wait in patience. The test job url: https://tone.openanolis.cn/ws/nrh4nnio/test_result/63312 |
A sample
|
@jiangliu , the code has been updated, so a new test job has been submitted. Please wait in patience. The test job url: https://tone.openanolis.cn/ws/nrh4nnio/test_result/63313 |
@jiangliu , the code has been updated, so a new test job has been submitted. Please wait in patience. The test job url: https://tone.openanolis.cn/ws/nrh4nnio/test_result/63314 |
@jiangliu , the code has been updated, so a new test job has been submitted. Please wait in patience. The test job url: https://tone.openanolis.cn/ws/nrh4nnio/test_result/63315 |
@jiangliu , the code has been updated, so a new test job has been submitted. Please wait in patience. The test job url: https://tone.openanolis.cn/ws/nrh4nnio/test_result/63316 |
@jiangliu , the code has been updated, so a new test job has been submitted. Please wait in patience. The test job url: https://tone.openanolis.cn/ws/nrh4nnio/test_result/63317 |
@jiangliu , The CI test is completed, please check result:
Congratulations, your test job passed! |
@jiangliu , the code has been updated, so a new test job has been submitted. Please wait in patience. The test job url: https://tone.openanolis.cn/ws/nrh4nnio/test_result/63333 |
@jiangliu , The CI test is completed, please check result:
Congratulations, your test job passed! |
@jiangliu , The CI test is completed, please check result:
Congratulations, your test job passed! |
@jiangliu , The CI test is completed, please check result:
Congratulations, your test job passed! |
Please add e2e tests, instead of in manual way~~~~ |
It has long dependency chain to enable unit test for this feature. We need to enhance nydus/snapsotter/converter, nydusify and smoke:) |
@jiangliu , the code has been updated, so a new test job has been submitted. Please wait in patience. The test job url: https://tone.openanolis.cn/ws/nrh4nnio/test_result/67367 |
@jiangliu , The CI test is completed, please check result:
Congratulations, your test job passed! |
Add method and flag to indicate that a data chunk is encrypted or not. Signed-off-by: Jiang Liu <gerry@linux.alibaba.com>
Add data fields to BlobInfo and CacheFile for chunk encryption. Signed-off-by: Jiang Liu <gerry@linux.alibaba.com>
Introduce struct CipherContext for data encryption/decryption. Signed-off-by: Jiang Liu <gerry@linux.alibaba.com>
Add encryption configuration to file cache, so we can encrypt data written to the local cache file. Signed-off-by: Jiang Liu <gerry@linux.alibaba.com>
Encrypt data before writing data to local cache file. Signed-off-by: Jiang Liu <gerry@linux.alibaba.com>
@jiangliu , the code has been updated, so a new test job has been submitted. Please wait in patience. The test job url: https://tone.openanolis.cn/ws/nrh4nnio/test_result/67719 |
@jiangliu , The CI test is completed, please check result:
Congratulations, your test job passed! |
pub enable_convergent_encryption: bool, | ||
/// Key for data encryption, a heximal representation of [u8; 32]. | ||
#[serde(default)] | ||
pub encryption_key: String, |
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.
Does this need to be persisted in local disk?
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.
Hope we can pass it by API next.
Enhance the FileCache subsystem to optionally encrypt data written to the local cache file.