mileswwatkins / Mouse

A chatbot to provide information to backcountry hikers via satellite SMS
4 stars 1 forks source link

Add phone number whitelist #3

Open mileswwatkins opened 2 years ago

mileswwatkins commented 2 years ago

Twilio doesn't allow a blocklist or whitelist for SMS/MMS functionality, so the best we can do is not reply to any phone numbers that aren't on a pre-approved list. This list, for privacy's sake, could be stored on a password-protected AWS S3 bucket, or even just an S3 file that's public but has an unguessable path/URI. Either way, the credentials for acting this list would need to be stored on Twilio Functions as environment variable secrets.