OpenFGA

Deploy and host OpenFGA with Railway

Deploy OpenFGA

Postgres

railwayapp-templates/postgres-ssl:16

Just deployed

/var/lib/postgresql/data

OpenFGA

openfga/openfga

Just deployed

Deploy and Host OpenFGA on Railway

is a scalable open source authorization system for developers that allows implementing authorization for any kind of application and smoothly evolve as complexity increases over time. It is owned by the Cloud Native Computing Foundation

OpenFGA is a high performance and flexible authorization/permission engine built for developers and inspired by Google Zanzibar. It incorporates powerful Relationship-Based Access Control (ReBAC) and Attribute Based Access Control (ABAC) concepts with a domain-specific language that makes it easy to craft authorization and permission solutions that can grow and evolve to any use case, at any scale.

It is owned by the Cloud Native Computing Foundation.

About Hosting OpenFGA

This template runs a single instance of OpenFGA and Postgres. When the OpenFGA container, it runs the openfga migrate command first. This approach does not work if you run multiple OpenFGA nodes. If that's the case, you'll need to manually run openfga migrate whenever you update to a new OpenFGA version.

OpenFGA is configured with a pre-shared key that you need to specify in the OPENFGA_AUTHN_PRESHARED_KEYS variable.

Common Use Cases

You can use OpenFGA to implement authorization for any application. You can see some examples here and some of the companies using it here.

Dependencies for OpenFGA Hosting

  • PostgreSQL

Deployment Dependencies

Why Deploy OpenFGA on Railway?

Railway is a singular platform to deploy your infrastructure stack. Railway will host your infrastructure so you don't have to deal with configuration, while allowing you to vertically and horizontally scale it.

By deploying OpenFGA on Railway, you are one step closer to supporting a complete full-stack application with minimal burden. Host your servers, databases, AI agents, and more on Railway.


Template Content

More templates in this category

View Template
Keycloak
Keycloak template with keywind theme + apple and discord providers

View Template
bknd
Feature-rich yet lightweight backend

View Template
Authorizer
Open-source authentication and authorization solution for your business.