Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

default SNS topic encryption for Config and Alarm topics #229

Open
php-workx opened this issue Oct 9, 2021 · 3 comments
Open

default SNS topic encryption for Config and Alarm topics #229

php-workx opened this issue Oct 9, 2021 · 3 comments
Labels
enhancement New feature or request

Comments

@php-workx
Copy link

Hey,

when running this module without settings for alarm_sns_topic_kms_master_key_id and config_sns_topic_kms_master_key_id it will result in failing the check [SNS.1] This control checks whether an Amazon SNS topic is encrypted at rest using AWS KMS for both SNS topics (Config and Alarm).

One can get the check pass with a configuration like this:

  alarm_sns_topic_kms_master_key_id  = "alias/aws/sns"
  config_sns_topic_kms_master_key_id = "alias/aws/sns"

Would it make sense to use the AWS managed KMS key alias/aws/sns as a default instead of no encryption at all?
eg here:

In a fresh AWS account there are no AWS managed KMS keys at all so I'm not entirely sure if it would work for the very first SNS topic created. We can certainly figure that out if you think this would be a reasonable default setting.

Thanks so much!

@nozaq
Copy link
Owner

nozaq commented Oct 9, 2021

@php-workx Thank you for your suggestion! The goal is to create one multi-region CMK for encrypting SNS topics across all regions, but it requires the AWS provider to suppor multi-region key resource (upstream ticket already exists, but seems it's taking time).

In the mean time, using the AWS managed key by default would totally make sense for me 👍🏼

refs: #218

@nozaq nozaq added the enhancement New feature or request label Oct 9, 2021
@tomi-bigpi
Copy link

tomi-bigpi commented Oct 13, 2021

Heads up on this change: AWS Chatbot will fail to send alerts if the SNS topic is encrypted.

If you have server-side encryption turned on for your Amazon SNS topics, they will not appear in your chat rooms. You can resolve this by turning off server-side encryption for your Amazon SNS topics.

Reference: https://docs.aws.amazon.com/chatbot/latest/adminguide/chatbot-troubleshooting.html

@nozaq
Copy link
Owner

nozaq commented Oct 16, 2021

@tomi-bigpi Thanks for the information, noted📝 There should be the way to opt-out the topic encryption even if we set a default encryption key.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants