SES到SNS正在发送加密内容

发布于 2025-02-07 11:07:29 字数 357 浏览 0 评论 0原文

我设置了AWS SES接收电子邮件并发布到SNS主题。然后,该主题触发了一个lambda事件来处理电子邮件。

我的问题是,给出的lambda的事件具有所有信息,但是电子邮件的“内容”(即电子邮件主体)已加密。我看不到设置加密密钥的任何时候。我还尝试使用boto3解密,并传递任何有意义的钥匙,使AWS自动应用程序都没有使用。

client = boto3.client('kms')

response = client.decrypt(
    CiphertextBlob=content,
    KeyId='Key_id_here',
    EncryptionAlgorithm='SYMMETRIC_DEFAULT'
)

I've setup aws SES to receive emails and publish to an SNS topic. The topic then triggers a lambda event to process the email.

My issue is that the event given to the lambda has all the information but the 'content' of the email (IE: the email body) is encrypted. I do not see at any point where I had set an encryption key. I've also tried to decrypt using boto3 and passing any keys that made sense for AWS to have auto applied none of which worked.

client = boto3.client('kms')

response = client.decrypt(
    CiphertextBlob=content,
    KeyId='Key_id_here',
    EncryptionAlgorithm='SYMMETRIC_DEFAULT'
)

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文