TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Ask HN: How do you encrypt data on virtual machines in the cloud?

3 点作者 cyanic超过 3 年前
Hi HN,<p>I am looking for a standard or at least widely used way to encrypt data at rest on VMs running in the cloud. I am also interested in reasons why this isn&#x27;t the standard way of doing things.<p>I recently started working on a project where I potentially need to cache customer data on disk. At this point, the simplest and the most portable option for me is to run services on cloud VMs. I have experience setting up full disk encryption on dedicated servers, but my methods are not scalable enough for me to take full advantage of the cloud.<p>As the cloud provider has full control of the instance, I don&#x27;t consider them a threat in this context. I&#x27;m well aware that they would be able to extract keys from memory or perform a man in the middle attack on the initial connection used to unlock the encrypted partition. What I am concerned about is that data might be accessible if I delete the instance or if the SSD storing the data gets stolen or is sent to be recycled.<p>My attempts to find a good solution revolved around modifying a debian cloud image and writing to disk from initramfs, but there are many ways to approach the problem and I&#x27;m not sure which one is the least hackish. What I hope to achieve is to be able to handle everything using a script with minimal user interaction, through SSH. Although I think that I would be able to do write the script myself, I&#x27;d like to avoid reinventing the wheel.<p>What is your advice on encrypting cloud VMs?

1 comment

verdverm超过 3 年前
Afaik, the major clouds use encryption transparently. Google Cloud has some good docs on this. There are private compute type VMs and customer supplied key options as well.<p><a href="https:&#x2F;&#x2F;cloud.google.com&#x2F;security&#x2F;encryption&#x2F;default-encryption" rel="nofollow">https:&#x2F;&#x2F;cloud.google.com&#x2F;security&#x2F;encryption&#x2F;default-encrypt...</a><p><a href="https:&#x2F;&#x2F;cloud.google.com&#x2F;compute&#x2F;confidential-vm&#x2F;docs&#x2F;about-cvm" rel="nofollow">https:&#x2F;&#x2F;cloud.google.com&#x2F;compute&#x2F;confidential-vm&#x2F;docs&#x2F;about-...</a><p>My advice would be to use the cloud provided solutions and not roll your own setup. They have sufficient protections and offerings for healthcare companies and GovCloud if you need to go that far.
评论 #28496867 未加载