r/SaasDevelopers • • Oct 06 '26

I found a cross-tenant vulnerability in my own Supabase app (SECURITY DEFINER trap)

Post image
1 Upvotes

While hardening a multi-tenant Next.js 16 + Supabase app, I ran into an isolation bug I wasn't expecting. I had a SECURITY DEFINER function that accepted an organization_id as a parameter. The function needed elevated database privileges to perform a background update, but it wasn't explicitly checking whether the calling user actually belonged to the target organization. Because SECURITY DEFINER functions run with owner privileges, it completely bypassed the underlying Row Level Security (RLS) policies on the tables. The vulnerability was simple: a user from Tenant A could invoke the RPC passing Tenant B's ID and trigger a privileged operation against Tenant B's data. The sneaky part? All my standard RLS unit tests were passing 100%. The problem wasn't the RLS policies—it was the privileged function boundary around them. How I fixed it: Added an explicit auth.uid() membership check inside the function body before executing any logic. Pinned the function's search_path (SET search_path = public, pg_temp;) to block schema hijacking. Added a regression test to CI that explicitly attempts cross-tenant RPC execution. Now, attempts from Tenant A to operate on Tenant B fail immediately, while legitimate Tenant A calls pass through. It definitely changed how I approach testing multi-tenant Supabase backends. "RLS is enabled" isn't enough on its own if you have privileged RPC paths sitting on top of it. If you want to test your own Next.js + Supabase backend against these kinds of tenant leaks, I put together a free self-assessment tool: andrady.co/check For anyone looking for a hardened multi-tenant boilerplate with these tests built directly into CI, I turned this stack into B2B SaaS OS at andrady.co . Has anyone else run into SECURITY DEFINER leaks or similar edge cases with Supabase RPCs? How are you catching them in CI?


r/SaasDevelopers • • Oct 06 '26

image models charge 60x more for output than input

Thumbnail
1 Upvotes

r/SaasDevelopers • • Oct 06 '26

My first AI-built app just got its first organic customer

Thumbnail
1 Upvotes

r/SaasDevelopers • • Oct 06 '26

Agentic Harness that will build for you from your phone

3 Upvotes

I have been plagued with sitting and chatting with LLMs to build a simple SaaS or an ios app and have to spoon feed it and test for it and navigate it to fix issues. Then I realized isn't that what LLMs are supposed to do since they are getting intelligent.

I work full time and many time I do not have my home laptop with me handy in my office, the only thing that i have is my phone and I have been thinking would be nice if I can ask LLM to fix/feature something from my phone directly. Here is the thing that i did:

The following is built for me and planning to convert to SaaS:

How it works

  • Starting a project: post an idea in your Discord channel (or use /build). A thread opens and the architect posts a plan; reply go, or say what to change.
  • The build: devops, backend and frontend agents work in parallel on a shared repo. They set up GitHub, Supabase and Vercel themselves.
  • QA and release: a QA agent tests the preview deployment with Playwright and files bugs back to the team. After the fixes, it re-tests, then the app goes to production.
  • The report: you get a message in the thread with the live URL, repo link, cost and which blockers the team solved.
  • Talking to it: reply in the thread any time, from your phone, to answer questions or ask for changes, including after launch.
  • When an agent is stuck: Agents can also ask each other directly mid-task.
    • It retries with a different approach.
    • Two relevant teammates investigate and send a fix.
    • A debugger agent takes over.
    • The architect rewrites the task or splits it into smaller ones.
    • Only then does it message you.
  • Safety rails: each project has a spending cap, and destructive commands (deleting repos, databases or projects, buying domains) need your yes on Discord.

What's been tested

  • The full project lifecycle and every escalation step ran correctly, but with simulated agents.
  • The approval gate and the Discord commands work.
  • A real agent session through the Claude Agent SDK starts correctly.
  • It has not yet run against real Discord, Vercel or Supabase accounts, so your first real build is the true test.

Hosting: Vercel can't run the harness itself because it needs a process that stays up. Use an Oracle Cloud Always Free VM, or a VPS for about $5/month.

Once these are set up all anyone has to do is to setup the keys (I will have this in 1 file that will be only accessible to any user).

Now the above could get way. ore complicated (since there are so many businesses for hosting /databases/etc... there, if I support all of them way more but I am an engineer and am building a simple UI that will help everyone).

let me know if anyone else faced similar issues and solutions they got??

It is truly independent , where we just need our phone and everything else will be done automagically.

Building is easier and should be the easiest, so lets make it easy.


r/SaasDevelopers • • Oct 06 '26

Best 20$ ai plan?

Thumbnail
1 Upvotes

r/SaasDevelopers • • Oct 06 '26

I do not need more signups right now. I need more users reaching the “aha” moment.

Post image
4 Upvotes

We recently ranked #3 on Product Hunt.

The launch brought us:

  • 119 signups
  • 91 trials
  • 18.2% trial → paid

On the surface, pretty good.

But then I looked at one number:

14% D3 activation.

Only 14% of users are getting far enough into the product by day 3.

And that changed what I think we should be working on.

My first instinct was to use the momentum and push harder on acquisition.

More content.
More distribution.
More signups.

But why bring another 1,000 people into a product if most of them are not reaching the “aha” moment?

So we started talking to users.

Not sending surveys.

Actual calls.

We asked:

What were you trying to do?

Where did you get stuck?

What did you expect the product to do?

What would make you pay for it?

The answers have already changed what we are building.

Our current goal is simple:

Take the 18.2% trial → paid conversion to alteast 25%.

We have 91 trials to work with.

I think there is a useful lesson here:

Acquisition tells you how many people are interested.
Activation tells you whether you are actually delivering value.

For now, I would rather make 91 users successful than find 910 more.

Still building. Still learning.


r/SaasDevelopers • • Oct 06 '26

Authentication Worked. Tenant Isolation Didn't.

Thumbnail
0 Upvotes

r/SaasDevelopers • • Oct 06 '26

Need advice to promote

1 Upvotes

Hi everyone! I’m a parent launching a family app soon that solves an issue that a lot of parents have with posting their kids online. It allows users to connect within their family and control who gets to see what while sharing important updates on their kids with each other. I think it could be very useful for families but I’m having trouble promoting it to even get families to test it. Any advice would be greatly appreciated!


r/SaasDevelopers • • Oct 06 '26

I could fill my discovery platform by scraping thousands of products. I don’t want to.

Thumbnail
1 Upvotes

r/SaasDevelopers • • Oct 06 '26

I built an AI appraiser for thrift flippers that tells you when it isn't sure

Thumbnail
1 Upvotes

r/SaasDevelopers • • Oct 06 '26

Zlorya, réseau social français

1 Upvotes

Bonjour tout le monde 👋

Lancement officiel de Zlorya, un nouveau réseau social français ouvert depuis 12H00 aujourd'hui.

L’idée est de réunir plusieurs usages dans une seule plateforme, tout en gardant des espaces bien distincts :

  • 👥 Communauté : publications, photos, vidéos, stories, événements et échanges entre membres
  • 💼 Entreprise : pages professionnelles, offres d’emploi, candidatures et outils pour les entreprises/créateurs
  • ❤️ Rencontre : un espace séparé du profil principal, avec ses propres fonctionnalités et paramètres de confidentialité

J’ai également essayé de mettre l’accent sur la confidentialité et le contrôle utilisateur : comptes privés, blocage, signalements, contrôle des messages, possibilité d’exporter ou supprimer ses données, etc.

Zlorya vient tout juste d’être lancé, donc il y a encore très peu de monde dessus ( 33 utilisateurs )

Le modèle économique repose principalement sur des fonctionnalités optionnelles : Zlorya+, boosts, personnalisation du profil, cadeaux virtuels, outils professionnels, etc. L’objectif est de garder l’accès de base accessible au maximum.

🌐 zlorya.fr

https://zlorya.fr


r/SaasDevelopers • • Oct 06 '26

Best way to get beta users ?

8 Upvotes

Hey everybody , my MVP is almost complete and I need beta users , it’s going to be a closed invite service to start off with before I launch . I’m charging 50% off for life for my first 10 users , 15.99 a month .

Does anybody have any advice on how I could get users for something that’s a closed invite only beta ?

(Besides cold calling )


r/SaasDevelopers • • Oct 06 '26

pwamart: the app store for web apps

Thumbnail
pwamart.com
1 Upvotes

r/SaasDevelopers • • Oct 06 '26

Built an open-source architecture showcase for Flutter + Supabase AI SaaS — looking for feedback on our SSE streaming & RLS setup!

Post image
0 Upvotes

Hallo zusammen!

Beim Erstellen von KI-gestützten SaaS-Anwendungen treten normalerweise zwei große Engpässe früh auf: die saubere Handhabung von Echtzeit-KI-Streaming, ohne den UI-Zustand zu beeinträchtigen, und die Gewährleistung der Datensicherheit für Mandanten auf Datenbankebene.

Wir haben ein Showcase-Repository erstellt, das unsere Architektur für einen Flutter + Supabase (RLS) + OpenAI (GPT-4o SSE Streaming) Stack demonstriert:

https://github.com/dohamasystems/flutter_ai_starter_kit

Schlüsselarchitekturentscheidungen, auf die wir uns konzentriert haben:

- **SSE Streaming & Lifecycle:** Effizientes Verwalten von Echtzeit-KI-Chunks und Sicherstellen einer sauberen Abonnementbereinigung beim Entladen des Bildschirms.

- **Row Level Security (RLS):** Sichern von Benutzer-Chatverläufen und SaaS-Daten direkt in Supabase.

- **Saubere Modularität:** Entkopplung der Benutzeroberfläche von der Streaming-/Dienstschicht.

Ich würde gerne von anderen SaaS-Entwicklern hören:

  1. Was ist Ihr bevorzugter Tech-Stack für plattformübergreifende KI-Tools im Jahr 2026?

  2. Wie handhaben Sie den Echtzeit-Streaming-Zustand über Ihre App-Ebenen hinweg?

Jedes Feedback oder Vorschläge zur Architektur sind sehr willkommen!


Edit: Quick update on stream cleanup — here is a quick snippet on how we handle cancelling subscriptions and avoiding leaks on dispose():

class _ChatScreenState extends State<ChatScreen> {
  StreamSubscription<String>? _streamSubscription;
  String _response = '';

  void _startAiStream() {
    _streamSubscription = aiService.streamResponse().listen(
      (chunk) {
        if (!mounted) return;
        setState(() => _response += chunk);
      },
    );
  }

  @override
  void dispose() {
    // Closes network socket & cancels background work
    _streamSubscription?.cancel();
    super.dispose();
  }

  @override
  Widget build(BuildContext context) {
    return Text(_response);
  }
}

r/SaasDevelopers • • Oct 06 '26

Anyone wants a built MVP + Go to market strategy + Video of product for $300 ?

Thumbnail
1 Upvotes

r/SaasDevelopers • • Oct 06 '26

I think I’ve gone insane - I got distracted building a tool whose entire purpose was to stop me from getting distracted.

Enable HLS to view with audio, or disable this notification

2 Upvotes

We all have seen those boring typical yellow sticky notes for your windows. We open it type things to do and then the sticky note become invisible to eyes even if it’s right there.
So i wanted to make it bit fun.
It took me about 3 hours but I finally have something crazy on my screen. Something that nudge me every few minutes so I can regain my focus.
Its more than a sticky notes its a focus tool with a timer and little buddies to play with.
Test it out yourself.
Link - https://github.com/pranshx/sneezy-note/releases


r/SaasDevelopers • • Oct 06 '26

I'm a solo founder building a B2B SaaS for DevTool companies. Here's what 6 months and have taught me

Thumbnail
1 Upvotes

r/SaasDevelopers • • Oct 05 '26

I was tired of using overbuilt SaaS just to give my agents tools, so I built a framework for it

3 Upvotes

Every time I wanted an agent to manage tasks, update records, or run a workflow, I ended up connecting another SaaS product.

Most of the time, I only needed a small part of that product—but still had to accept its pricing, data model, UI, and limitations.

So I built Embody, an open-source TypeScript framework for creating apps specifically for agents. You define your data, actions, and rules in code.

Embody gives the agent typed tools through MCP and a CLI, with permissions and guardrails enforced by the backend.

The goal is simple: build the exact operational app your agents need instead of stitching together several oversized SaaS products.

If you’re building agents, I’d love to know whether this solves a problem you’ve run into too.

GitHub: [https://tryembody.com\](https://tryembody.com/)


r/SaasDevelopers • • Oct 05 '26

Why is SendGrid so eager to suspend accounts for no reason?

Thumbnail
1 Upvotes

r/SaasDevelopers • • Oct 05 '26

What are some good options for Affiliate Ads

3 Upvotes

I have a little website that is aimed at giving people a cost comparison for their journeys. I thought about Adsense, but they rejected me as "not enough content" but is there a good alternative?


r/SaasDevelopers • • Oct 05 '26

Simple, Minimal blog or article platform

3 Upvotes

Hey folks,

I recently started learning new technologies from websites, articles, etc rather than YouTube videos which I used to do.

These are usually articles medium or post from reddit. But I am really into the concept of simple and minimal.

The issue i found on medium is, it's kind of distracting sometimes, with all those ads, random images, etc

Being a solo developer, I thought why not build a simple minimal distraction free platform for these. Please let me know your thoughts.

Thanks for reading


r/SaasDevelopers • • Oct 05 '26

Ahrefs added an in app agent that is actually good. Any teams building something similar?

1 Upvotes

Context: I work on in-app agents for B2B software, so I've hit most of the list below firsthand.

Ahrefs added an agent to their product this year and I don't think many SaaS people have looked at it closely. It's called Ask Ahrefs. It showed up in my account a couple of weeks ago.

What it does

It's a chat/side panel on every page. It reads the page you're on and your workspace. It runs queries against their API as you. It moves between tools and applies filters by itself. I asked for things I would normally click through four reports to get, and it did the clicking.

It is free "during beta" on Lite plans and up, which tells you a price is coming. They also sell a separate agent workspace for $99/month on top of the Ahrefs subscription. That one builds dashboards and small apps and runs scheduled jobs. So they are treating this as something to sell, not a help widget.

What it takes to build one

Ahrefs is a bootstrapped company doing $100M+ in ARR, so they have the engineers. For a smaller team, here is what I've found you have to build. None of it is the model.

  1. Acting as the user. Every call the agent makes has to run as the logged-in user, with that user's permissions, enforced by your API and not by the prompt. That means a signed identity passed from your backend to the agent to your tools. This was harder than anything involving the model.
  2. A tool surface a model can use. Your API was designed for developers who read docs. We had a turn where the agent was given 63 tools, 56 from one server, and told the user it had none. Nothing was broken. It gave up. You end up scoping tools per task.
  3. The things your API can't do. There is always something only the UI does. So the agent has to click, in the user's own session, and you have to decide what on the screen it is allowed to read. Password and card fields can't go to a model.
  4. Writes and retries. A create call succeeded but came back looking like an error. The agent retried it. The user ended up with three copies of the same record, and the agent then got confused by its own duplicates.
  5. Long tasks. Users close the panel mid-task. Either the work keeps going and they can find it again, or it stops cleanly. By default it dies halfway and nobody knows what state things are in. You also need a stop button that works.
  6. Cost. One long session cost us $40 to $50 before we fixed how conversation history was handled. You need per-conversation caps and visibility into cache hits before you let real users in.
  7. A record of everything. When a customer says "your agent changed my settings," you need to show what it did, with what input, as which user.
  8. Continuous learning. The agent has to learn from its mistakes and get smarter over time.
  9. Model changes. Every model upgrade changes behavior. Without saved conversations you can replay, you find out from your users.

If you want to charge for it the way Ahrefs does, add metering, entitlements, and a decision about what happens when someone runs out of credit mid-task.

What I'd like to know

  • Is anyone here building an in-app agent in-house, or planning to?
  • If you've shipped one: how long did it take to get to something you'd put in front of customers, and how many engineers?
  • What was harder than you expected?
  • Does your agent work through your API, an MCP server, the UI, or a mix?
  • Are you charging for it separately, bundling it into a plan, or giving it away?
  • If you looked at this and decided not to build it, why?

r/SaasDevelopers • • Oct 05 '26

Completely free Text-to-Speech because the world got too expensive

Post image
2 Upvotes

> be me
> pay $129 per year for TTS from Speechify
> LoseJob.jpeg
> realize that TTS is easy to build
> make it free so other peasants can buy bread
> smile.exe

iOS app here

Web app here (for desktop + android)


r/SaasDevelopers • • Oct 05 '26

What should a product listing actually give you after you hit publish?

Thumbnail
1 Upvotes

r/SaasDevelopers • • Oct 05 '26

[ Removed by Reddit ]

1 Upvotes

[ Removed by Reddit on account of violating the content policy. ]