About

BrownBox dev is a Ruby development shop with over a decade of experience building and maintaining production web applications.

Whether you need a new system built from scratch, an existing codebase extended, or an aging application brought back to health - it gets done. And it gets done in a way that won't haunt you a year later.

Equally at home in Rails or any other Ruby stack. Remote-first, based in Sweden, working with clients across Europe and beyond.

Open Source

We maintain several open-source Ruby gems, built out of real project needs and kept in active use:

RABARBER

GitHub stars

Simple yet flexible role-based authorization for Ruby on Rails with comprehensive role management and multi-tenancy support.


VERI

GitHub stars

Minimalistic cookie-based authentication for Ruby on Rails with granular session management, user impersonation, and support for multi-tenancy.


GREPFRUIT

GitHub stars

Fast parallel regex search across files powered by Ruby Ractors, available as a programmatic API and CLI.


KREDS

GitHub stars

Rails credentials access with blank value detection and clear human-readable error messages.

Blog

← Back to articles

Introducing Rabarber: A Simple Take on Rails Authorization

January 10, 2024

Welcome to the BrownBox Dev blog!

This first post introduces Rabarber, a role-based authorization library for Ruby on Rails.

Rabarber started as an internal solution. Existing authorization libraries felt like overkill for what was actually needed, so a lighter alternative was built and put to work in production. After some time, the decision was made to package it as a gem and release it publicly.

It doesn't claim to be better or fancier than the alternatives - just a simple, practical option for role-based authorization. If you want to give it a try, here's the link: https://github.com/enjaku4/rabarber.

We're using it, we like it, maybe you'll find it useful too.

Contact