<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by MrPalixir on Medium]]></title>
        <description><![CDATA[Stories by MrPalixir on Medium]]></description>
        <link>https://medium.com/@mr.palixir?source=rss-f8663ace0c09------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*sI6boslWjKr3MNynHXbXMQ.png</url>
            <title>Stories by MrPalixir on Medium</title>
            <link>https://medium.com/@mr.palixir?source=rss-f8663ace0c09------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 27 Nov 2026 16:52:40 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@mr.palixir/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[In-Depth Security in Wabe: ACL, Role-Based Permissions]]></title>
            <link>https://medium.com/@mr.palixir/in-depth-security-in-wabe-acl-role-based-permissions-2388af9cbb4d?source=rss-f8663ace0c09------2</link>
            <guid isPermaLink="false">https://medium.com/p/2388af9cbb4d</guid>
            <category><![CDATA[nodejs]]></category>
            <category><![CDATA[typescript]]></category>
            <category><![CDATA[performance]]></category>
            <category><![CDATA[backend]]></category>
            <category><![CDATA[security]]></category>
            <dc:creator><![CDATA[MrPalixir]]></dc:creator>
            <pubDate>Fri, 18 Oct 2024 19:03:14 GMT</pubDate>
            <atom:updated>2024-10-18T19:03:14.432Z</atom:updated>
            <content:encoded><![CDATA[<p>Wabe simplifies backend development for Node.js and Bun while embedding essential security practices. As developers increasingly prioritize security, it’s critical to understand how platforms like Wabe manage access control, encryption, and internal authentication. In this article, we will explore Wabe’s security features, focusing on fine-grained permissions, the use of master keys for internal requests, and ACL (Access Control Lists) management.</p><h3>1. Role-Based Access Control (RBAC) and Class-Level Permissions (CLP)</h3><p>Role-based access control (RBAC) is a widely-used security model, enabling access based on users’ roles within the application. However, Wabe extends this control further with <strong>class-level permissions</strong>. Developers can define roles such as Admin, Manager, or Viewer at the class level to control what operations each role can perform on objects.</p><p>For instance, at the class level, a Viewer role may only have read access, while an Admin role can perform CRUD (Create, Read, Update, Delete) operations. This abstraction allows developers to implement security directly into data models, ensuring that all interactions with backend data follow pre-set security guidelines.</p><h3>Class-Level Permissions in action</h3><p>Wabe’s <strong>Permission Class</strong> allows developers to define and manage access policies for different classes of data objects:</p><ul><li><strong>Admin role</strong>: Full access to modify, delete, and create objects.</li><li><strong>Manager role</strong>: Can modify data but not delete or create new objects.</li><li><strong>Viewer role</strong>: Read-only access to view data.</li></ul><p>These permissions are baked into the backend logic, ensuring that even if a front-end request bypasses UI security, the backend remains protected.</p><h3>Benefits:</h3><ul><li><strong>Simplified security management</strong>: Set permissions once at the class level, and Wabe enforces them for every object.</li><li><strong>Consistency</strong>: Class-level permissions ensure that no discrepancies arise between different parts of the application regarding what users can and cannot do.</li></ul><h3>2. ACL (Access Control Lists): Fine-grained, object-level permissions</h3><p>Beyond class-level control, Wabe allows for <strong>object-level permissions</strong> using <strong>Access Control Lists (ACL)</strong>. ACLs provide the flexibility to define fine-grained access at the object level, offering a more dynamic and flexible approach to security.</p><p>With ACLs, you can specify access permissions not only for user roles but also for individual users. For example, you can define permissions that allow a specific user to read or write to a particular object, independent of their role.</p><h3>Managing ACLs in Wabe</h3><p>ACLs in Wabe can be customized based on several factors:</p><ul><li><strong>User-based access</strong>: Grant or revoke access to specific data objects for individual users. For instance, a project record could be accessible to a project lead but restricted for other team members.</li><li><strong>Role-based access</strong>: Ensure that roles like Admin or Editor have the appropriate permissions across individual objects in the system.</li></ul><h3>Example use case: Object-level permissions in action</h3><ul><li>A document management system can use ACLs to specify that only the document creator and their direct supervisor can edit a specific document, while other team members can only view it. By implementing object-level permissions, Wabe ensures that these nuanced rules are strictly enforced without overburdening the developer.</li></ul><h3>Benefits:</h3><ul><li><strong>Fine-grained control</strong>: Developers can easily tailor permissions to meet complex access needs.</li><li><strong>Dynamic management</strong>: Permissions can evolve alongside business needs without requiring major codebase changes.</li></ul><h3>3. Construct a performant ACL system</h3><p>One of the challenges of implementing ACLs in large-scale systems is ensuring performance doesn’t degrade as the system scales.</p><p>Wabe incorporates a layered approach to ACLs to improve both security and performance:</p><ul><li>Instead of verifying ACLs after fetching data, which could reveal whether an object exists based on the access denial, Wabe includes ACL checks directly in the where clause of database queries. This approach ensures multiple benefits:</li></ul><ol><li>Avoids pagination issues by filtering objects at the query level.</li><li>Prevents attackers from deducing the existence of sensitive objects.</li><li>Integrates seamlessly into the API without impacting performance.</li></ol><p>This method enhances both security and efficiency by ensuring that only accessible objects are returned without additional overhead.</p><h3>Conclusion</h3><p>Wabe combines advanced security features like class-level permissions, fine-grained object-level ACLs, secure master key management, and layered input validation to provide a robust security framework for backend systems. By offering out-of-the-box security mechanisms, Wabe allows developers to focus on building features while ensuring their applications remain secure against both internal and external threats.</p><p>Wabe’s approach to security not only prevents unauthorized access but also provides the scalability and flexibility that modern applications require. With its security features deeply integrated into the platform, Wabe is ideal for developers who prioritize building secure, scalable backends while simplifying the management of access controls and sensitive data.</p><p>Website: <a href="https://wabe.dev/">https://wabe.dev</a></p><p>GitHub: <a href="https://github.com/palixir/wabe">https://github.com/palixir/wabe</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2388af9cbb4d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Introducing Wabe: A journey of building a robust Backend as a Service (BaaS) in TypeScript]]></title>
            <link>https://medium.com/@mr.palixir/introducing-wabe-a-journey-of-building-a-robust-backend-as-a-service-baas-in-typescript-acb1fc4c6254?source=rss-f8663ace0c09------2</link>
            <guid isPermaLink="false">https://medium.com/p/acb1fc4c6254</guid>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[open-source]]></category>
            <category><![CDATA[typescript]]></category>
            <category><![CDATA[development]]></category>
            <category><![CDATA[backend]]></category>
            <dc:creator><![CDATA[MrPalixir]]></dc:creator>
            <pubDate>Tue, 03 Sep 2024 18:20:13 GMT</pubDate>
            <atom:updated>2024-09-03T18:23:14.104Z</atom:updated>
            <content:encoded><![CDATA[<h3>Introduction</h3><p>After a year of intense development, I’m excited to introduce you to Wabe, a powerful yet simple Backend as a Service (BaaS) solution. Built with TypeScript, Wabe is designed to simplify backend development, providing essential features like authentication, auto-generated GraphQL APIs, a hook system, permissions management, and database management. As a developer working full-time, I dedicated countless nights and weekends to bringing this project to life, and I’m thrilled to share it with you today.</p><h4>The motivation behind wabe</h4><p>The idea for Wabe was born out of a recurring frustration: existing BaaS solutions often felt overly complex or restrictive, especially when trying to customize them for specific needs. I wanted something that was not just powerful but also easy to use, especially for developers who need to move quickly without getting bogged down in backend complexities.</p><p>Wabe is my answer to these challenges. It’s designed to give developers the freedom to focus on building great applications, with the backend taken care of in a straightforward and flexible way. Whether you’re creating a simple app or a more complex system, Wabe is here to support your needs.</p><h4>What is Wabe?</h4><p>Wabe is a fully-featured BaaS that simplifies backend development by offering a suite of tools and services that are easy to integrate into your projects. Whether you’re managing users, building APIs, or setting up complex permissions, Wabe has you covered.</p><p>Here’s a quick overview of what Wabe offers:</p><ul><li><strong>Authentication system:</strong> Secure and flexible user authentication, including session management and role-based access control.</li><li><strong>Auto-generated GraphQL API:</strong> Automatically generate a powerful GraphQL API based on your data models, saving you time and reducing boilerplate.</li><li><strong>Hook system:</strong> Customize and extend the functionality of your backend with a robust hook system that allows you to respond to events or modify behavior.</li><li><strong>Permissions management:</strong> Fine-grained control over who can do what in your application, with an intuitive system for managing user roles and permissions.</li><li><strong>Database management:</strong> Simplified database management tools that let you define, manage, and interact with your database without hassle.</li></ul><h4>Key features</h4><p><strong>Authentication system</strong></p><p>Wabe’s authentication system is built to handle a variety of use cases, from default authentication methods provide by Wave to custom authentication methods to match your needs. It also supports session management out of the box, ensuring your users stay authenticated securely across sessions.</p><p><strong>Auto-generated GraphQL API</strong></p><p>One of Wabe’s standout features is its ability to automatically generate a GraphQL API from your schema. This not only saves time but also ensures that your API is always in sync with your underlying data. With Wabe, you can start querying your data almost immediately after setting up your schema. Each call to default GraphQL API includes permissions check.</p><p><strong>Hook system</strong></p><p>The hook system in Wabe allows you to inject custom logic at various points in your application’s lifecycle. Whether you need to perform actions before or after a database query, or you want to modify data on the fly, Wabe’s hooks give you the flexibility to do so.</p><p><strong>Permissions management</strong></p><p>Managing permissions can be a complex task, but Wabe simplifies it with a robust system that allows you to define roles and permissions with ease. You can put permission at class level or at object level, from more to less granular. Whether you need simple role-based access or more complex rules, Wabe’s permissions management is designed to be both powerful and easy to use.</p><p><strong>Database management</strong></p><p>Wabe handles the heavy lifting of database management so you can focus on building your application. It provides tools to define your data models, manage relationships, and interact with your data through a clean, intuitive interface.</p><h4>Getting started with Wabe</h4><p>Getting started with Wabe is simple. The comprehensive documentation will guide you through the installation process, setting up your first project in minutes.</p><p>Simply install Wabe, configure any elements you want, and start building.</p><h4>A year of challenges</h4><p>One of the biggest challenges was ensuring that Wabe was not just functional, but also reliable and easy to use. I spent countless hours testing, refining, and reworking features to make sure they met the high standards I set for the project.</p><p>Now, with Wabe launched, I’m very excited to see how other developers use it in their projects. I believe Wabe can make a real difference in how developers approach backend development, and I’m eager to hear feedback and continue improving it. I have so much ideas and the future of Wabe is very promising !</p><h4>Conclusion</h4><p>Wabe is now available for you to explore and use in your projects. I encourage you to dive into the documentation, try it out, and see how it can simplify your backend development process. This is just the beginning — Wabe will continue to evolve based on your feedback and the needs of the community.</p><p>Documentation : <a href="https://wabe.dev/">https://wabe.dev</a></p><p>GitHub: <a href="https://github.com/palixir/wabe">https://github.com/palixir/wabe</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=acb1fc4c6254" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>