WardenAuthAgent Security
PricingDocsCompareBlogLearnChangelog
Sign inGet started free

Engineering Blog

Technical deep-dives on serverless authorization, DynamoDB patterns, and building multi-tenant SaaS. Written by the team at WardenAuth.

Deep Dive
July 8, 2025
14 min read

RBAC vs. ABAC: Choosing an Authorization Model for Modern Cloud Architecture

Role-based and attribute-based access control solve the same question — who can do what — with very different tradeoffs. We break down RBAC vs. ABAC across scalability, latency, auditability, and operational cost, with a code example, a summary table, and a decision framework for cloud-native teams.

RBACABACAuthorization
Read more
Deep Dive
July 10, 2025
11 min read

How to Prevent Role Explosion in RBAC (Without Switching to ABAC)

When role names start encoding regions, thresholds, and ownership, you have role explosion. Here are three techniques — resource-scoped permissions, role composition, and promoting data to attributes — to keep an RBAC model maintainable at scale.

RBACRole ExplosionAuthorization
Read more
Architecture
July 14, 2025
10 min read

Externalized Authorization: Why Access Logic Doesn't Belong in Your Application Code

Scattered permission checks are a maintenance and security liability. Externalized authorization separates the Policy Enforcement Point from the Policy Decision Point — here is the pattern, the latency objections answered, and a safe migration path.

AuthorizationPDPArchitecture
Read more
Deep Dive
July 17, 2025
12 min read

ReBAC vs. RBAC: When You Need Relationship-Based Access Control

Google Zanzibar popularized relationship-based access control for "who can access this document" problems. We compare ReBAC and RBAC, show where roles fall short, and explain why most teams need resource-scoped RBAC before reaching for a graph.

ReBACRBACZanzibar
Read more
Architecture
July 21, 2025
11 min read

Engineering Sub-10ms Authorization Checks

Authorization runs on the critical path of every request, so its p99 latency is your p99 latency. Four techniques — colocating the PDP, denormalizing decision data, request-scoped caching, and batching — for keeping access checks under 10ms.

LatencyPerformanceArchitecture
Read more
Architecture
July 24, 2025
12 min read

Multi-Tenant Authorization Patterns for B2B SaaS

Tenant isolation is the foundation of B2B SaaS security. We cover scope-per-tenant modeling, shared vs. per-tenant roles, safe cross-tenant support access, and the isolation pitfalls that turn into CVEs.

Multi-TenancySaaSAuthorization
Read more
Tutorial
July 28, 2025
13 min read

Adding Fine-Grained Authorization to a NestJS API

A step-by-step guide to wiring WardenAuth into a NestJS application: registering the module, building a permission guard, using a @RequirePermission decorator, and checking access inside services — with dependency injection throughout.

NestJSTutorialTypeScript
Read more
Tutorial
July 31, 2025
11 min read

Fine-Grained Authorization in Go with WardenAuth

Add context-aware access control to a Go service using the WardenAuth Go SDK: initialize the client, write net/http middleware, propagate context, and check permissions on the request path — idiomatic Go throughout.

GoTutorialAuthorization
Read more
Deep Dive
August 4, 2025
10 min read

Implementing Least Privilege Without Slowing Your Team Down

Least privilege fails when it creates friction — so people over-provision. We cover default-deny plus additive roles, just-in-time elevation, audit-driven right-sizing, and deny-wins guardrails that make the secure path the fast path.

Least PrivilegeSecurityZero Trust
Read more
Deep Dive
August 7, 2025
11 min read

Designing a Permission Schema: Resources, Actions, Wildcards, and Deny-Wins

Your permission naming convention is an API you will live with for years. A practical guide to resource:action naming, choosing granularity, using wildcards safely, and applying deny-wins semantics — with a reference schema you can copy.

PermissionsSchema DesignWildcards
Read more
Deep Dive
August 11, 2025
11 min read

Authorization in a Zero-Trust Architecture

Zero trust is more than network segmentation — authorization is its enforcement layer. How per-request verification, context signals, and least-privilege blast-radius reduction turn "never trust, always verify" into working code.

Zero TrustAuthorizationSecurity
Read more
Architecture
June 1, 2026
12 min read

Single-Table DynamoDB Design for Multi-Tenant RBAC at Scale

How we designed a single DynamoDB table to serve all of WardenAuth's data: scopes, permissions, roles, policies, API keys, and audit logs — with sub-millisecond access times and no cross-table joins.

DynamoDBSingle-Table DesignArchitecture
Read more
Deep Dive
June 10, 2026
8 min read

Why Per-Request Pricing Is Broken for Authorization

Authorization is on the critical path of every API request. Per-check billing means your infrastructure costs scale with your traffic — not your value. Here's why we chose flat-rate pricing and what it means for SaaS economics.

PricingSaaSBusiness
Read more
Deep Dive
July 1, 2026
9 min read

The Hidden Security Risk In Every API Key You've Shared

You built the app, shared the key over Slack, and moved on. Then someone left the team. Now you have a key no one can rotate without breaking production, staging, and six CI/CD pipelines at once. Here's the problem no one talks about — and how to fix it.

API KeysSecurityRotation
Read more
Tutorial
June 18, 2026
15 min read

Implementing Multi-Tenant RBAC in Next.js with AWS Cognito

A step-by-step guide to adding fine-grained access control to a Next.js application backed by AWS Cognito — from creating scopes per customer workspace to checking permissions in API routes and React Server Components.

Next.jsCognitoTutorial
Read more
How We Built
July 19, 2026
14 min read

How We Built Runtime DLP for MCP Tool Calls

Inspecting every tool argument and result for secrets, PII, and prompt injection — at sub-millisecond latency. Architecture of the DLP pipeline, the pattern-matching engine, the redaction strategy, and the tradeoffs we made.

How We BuiltDLPMCP
Read more
How We Built
July 19, 2026
13 min read

How We Built Cryptographic Audit Receipts for Non-Repudiable Access Control

Every authorization decision produces a signed proof token. Here's the merkle-tree structure, the signing key rotation strategy, offline verification, and why we chose Ed25519 over RSA.

How We BuiltCryptographyAudit
Read more
How We Built
July 19, 2026
12 min read

How We Built the Consent and Approval Engine for Agent Tool Access

Per-user, per-tool, per-trust-tier consent that respects RBAC caps. The state machine design for time-boxed, single-use approvals. How we kept the consent check under 5ms on the hot path.

How We BuiltConsentHITL
Read more
How We Built
July 19, 2026
11 min read

How We Built Drift Detection for MCP Server Tool Changes

Fingerprinting every MCP server at registration and continuously monitoring for new tools, changed tool signatures, and modified endpoints. The diffing algorithm and alert pipeline.

How We BuiltDrift DetectionMCP
Read more
How We Built
July 19, 2026
10 min read

How We Built the Velocity Quota System for AI Agent Rate Limiting

Per-org rate limits that stop runaway agents before they flood APIs. Token bucket implementation, cross-Lambda state sharing via DynamoDB atomic counters, and the difference between throttling and containment.

How We BuiltRate LimitingToken Bucket
Read more
Deep Dive
July 19, 2026
12 min read

Just-in-Time Access: Granting Temporary Permissions Without the Overhead

Standing permissions are a liability. Just-in-time access grants permissions only when needed, for exactly as long as needed. Architecture patterns for JIT elevation, time-boxed role assignments, and the audit trail that proves it worked.

JITLeast PrivilegeAccess Control
Read more
Architecture
July 19, 2026
11 min read

Authorization Caching Patterns: Speed Without Staleness

Caching authorization decisions makes your API fast but risks serving stale permissions. Request-scoped vs cross-request caching, TTL strategies, cache invalidation on role changes, and the patterns that keep authorization both fast and correct.

CachingPerformanceAuthorization
Read more
Architecture
July 19, 2026
16 min read

DynamoDB Single-Table Design Deep Dive: Access Patterns, Key Design, and Query Optimization

A deep technical dive into the single-table DynamoDB design that powers WardenAuth. Entity key patterns, GSI overloading, hot partition mitigation, and how we serve access checks, audits, and management APIs from one table.

DynamoDBSingle-Table DesignNoSQL
Read more

Stay up to date

New articles on authorization, serverless architecture, and building multi-tenant SaaS. Subscribe via RSS.

RSS Feed
© 2026 ecarrizo. All rights reserved.
PricingDocsCompareBlogLearnChangelogStatusGlossaryContactTermsPrivacy