Multi-enterprise Spanning Architecture

Published
Length
3 min read

Luis Felipe Dias

All posts

You build a multi enterprise spanning architecture by linking identity providers and network routes across separate companies. Teams set up cross-company trust rules so partner users can log in and run approved tasks. Most teams start by sharing static keys or creating broad guest roles in their cloud accounts. When those roles are too wide, one partner user can read or change data they do not own. How a multi enterprise spanning architecture works A multi enterprise spanning architecture let

Zero Trust Architecture + Multi-Factor Authentication (MFA): the complete guide

Architecture patterns, implementation strategies, and security best practices. Delivered to your inbox.

Free white paper. No spam. Unsubscribe anytime.

You build a multi enterprise spanning architecture by linking identity providers and network routes across separate companies. Teams set up cross-company trust rules so partner users can log in and run approved tasks. Most teams start by sharing static keys or creating broad guest roles in their cloud accounts. When those roles are too wide, one partner user can read or change data they do not own.

How a multi enterprise spanning architecture works

A multi enterprise spanning architecture lets two or more distinct companies share apps, databases, and cloud accounts. This setup shows up during mergers, joint ventures, or deep vendor partnerships. Each company keeps its own identity directory and security team. Instead of making duplicate user accounts in every directory, admins set up federation between the companies.

First, the home company verifies the user when they log in for work. Next, the home identity provider sends a signed assertion to the partner company. The partner system reads that assertion and maps the external user to a local role. That local role grants permissions to read tables, call internal services, or run scripts.

Network teams must also link the private networks of each company. They often use private cloud peering or site-to-site VPN tunnels to route traffic. Once the network path and role mapping are active, partner engineers can reach internal databases and servers. Each company controls its own perimeter, while specific workflows cross the boundary.

What native cross-company roles solve and what they miss

Native federation and cross-account roles solve the problem of duplicate user directories. When an engineer leaves the partner firm, disabling their home account stops their external logins too. Security teams do not need to share static passwords across company email threads. Cloud logs also show which external identity assumed a role and when they logged in.

Still, native cloud and database roles only check who logs in at the start of a session. Once a partner engineer assumes a database role, they hold every permission tied to that role. Native role checks cannot inspect individual SQL statements or CLI commands while they run. A user who needs to read five rows can often dump the whole table.

Cross-company setups also struggle with sensitive data inside shared tables. A partner analyst might need to query an orders table to fix a billing bug. That same table often holds customer emails, phone numbers, card numbers, or national IDs. Database roles work at the table or column level, so maintaining separate views for each partner takes heavy work.

Zero Trust Architecture + Multi-Factor Authentication (MFA): architecture patterns and best practices

Continue reading? Get the full guide.

Free. No spam. Unsubscribe anytime.

Managing shared database and server sessions across companies

To keep shared systems safe, teams must separate login trust from runtime command checks. Start by scoping every cross-company role to the smallest set of servers and databases. Never map external users to admin roles that can alter permissions or drop tables. Group partner users by the exact task they need to perform.

Next, define clear rules for what queries and commands external teams can run. Read-only analysts should only run select queries, while support engineers might need approval for update statements. When queries return rows with emails or card numbers, masking rules should rewrite matched fields in results. This approach lets partner teams do their jobs while keeping raw customer data safe.

Finally, keep one central log of every query and command run by external users. Native logs often sit in different cloud accounts with different formats and retention rules. Collecting command logs in one format helps auditors review partner activity fast during security checks.

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 inline in the protocol beside the service as an open-source proxy, a sidecar for your database or API. On every production query an agent or human runs, hoop.dev decides whether to pass, mask, block, or escalate it for review.

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 approval, and hoop.dev data masking rewrites sensitive fields in responses in memory. Explore the MIT-licensed project on GitHub.

Frequently asked questions

What is the main risk of sharing cloud accounts across companies?

The biggest risk is granting overly broad roles to external users. Once logged in, an external user can run any query or command that the role allows.

How should teams handle user offboarding in a partner setup?

Teams should rely on identity federation with the partner directory instead of local accounts. When the partner disables a user at home, federation blocks new logins right away.

How can we protect customer data when partner engineers query shared databases?

Apply data masking to rewrite emails, phone numbers, and card numbers in query results. This lets partner engineers debug issues while keeping sensitive customer fields protected.

Short role checks help teams work fast. Simple rules make each review clear. Good logs keep every team safe. Scoped keys stop bad changes early.

Teams test new role rules in staging first. Clear owner lists speed up each audit. Small role scopes cut down on risk. Regular log checks catch drift right away.

Save the open-source gateway.

hoop is MIT-licensed infrastructure for controlling how AI agents reach production data. Star hoophq/hoop so you can inspect it, deploy it, or share it when your team starts governing agent access.