Av/315 single key encryption for a folder#361
Conversation
cdawei
left a comment
There was a problem hiding this comment.
The changes look good, thanks @anushkavidanage.
I can read/write a file encrypted with a ancestor directory's encryption key in the example app.

There are a few minor points as described below, for your consideration.
| final normalizedDirPath = | ||
| await normalizeFilePath(inheritedFrom, basePath); | ||
| final parentDirUrl = await getDirUrl(normalizedDirPath); | ||
| content = await getEncTTLStr( |
There was a problem hiding this comment.
Just a minor point: it seems there's opportunity to just call getEncTTLStr() once instead of also repeating it below at line 242?
There was a problem hiding this comment.
Tanks Dawei, all the comments are fixed except for this one. Here, we have two separate variables assigned in the two instances of function call, normalizedDirPath and parentDirUrl. And the normalizedDirPath is checked within the function to see whether the resource is inherited from this or not. I don't see a clear way of generalising this? Any ideas?
There was a problem hiding this comment.
Hi Anushka, this is not essential but what in my head is something showing here av/315_single_key_encryption_for_a_folder...315_dc_suggestions
Feel free to incorporate (discard) these minor changes if they (don't) make sense to you :-)
|
Hi @anushkavidanage. I only have the following observation: I got an error for the following case,
The path |
srodriguez142857
left a comment
There was a problem hiding this comment.
The functionality is working as expected.
|
Hi @srodriguez142857 and @cdawei, I had a look through the use cases we discussed today morning and it looks like we need a bit of changes to enable that. Also, there are few things that we might need to discuss further as well. I created a new issue around this. Please have a look: #403 |
…single_key_encryption_for_a_folder



Pull Request Details
What issue does this PR address
Read and Write POD function changes to enable inheritance for resources.
Link to associated issue: SOLIDPOD: Write and Read POD functions with inheritance #356
Testing
To test this PR, please run the
DemoPodapp (example app) insolidpod. On the home page, you will see two new buttons under the section ACL Inheritance, calledCreate Resource with ACL InheritanceandRead Resource with ACL Inheritance. Use those two UIs to test the writing and reading of resources with inheritance.Checklist
Complete the check-list below to ensure your branch is ready for PR.
Flutter Style Guide: https://survivor.togaware.com/gnulinux/flutter-style.html
make preporflutter analyze lib)Finalising
Once PR discussion is complete and 2 reviewers have approved: