r/cloudcomputing • u/m1gh7ym0 • Sep 27 '22
Always-encrypted cloud computing
Constellation is the first Confidential Kubernetes.
Constellation shields your entire Kubernetes cluster from the underlying cloud infrastructure. Everything inside is always encrypted, including at runtime in memory. For this, Constellation leverages a technology called confidential computing and more specifically Confidential VMs.
Learn more on GitHub: https://github.com/edgelesssys/constellation
3
Upvotes
View all comments
Show parent comment
1
u/m1gh7ym0 Oct 27 '22
Okay, let me rephrase it a bit.
An HSM is a hardware chip/module that in most cases acts as an extension of the KMS. It can securely store keys (KEK) and perform the two types of operations A and B. Essentially an HSM extends a KMS with hardware protection.ypto operations within the KMS using the KEK.
An HSM is a hardware chip/module that in most cases acts as an extension to the KMS. It can securely store keys (KEK) and perform the two types of operations A and B. Essentially an HSM extends a KMS with hardware protection.
This makes a lot of sense. But is inherently different from Confidential Computing and trusted execution environments (TEEs). In a way TEEs can be seen as an HSM for your entire CPU, so you can perform arbitrary operations inside such a secure environment.
For example, let's say you have the following scenario:
Is your data protected while being processed by the server? No, it's encrypted via TLS when transferred, than resides in plaintext until being encrypted via the KMS. It's encrypted again when being stored (encrypted) at rest in the DB. Can a client verify that it's data is being protected via the encrypted at rest? No. Can the client verify the identity of the Server? No
Now imagine the Server runs inside a TEE. The client can use remote attestation to verify the identity of the server. That means exactly the code that is running there. When the data is processed inside the server, it is always encrypted in memory, even before being encrypted via the KMS. The client know that fact before transferring the data due to the remote attestation. So you have an always-encrypted, always-verifiable scenario.
Hope this makes it a bit clearer why I see a fundamental difference between those two scenarios.