Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个表单,用户将在其中输入 AWS 帐户名称、AWS 访问密钥和 AWS 密钥,然后单击提交以将信息添加到数据库中的表中。在将密钥添加到数据库之前,我将如何验证它们?
不仅确认格式而且确认密钥有效性的唯一可靠方法是使用它们执行操作。
使用 EC2 API 做一些简单的事情,在将它们存储到数据库之前需要所有三个因素。
附带说明,请确保您正确保护此数据库。如果它被泄露,那么与您将凭证存储到的 AWS 账户一样多。