This discussion is not very interesting from a security perspective. I tuned out at “cloud”. If it’s not in your physical possession, it’s not your computer. If it’s not your computer, then whoever administers the computer, or whoever [points a gun at/gives enough money to] the administrator of that system can access whatever you put on that system. If a “cloud” or “service” is involved, then you can trivially use th…
If i'm reading this page correctly, AMD is working on something that would allow you to run trusted code that not even someone with physical access to the hardware could read (without breaking this system). https://www.amd.com/en/processors/epyc-confidential-computin... And this tech is already implemented by GCP: https://cloud.google.com/confidential-computing > With the confidential execution environments provided…
You also have to trust that AMD generated and have always managed the encryption keys for that system properly and in accordance with their documentation.
And are you even sure that you’re actually running on an AMD system? If the system is in the cloud, then it’s hard to be sure what is executing your code.
And are you sure that your code didn’t accidentally break the security guarantees of the underlying system?
I have worked on all these problems in my day job, working on HSMs. At the end of the day there are still some leaps of faith.