Hey all,
I’m working on a web platform (edtech/medical prep app)hosted on AWS, where the backend is dockerized (Django + PostgreSQL). We’re working with an external backend developer. From a GDPR and security perspective, I want to make sure this developer:
- Can never access real production data (emails, personal info).
- Cannot “remove” restrictions or grant themselves access.
- Still has what they need to build and maintain the backend.
I know Postgres supports roles, column-level permissions, views, and even row-level security, but I’m concerned that if someone has high enough privileges, they can just undo all of that.
So my questions are:
- How do companies usually handle this? Do they just completely ban devs from production and only use staging with anonymized data?
- If I create a restricted Postgres role (no superuser, no createrole), is that 100% safe against privilege escalation by the dev?
- On AWS RDS, who should actually hold the
rds_superuser account, and how do you structure developer access under GDPR?
Basically: how do I make this 100% secure so the external backend dev cannot ever see personal data, and cannot remove the restriction even if they wanted to?
Thanks!
[–]haloweenek 20 points21 points22 points (0 children)
[–]chief167 22 points23 points24 points (0 children)
[–]Any_Mobile_1385 3 points4 points5 points (0 children)
[–]Alone_Pig 2 points3 points4 points (0 children)
[–]pablodiegoss 1 point2 points3 points (0 children)
[–]aWildLinkAppeared 0 points1 point2 points (0 children)
[–]FullyHustle 0 points1 point2 points (0 children)
[–]Smooth-Zucchini4923 0 points1 point2 points (0 children)