ministryofjustice / cloud-platform

Documentation on the MoJ cloud platform
MIT License
87 stars 44 forks source link

Enable KMS encryption on notifications from S3 to SQS #3128

Closed markreesmoj closed 3 years ago

markreesmoj commented 3 years ago

Service name

HMPPS Workload

Service environment

Currently present in development environment

Impact on the service

Provide real impact description on the service mentioned. It can include any potential blockers for the product team.

Not essential but we would like to encrypt the notifications S3 sends to SQS when a file is uploaded. The impact is that a security review might raise the lack of encryption as a concern

https://github.com/ministryofjustice/cloud-platform-environments/pull/5354/files

Problem description

When we enable kms encryption as per

https://github.com/ministryofjustice/cloud-platform-environments/pull/5354/files

notifications are not sent to the queue when an item is changed in the bucket

Steps to reproduce

Perhaps this is the problem?

https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-key-management.html#compatibility-with-aws-services

Contact person

Slack

manage_a_workforce_dev

@carloveo @markrees

poornima-krishnasamy commented 3 years ago

This is fixed in release 4.4. Please use encrypt_sqs_kms = true to enable KMS encryption.