Federated vs Non Federated
The choice of federated vs non federated systems decides who controls your logins and data. Teams pick federated setups to share control across tools, or non federated setups to keep control in one place. This choice shapes how your engineers log in and run daily queries. It also changes how your team sets up security rules and tracks user actions. How federated vs non federated architecture works in your stack A non federated system keeps all user accounts or data inside one central store.
Your coding agents run with your access.
Claude Code reaches prod with a developer's credentials, and approval prompts get clicked through. hoop.dev checks every query, masks sensitive data, and holds risky changes for a human.
The choice of federated vs non federated systems decides who controls your logins and data. Teams pick federated setups to share control across tools, or non federated setups to keep control in one place.
This choice shapes how your engineers log in and run daily queries. It also changes how your team sets up security rules and tracks user actions.
How federated vs non federated architecture works in your stack
A non federated system keeps all user accounts or data inside one central store. Every app checks that single store to let a user log in or read records. If you manage five apps, you might keep five separate user lists in a non federated login model. Each app owns its own keys, roles, and password rules.
A federated system links separate stores together through a shared trust agreement. In federated identity, one central login provider checks who the user is. That provider then sends a signed token to other apps in your stack. The apps trust the token and let the user in without a new password check.
Data platforms use this same pattern for queries and storage. A non federated database holds all tables inside one engine on one cluster. A federated query engine leaves data inside separate regional databases or cloud accounts. When an engineer runs a query, the engine reads from those remote stores and joins the results.
Small teams with one main app often start with a non federated setup. It is fast to build and needs no cross-network trust rules. Growing teams with many cloud accounts and partner tools choose a federated model. It stops password sprawl and lets local teams run their own data stores.
Tradeoffs and when to add runtime session controls
Non federated setups give you clear boundaries and simple failure modes. If one app breaks, the other apps keep running without any trouble. Yet managing accounts across dozens of non federated databases creates dangerous gaps. When an engineer leaves the team, admins must delete their account in every single tool.
Non-Human Identity Management + Federated Learning Security: architecture patterns and best practices
Continue reading? Get the full guide.
Free. No spam. Unsubscribe anytime.
Federated setups fix account sprawl by giving you one place to turn off logins. They also let data teams query across regions without copying terabytes of tables. Still, federated trust stops at the moment a user logs in or starts a session. Once the identity provider approves the login, the target database takes over.
Static role mappings in a federated login setup are often too broad. An engineer gets a wide database role that stays active all day. Federated identity providers cannot see which queries run inside that database session. They also cannot mask sensitive fields like emails, phone numbers, card numbers, or national IDs in query results.
To close this gap, teams pair federated logins with runtime session controls. Federated identity handles the initial check to prove who the user is. Runtime controls then watch every query, require peer approval for writes, and rewrite matched fields in results.
Add runtime guardrails and masking beside your databases and APIs
Login rules, role grants, and CI checks govern who connects to your stack. Yet any allowed script, engineer, or AI agent still runs commands with the full scope of its role. For workloads on Postgres, MySQL, SQL Server, MongoDB, ClickHouse, Kubernetes, SSH, or internal HTTP services, hoop.dev sits beside the service as an open-source proxy, a sidecar for your database or API.
Before a query runs, hoop.dev guardrails check the statement against your rules. An AI Analyzer you configure can score intent or hold risky calls for human review. Next, hoop.dev data masking rewrites sensitive fields in responses, and each verdict is logged per listener. Explore the MIT-licensed project on GitHub.
Frequently asked questions
What is the main difference between federated and non federated login?
Non federated login checks a username and password stored inside each separate app. Federated login checks the user once in a central provider and shares a trust token across many apps.
When is a non federated database better than a federated one?
A non federated database is better when your app needs fast queries on one data set. Federated queries across networks add delay and can slow down heavy transactional workloads.
Does federated identity secure what users do inside a database?
No, federated identity only checks who the user is at login time. You still need session controls to check queries, approve changes, and mask fields like card numbers or emails.
Related guides
In this post