snarfed / bridgy

📣 Connects your web site to social media. Likes, retweets, mentions, cross-posting, and more...
https://brid.gy
Creative Commons Zero v1.0 Universal
703 stars 52 forks source link

Encrypt (with salt) tokens in datastore #1647

Open snarfed opened 6 months ago

snarfed commented 6 months ago

We should encrypt (with salt) the tokens in the datastore, with a static key deployed with the app. Tokens are already encrypted at rest, and this isn't a silver bullet against other attacks, but it defends against SQL injection style attacks that exfiltrate keys through the app itself. (We're not subject to SQL injection since we don't use SQL, but the broader idea still applies.)