API Gateway & Identity Architecture

The Challenge

The platform I manage is multi-tenant. Each tenant organization needs branded login experiences, role-based access control across 6 tiers, and locale-specific registration flows for 15+ locales. All of that has to be FIPS-compliant for FedRAMP. On top of customer-facing identity, I also needed to unify how operators and employees access everything: AWS accounts, GitHub, internal tools, dev servers. The goal was one place to grant access, one place to revoke it.

Approach & Role

I built both the API gateway management system and the identity provider infrastructure from scratch. The gateway uses a custom Python tool that treats configuration as code. YAML definitions are diffed against live Kong state and applied with dependency-aware ordering. For identity, I built the Keycloak infrastructure with FIPS dual-target builds.

Architecture & Patterns

API Gateway (Kong as Code):

Custom Lua plugins (vendored and ported to Kong 3.x):

Identity Provider (Keycloak):

Impact & Scale

Centralized Identity & Access Control

Beyond customer-facing authentication, I needed to solve operator and employee access across all infrastructure, SaaS tooling, and internal services. The company had grown to the point where managing access per-system wasn't sustainable.

Design principle: I made Google Workspace the single source of truth for all access decisions. One place to grant access, one place to revoke it. Group membership propagates into per-application role assignments across every system in the stack.

Group-based RBAC architecture:

Downstream integrations:

What required custom engineering: