Truncating encrypted files viability #1828
-
Hello Gramine team, The issue we are currently facing happens anytime the application itself tries to truncate encrypted files to an arbitrary size that is not zero. According to our digging we believe it's using the package os/File from Golang which has the following details in documentation: From our understanding, we believe it's using the underlying file operation primitives truncate or ftruncate, according to the docs in Gramine we have found the following: "Gramine supports file truncation (via truncate() and ftruncate()). There is one exception currently: shrinking encrypted files to arbitrary size is not supported (only shrink-to-zero is supported)." Also doing some reading on the 27 February notes, it seems there is some discussion going related with the truncate operations and encrypted files. We would like to know if there are plans to support this specific scenario (truncate encrypted files to arbitrary size [non-zero] ) in the future or not at all, since it seems a blocker for the time being, unless we fork/adapt the underlying app being 'graminised'. Thank you again for your support! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
Hi @tiagorvmartins, thanks for your question!
Pls take a look at #1785 and see if it serves your requirements. |
Beta Was this translation helpful? Give feedback.
I think we should be able to include it in our next (v1.7) release which will possibly happen in late May (not confirmed yet).
Yes.