SShortSingh.
Back to feed

Can a customer of an AI-built app see another customer's data?

0
·5 views

A common risk in multi-tenant apps is that one customer can access another customer's records. AI-generated code often applies the customer-restriction filter on main list pages but omits it from detail pages, exports, search, or background jobs. Developers can test this by creating two separate company accounts and attempting to open one company's records while signed in as the other. The article recommends deriving the customer identifier from the server-side session rather than browser input, applying the filter in a shared location, and enabling row-level security where supported. It also suggests writing automated tests that confirm one organization cannot read another's data.

Read the full story at DEV Community

This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)

Log in to join the discussion and vote.

Log in

Related stories

0
ProgrammingDEV Community ·

Type Piano 0.1.8 Adds Live Chord Visualizer and Four Sound Engines to Free Desktop Keyboard

Type Piano 0.1.8, a free Rust-based desktop piano, has been released for Windows, macOS, and Linux. The update routes computer keyboard, MIDI controller, and pointer inputs through a single state machine to prevent stuck notes and keep visuals in sync with audio. Users can switch among four sound engines (Studio Grand, Felt Room, Classic EP, and Glass Piano) from an inline top-bar selector. A new Harmonic Visualizer recognizes live chords and displays active notes, velocity, and sustain status. The release also adds two studio themes and interface support for ten languages.

0
ProgrammingDEV Community ·

Open-source household bill auditor flags overcharges and phishing invoices in hackathon build

A developer built Bill-Shock Auditor, a standard-library Python agent for the Agentware 2026 hackathon that scans six months of a household's email and card/UPI ledger for silent price hikes, duplicate charges, and phishing invoices. The model plans and selects read-only tools, while deterministic Python recomputes every rupee amount, and the agent has no ability to send, pay, or delete anything. During a live run in November 2026, rate-limit errors from the free-tier API triggered a failover to a lighter model, which still completed the audit with verified savings of ₹7,047 a year. The write-up also describes guardrail and licensing lessons, such as a shrink-only rule that under-claimed a ₹266 refund and attribution text that caused GitHub to misclassify the project's license.

0
ProgrammingDEV Community ·

Forum thread on LaLiga 2019/20 data shows one row checked and a repeatable method published

A football forecasting discussion on a message board shifted from whether a model transfers across Spanish divisions to a narrower task: counting outcomes in one season's source file. A participant reported full-time results from a pinned OpenFootball LaLiga 2019/20 file, giving 174 home wins, 105 draws and 101 away wins across 380 matches. A later reply linked to a Spanish write-up describing an offline script and downloadable inputs to repeat the count. The reporter did not verify the source bytes, digests or fixture counts, and the display names do not confirm independent participants. The exchange was a public account rather than an independent reproduction, and it did not resolve pre-match timing concerns.

0
ProgrammingDEV Community ·

Plausible, Fathom and Cloudline compared: pricing, site limits and features

Three cookieless web analytics tools, Plausible, Fathom and Cloudline, perform the same core function of counting visitors without cookies. They differ mainly in pricing structure and how many sites each plan covers. Plausible starts at $9 a month for one site, while Fathom starts at $15 a month with at least 50 sites. Cloudline is currently free during early access, with paid plans to be announced later, and its revenue attribution feature is still listed as coming soon. The comparison was based on prices checked on November 26 to 28, 2026, which the author notes may change.