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

SNS topics should be encrypted too #165

Open
jdheyburn opened this issue Aug 27, 2020 · 0 comments
Open

SNS topics should be encrypted too #165

jdheyburn opened this issue Aug 27, 2020 · 0 comments

Comments

@jdheyburn
Copy link

Background

Currently SNS topics are not encrypted and thus are flagged as a security issue.

Desired Change

An equivalent KMS key generated for SNS. Here is an example pulled from kms.tf to encrypt SQS.

// KMS key for server-side encryption (SSE) of SQS
resource "aws_kms_key" "sse_sqs" {
  description         = "BinaryAlert Server-Side Encryption - SQS"
  enable_key_rotation = true

  tags = {
    Name = var.tagged_name
  }

  policy = data.aws_iam_policy_document.kms_allow_s3.json
}

resource "aws_kms_alias" "sse_sqs_alias" {
  name          = "alias/${var.name_prefix}_binaryalert_sse_sqs"
  target_key_id = aws_kms_key.sse_sqs.key_id
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant