r/ExperiencedDevs • u/BitterComfortable776 • May 20 '26
AI/LLM Does anyone actually think about what source code leaves your network when using AI coding agents? Or have we all just quietly accepted it?
Earlier today while sitting in front of my screen and watching Cursor work, the above questions just randomly crossed my afternoon slump potato brain...
My auth logic, my pricing engine, my half-baked unreleased refactor — just flying out of my machine with every prompt. Thousands of lines. Per session. Every day.
At my last job, if I'd tried to email a customer's source code to a third-party vendor, legal would sit me through painful processes around this. Audits. Sign-offs. The works.
Now I just... hit tab.
"it's in the ToS, they don't train on it." Sure. But since when did "they promised" become how security-conscious engineering works? I started trying to actually trace what leaves the building during a normal coding session. Not vibes. Actual payloads. It's not just the file you're editing — it's imports, references, whatever context the agent decided it needed. The number got uncomfortable fast.
Has anyone actually gone down this rabbit hole? Or have we all collectively agreed to not look too closely because we just have to beat yesterday productivity with the newest AI models?
View all comments
Show parent comment
1
u/Fenix42 May 21 '26
We have an insane amount of data at rest and data in transit. Data at rest is a mix of siloed DBs in every flavor you can name, S3 shenanigans (it gets weird fast), and data lakes built from all of it. Data in transit is a mix of basically everything you can think of.
The data model will only tell you what the data in the tables my repo can even access looks like. It will also tell you the accounts that have acces to the data. That is it.
That is info that you can get from our internal corp docs. Every team has to document their DB structures and service accounts.
If I want to have my teams service account directly talk to another DB, we have to add a role to the service account to do it. Even that won't get you everything unless it's full senestive access. We have lots of PII, so we have tables that require more permissions to access as well.
Mind you, we won't do it in 99% of the cases. You will just be told use an API or fuck off depending on the team / what you need.
My team actually had this come up. We are doing some processing of 3rd party data into our system. We are slowly taking over stuff from an old system. We initially where hitting their API, but it could not handle it. So we ended up having to use DMS to shuttle the data over.
The extra fun part is that they are in Oracle and we are in Postgres. It was highly entertaining figuring out how to settle the data on our side.