How can I securely process and encrypt sensitive data without exposing it to Cloud Infrastructure?

July 13, 2025 5 answers
Asked by ice.age.exhibit
I'm handling sensitive data that needs to be processed by a large language model (LLM) and then encrypted into a storage bucket. I want to avoid using the default KMS (Key Management Service) for encryption, and I need to ensure that this data is safely decrypted on the client-side using something like webcrypto. The main concern is that this data should not be exposed to any cloud infrastructure during this process. Can anyone validate my approach or provide suggestions on how to achieve this securely?

Answers

satin_finish
For added assurance, think about performing layer 7 encryption within your app. If you have concerns about trusting AWS, this can give you more control over your data!
Reply to this answer
apo_620km
You can definitely use a KMS Customer Master Key (CMK) to encrypt your objects in S3 while keeping everything secure. Just make sure your key management is in place to prevent exposure.
Reply to this answer
_elevator pitch
If you trust AWS, using KMS with a CMK can work well without exposing the data to the cloud. You might also want to look into client-side encryption for added security. AWSโ€™s SSE-C (Server-Side Encryption with Customer-Provided Keys) might be another layer to consider, as they never store the encryption key.
Reply to this answer
fresco__study
One thing to consider is how you'll handle encryption while the data is being processed by the LLM. That's where it gets tricky because encryption in memory is a bigger challenge compared to encrypting storage or transit.
Reply to this answer
reefTemp_26C
If you're not hosting your own private LLM instance, then using a public one might be your weakest link in security. Just something to think about.
Reply to this answer

Add your answer

Answers are reviewed before publication.

Related Discussions