Skip to content
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

File encryption #43

Open
boudo opened this issue Mar 23, 2021 · 9 comments
Open

File encryption #43

boudo opened this issue Mar 23, 2021 · 9 comments

Comments

@boudo
Copy link

boudo commented Mar 23, 2021

ego

Hi,
Can I encrypt the test.txt file with EGo so that it is only accessible through the enclave or can I put it directly in the enclave?

@thomasten
Copy link
Member

Hi,
yes, you can encrypt the data before writing it to the file with the SealWith... functions from https://pkg.go.dev/github.com/edgelesssys/ego/ecrypto. This will use the SGX seal key, so it can only be decrypted by the enclave.
One of the next versions of EGo will include an in-enclave-memory filesystem. Then you can put it directly in the enclave. You can already achieve this manually by using the MemMapFs from https://github.com/spf13/afero.

@boudo
Copy link
Author

boudo commented Mar 24, 2021

Hi,
Thank you. I tested with SealWith... functions and also with afero, everything works fine.
For one of the next versions of EGo, we must understand that there will be a configuration file that allows to tell EGo to put the test.txt file in the enclave without modifying the source code of the application?

@thomasten
Copy link
Member

For one of the next versions of EGo, we must understand that there will be a configuration file that allows to tell EGo to put the test.txt file in the enclave without modifying the source code of the application?

Yes, that will be possible. There is already a brief documentation how this will work:
https://github.com/edgelesssys/ego/blob/master/doc/ego_cli.md#enclave-configuration-file
So you will be able to mount some paths as memfs and writing to these will never leave the enclave.

@boudo
Copy link
Author

boudo commented Mar 24, 2021

Great, thank you for your answers.
It is very interesting.

@thomasten
Copy link
Member

@boudo The memfs feature is now available in v0.2

@boudo
Copy link
Author

boudo commented May 3, 2021

Hi @thomasten, I suppose that the next version will support data sealing for hostfs without modifying the application code ?

@thomasten
Copy link
Member

Yes, we plan to add this feature, but don't have an ETA yet.

@fnerdman
Copy link

@thomasten Is there an ETA yet for data sealing for hostfs without modifying the application code ?

@thomasten
Copy link
Member

@lead4good unfortunately no. It's not being worked on and not scheduled for the near future.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants