<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Rbac on Daffa Abhipraya</title><link>https://blog.abhipraya.dev/tags/rbac/</link><description>Recent content in Rbac on Daffa Abhipraya</description><generator>Hugo</generator><language>en-us</language><copyright>© Daffa Abhipraya</copyright><lastBuildDate>Thu, 03 Dec 2026 00:00:00 +0700</lastBuildDate><atom:link href="https://blog.abhipraya.dev/tags/rbac/index.xml" rel="self" type="application/rss+xml"/><item><title>Three Tests Passed Because of the Bug</title><link>https://blog.abhipraya.dev/posts/tests-that-passed-because-of-the-bug/</link><pubDate>Thu, 03 Dec 2026 00:00:00 +0700</pubDate><guid>https://blog.abhipraya.dev/posts/tests-that-passed-because-of-the-bug/</guid><description>&lt;p&gt;A permission system that the backend does not know about is not a permission system. I learned that on a university team project, an invoice-reminder app with a FastAPI backend, when an audit turned up two endpoints that skipped the approval flow we had built for them. Fixing it test-first also showed me that three tests in our suite had been passing because of the bug.&lt;/p&gt;
&lt;h2 id="the-hole"&gt;
 &lt;a class="anchor" href="#the-hole" data-anchor="the-hole" aria-hidden="true"&gt;#&lt;/a&gt;
 The Hole
&lt;/h2&gt;
&lt;p&gt;The app has two roles, staff and admin. A few actions are sensitive: cancelling an invoice, changing an invoice amount or due date, editing a client&amp;rsquo;s legal details. Staff are not supposed to do those directly. They submit a permission request, an admin reviews it, and on approval the backend runs the real mutation as the admin.&lt;/p&gt;</description></item></channel></rss>