AWS - Data Protection with SNS
Amazon Simple Notification Service (Amazon SNS) sends notifications two ways, A2A and A2P.
A2A provides high-throughput, push-based, many-to-many messaging between distributed systems, microservices, and event-driven serverless applications.
These applications include Amazon Simple Queue Service (SQS), Amazon Kinesis Data Firehose, AWS Lambda, and other HTTPS endpoints. A2P functionality lets you send messages to your customers with SMS texts, push notifications, and email.
In this post, we will see how to protect sensitive data from being sent to the endpoints.
We already have a TOPIC and EMAIL subscription in place.
Let's test it by sending a message with a US mobile number.
And we got the message.
Let's create a "Data Protection Policy" with DENY for USA Mobile Numbers.
Edit the TOPIC.
The Deny Statement has predefined Data Identifiers like Phone numbers and others. In the above statement, I have added a DENY for PHONE NUMBER US.
DENY DIRECTION can be INBOUND and OUTBOUND.
INBOUND -> DENY messages coming to the SNS.
OUTBOUND -> DENY messages sent to the endpoint (Email).
So, If I publish the same message it will not be sent. If Cloudwatch is configured (Audit) you will see a log for the same.
Comments
Post a Comment