SShortSingh.
Back to feed

Nile uses session variables to isolate Postgres tenants in multi-tenant B2B apps

0
·56 views

Nile is a Postgres-based platform designed for multi-tenant B2B applications, allowing developers to isolate tenant data within a single database using a tenant_id column and a session variable rather than separate databases per customer. A developer testing the free tier found that setting the session variable correctly filters rows by tenant, and cross-tenant writes are actively blocked with an explicit error. However, connections without the session variable set can read rows across all tenants by design, a deliberate choice to support admin and migration workflows. This means the responsibility for setting tenant context on every request falls on the application layer, which could be a risk in pooled-connection environments if not handled carefully. Nile raised an $11.6 million seed round led by Benchmark in January 2024 and was co-founded by Sriram Subramanian and Gwen Shapira.

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 ·

Agoda vs Booking.com Hotel Prices: Comparing Rome Rates with Python

A tutorial shows how to compare Agoda and Booking.com hotel prices for the same Rome stay using Python and two Apify scrapers. It searches both sites for three nights, two adults, priced in euros, then matches hotels listed under different names by normalising names and checking location distance. The output is a table of matched hotels with all-in nightly prices, the percentage gap, and a count of which site is cheaper. The author notes that matches are partial, matching can err, and local taxes may be included on one site but not the other. Readers are advised to check taxes and fees before concluding one site is cheaper.

0
ProgrammingDEV Community ·

Developer Traces Path From Ping-Pong Clone to Gravity-Bending Platformer PhaseDrift

A game developer recounts their progression from a 2022 Ping-Pong project that taught core concepts like game loops, physics, and collision detection. Years later, in 2026, they built PhaseDrift, a physics-based platformer where players switch between Solar and Void dimensions to invert gravity. The developer describes exploring physics interactions, movement controls, level design, and visual feedback while making the dimension-switching mechanic central to gameplay. They also note using AI-assisted tools to speed up experimentation, while stressing that understanding and testing the generated code remained essential. The piece presents the comparison as a way to show how their approach to game development has matured.

0
ProgrammingDEV Community ·

AI Model Analyzes and Edits Raw Binaries Without Disassembler or Compiler

Researchers George Xenos and Sotiris Giannopoulos tested GPT-6.1 Sol on raw hex dumps, asking it to interpret four executables and patch them. The model correctly explained all four, including spotting a confidence-level mismatch in FreeBSD's ministat tool. In one-shot edits it added features to wordcount, an AES tool and a bank ledger, and all three patched programs passed their tests. The model also described an unknown malware sample and extracted its indicators of compromise, with DeepSeek V4.1 Flash reaching a similar conclusion in preliminary testing. The article notes the experiment was not European, but points out that EU AI Act obligations and GDPR would still apply to such capabilities.

0
ProgrammingDEV Community ·

AI Model Analyzes and Patches Raw Executables Without Disassembler or Source Code

Researchers George Xenos and Sotiris Giannopoulos gave the GPT-6.1 Sol model only a hex dump of compiled programs, with tools removed, and it correctly explained all four programs' behavior. It decoded the stripped FreeBSD ministat utility and found a statistical bug where the 99.5% confidence option used critical values for about 99.8%, a flaw later confirmed in the source code. In further tests, the model directly edited binaries to add features to three programs and wrote three working executables from specifications. It also identified the behavior of an unknown malware sample and extracted correct indicators of compromise. The findings suggest possible new products for US startups in reverse engineering and malware analysis, though reliability, customer trust and liability for flawed AI-generated binaries remain open questions.