Production database access and separation of duties
What are the production database access policies like where you work? Do your developers have direct access to production databases for troubleshooting, or do they have to ask a DBA to pull data for them? If they can access them directly, is there an approval process they're supposed to follow before they do?
Posted Sep 25, 2018, 5:35 PM UTC
12
We would have some production replicated to a read only development slave. This wasn't 100% production to hide sensitive things like user information/PII. Since it was kind of a shared resource though we would get team X complaining about replication behind behind because team Y was running a really horrible select with subselects not using indexes or what ever that ended blocking replication....
Eventually implemented an auto kill policy for queries running over a certain amount of time.
This is a reason you don't want to give them even read only access to real production. Certainly not write.... Our production databases were network segmented to production app network interfaces at the layer 3 level so even if a DBA wanted to say grant select on db.* to 'joe'@'192.168.1.1' or what not for a dev, it wouldn't work.
Thanks for the info. I've heard a few horror stories about long-running or expensive queries killing performance in production, so a replica seems like a good safeguard.
With the network access controls you have, does this mean a DBA does the database troubleshooting if there's a production-impacting problem?
[deleted]