メインコンテンツへ移動 / Skip to main content

Authorization in Microservices──Shared Boundaries and Service Autonomy

When a product splits into services and adds chat or AI agents, separate shared data protection, feature authorization, administration and revocation.

Independent workshops manage their own doors inside a shared perimeter
General
Published on: November 25, 2026
Read time: 12 min
Author: Pochang Lab
Read time: 12 min

1. Centralize the boundaries that matter

A large product gradually separates into search, collaboration and reporting applications. A separate chat interface arrives, followed by an AI agent that performs tasks. The same person can now reach the same information through several entrances. A practical concern follows: could a chat answer reveal something the original application refuses to show?

My starting preference is to define the constraints that must hold across the product family, then let each service own its specific operational permissions within them. Which shared records a person can access, whether they can cross a tenant boundary, and whether a suspended account can continue working must remain coherent. Permission to use an editor or administer a service-specific template does not automatically belong in the original product.

This is not an invitation for every team to invent its own security machinery. Responsibilities can differ while identity conventions, shared constraints, decision records and testing practices remain common. Service autonomy should not mean inconsistent protection.

MSA here means microservice architecture. A separately sold application is not necessarily the same unit as an internal microservice, but both raise the question of who controls which boundary. This article proposes a design for a fictional SaaS product family. It does not describe any particular vendor’s internal implementation or a deployment I have measured. Official documentation was checked on November 25, 2026.

2. Separate the decisions hidden inside “permissions”

Single sign-on can make permissions feel unified. Authentication establishes identity; authorization decides what that identity may do. A common identity provider does not establish whether someone may read a particular document. OWASP distinguishes these responsibilities and recommends least privilege and denial by default. [1]

Before drawing the administration screen, I would assign responsibilities along these lines.

DecisionPrimary ownerReason for the boundary
User identity, tenant membership and suspensionShared identity and organization platformApplications must agree on the person and customer organization
Reading, changing and exposing fields of shared dataDomain that owns the dataDifferent entrances must not relax the protection ceiling
Publishing reports or administering templatesService providing the operationKeep business meaning close to responsibility for change
Menu visibility and enabled buttonsEach application, following authorization resultsImprove usability without becoming the security barrier
Colors, ordering and personal layoutApplication preferencesUsually presentation preferences rather than access rights

Commercial entitlement is another question: has the customer purchased this feature? A contract can include a feature without authorizing every employee to administer it. Conversely, if a layout change exposes confidential fields, retrieving those fields requires authorization. Calling something a presentation setting must not bypass data protection.

Related applications do not have to display identical information. A chat interface may deliberately expose a summary while the source application provides details. The important properties are that no entrance exceeds the common ceiling and any difference has an explainable purpose.

Workshops with different tools beside a shared archive

Rules protecting shared material and rules governing each workshop’s tools answer different questions.

3. Separate administration, ownership, decisions and enforcement

“Centralized authorization” can mean at least four things: one place to administer permissions, one authoritative source of rules, one place to calculate decisions, or one place to stop unauthorized operations. These choices need not move together.

A policy decision point, or PDP, determines whether access is allowed. A policy enforcement point, or PEP, applies that decision to an actual operation. APIs can consult a shared decision service or use an engine located close to each service. Open Policy Agent’s deployment guide compares local engines with a centralized service in terms of latency, availability and resource usage. Central placement is not inherently a failed design. [2]

Open Policy Agent documents logically centralized policy management alongside distributed evaluation. Rules can be delivered to engines near the services that use them. Shared rules therefore do not necessarily require a synchronous call to the original product’s authorization API on every request. [3]

What I want to avoid is a design in which every new feature requires changing the original product’s database or coordinating its release. Imagine adding an editing feature and having to add a dedicated column to a shared role table, then wait for changes to the original product’s UI and API. The services may run separately, but their delivery schedules remain bound together.

A dependency on a stable authorization API can be manageable. Such an API accepts a principal, an action, a resource and relevant context. Network communication alone does not prove tight coupling. Ask how far one side’s changes propagate, what stops during an outage, and whether a team needs to understand another service’s internals to make a change.

I would normally avoid having every service query the original product’s authorization database directly. Table changes then propagate across service boundaries, while the owning domain loses control over how access decisions are made. Prefer an explicit API contract, versioned policy distribution, or events with clearly assigned ownership.

4. Combine shared data constraints with local permissions

Consider three applications: document storage, report editing and chat. Sato can read documents in a particular project but cannot publish reports to the entire organization. A role meaning “can read documents” should not silently imply “can publish reports.”

The reporting service decides whether Sato can perform its publishing operation. When it retrieves source material, the document API decides whether that principal may receive those records and fields. A local publishing permission cannot override a refusal from the data owner. If publishing expands the audience, the design must also enforce the source material’s sharing conditions or the derived report’s publication policy.

The following model describes how responsibilities combine. It is a discussion aid rather than a requirement to implement an identical expression in every service.

text
Permit execution when
  shared account and tenant constraints hold
  AND the service permits the operation
  AND required access to the target data is permitted
  AND delegation and execution constraints hold, where relevant

Under this proposal, local settings cannot override a shared prohibition. Policy languages differ in how they combine permits and denials, so test this property in the chosen engine. Do not rely on matching role names. A document-sharing administrator and an editor-configuration administrator may have very different powers.

Chat requests for the same document must pass through the same data boundary after the user and tenant have been established through a trusted path. Merely accepting a user ID or tenant ID supplied by the client does not satisfy that requirement. An API gateway may lack the record-level context needed for a decision, so the service handling the data must perform the necessary checks.

A document passes through two successive checkpoints

Local permission operates within shared protection. Approval from only one side is insufficient.

A service can own permission to use a feature, but it must enforce that permission when the operation runs. Hiding a button while leaving its API callable is not access control. OWASP API5:2023 covers missing function-level authorization, including ordinary users reaching administrative operations. UI visibility and server-side enforcement should follow the same permission semantics. [4]

Data copied from an API into a search index or another database introduces continuing obligations. Checking the initial transfer does not authorize every later read. Search results, notifications, CSV exports, history and generated reports need identifiable owners and publication rules too.

5. One administration experience can have several rule owners

Local ownership has a real weakness: administrators may have to hunt across applications. A customer sees one product family, yet an employee transfer requires visiting several settings screens and guessing where old grants remain. Developer independence can become customer workload.

I favor integrating the administration experience while separating ownership of permission definitions. A shared portal can show a selected employee’s service permissions, settings links, grant origins and change history. Changes go to the relevant service’s administration API. Instead of reproducing every domain rule, the portal uses the settings and delegation limits exposed by each service.

There is no need to start with a vast unified console. Single sign-on, stable user identifiers, deep links into settings and a cross-service access inventory can provide a useful first step. Customers and development teams need different kinds of unification.

Google’s product family illustrates why visible settings and internal infrastructure are separate questions. A product-specific sharing dialog does not demonstrate an independent authorization backend. The 2019 Zanzibar paper reports a shared authorization system serving many Google services, including Drive and Calendar. It is a published historical example, not a guarantee about every Google product’s present architecture. [5]

Likewise, spam classification and personal layout preferences should not be treated as equivalent to document access. The useful lesson is that user-facing units of work and shared infrastructure can be designed separately, rather than assuming a shared brand requires a single settings screen.

Bulk administration also needs to represent partial failure. If one of three services fails to apply a change, a simple “Saved” message is misleading. Retries, protection against duplicate application and service-specific progress are part of the integrated experience.

6. The cost of loose coupling appears in revocation time

Distributed evaluation and replicated data can retain old information. Suspending a user centrally may leave cached decisions, existing tokens, search indexes or queued jobs acting on earlier permission. A successful settings save and the moment all access paths stop working are not necessarily the same event.

OpenFGA distinguishes a latency-oriented query mode that can use caches from a higher-consistency mode that queries the database without using those caches. With caching enabled, a query immediately after a change may reflect an earlier decision. Choosing an authorization product does not remove the need to design revocation. [6]

I would define acceptable propagation time by the risk of the operation. For illustration, a system might permit up to 60 seconds for an ordinary read-permission update while requiring fresh state before external sharing. Those 60 seconds are an invented design assumption, not a recommendation or a vendor guarantee. An immediate-stop requirement needs a path that will not continue accepting stale grants.

Use events for prompt propagation and reconciliation to recover missed updates. Define cache expiration. Recheck authorization when a long-running job starts or before a consequential write. Apply revocation to replicated data as well. These operational responsibilities accompany distributed autonomy.

A central outage also needs an explicit policy. For sensitive reads and consequential operations, my default is to stop when permission cannot be established. Previously validated local policies may be usable within defined limits and lifetimes. “Allow everyone during an outage” is not a resilience strategy I would adopt.

If no team can operate distributed updates and revocation, a central decision API can be the better choice. A clearly owned, monitored central service is preferable to engines scattered across teams with nobody responsible for their policy freshness or incident response.

7. AI can help build an admin screen; it does not define permission semantics

If AI helps generate forms and API scaffolding, “the original product already has an admin screen” becomes a weaker reason to put all new settings there. I support that direction. The actual productivity gain depends on the team and requirements; this article assigns no universal multiplier.

Forms and lists are only part of the work. Someone still has to define who may grant access to whom, how to prevent self-escalation and how existing roles migrate. A distribution decision based only on UI implementation cost can accumulate support and audit costs later.

An AI agent is also a new access path. Reading a document, producing a summary and sending the summary outside the organization are distinct actions. Permission to read does not imply permission to send anywhere. A prompt telling a model to keep secrets cannot replace server-side authorization.

A messenger silhouette carries one delegated document within a defined route

A new proxy must remain within both the user’s permissions and the delegated task.

For an agent acting on a user’s behalf, combine the user’s permissions with the application’s allowed scope, the specific delegation and its expiration. RFC 8693 defines token exchange and delegation mechanisms, including ways to represent the subject and actor. Adopting it does not automatically enforce a product’s required restrictions. The receiving API still needs to validate audience, scope, resource and the relationship between identities. [7]

Unattended overnight work may instead use a dedicated service principal with appropriate permissions. Do not issue an all-powerful key because no live user is present. Record who requested the task, which application or agent executed it, the resource, action, authorization basis and policy version. “The AI did it” should not be the end of an investigation.

8. Establish shared limits, then expand autonomy

My preferred architecture connects shared data constraints and service-owned operational permissions through explicit contracts. Neither putting everything in the center nor making everything independent is a satisfactory default.

DesignMy assessmentCondition for adopting or reconsidering it
Services directly query the original product’s databaseNormally avoidInternal schema dependencies amplify changes
Services consult a shared PDPStrong optionManage latency, outages, load and policy changes
Shared policies distributed for local evaluationCandidate when autonomy mattersOperate revocation, versioning and monitoring
Each service independently redefines shared data accessAvoidProtection ceilings diverge by entrance
Services manage features inside shared constraintsPreferred starting pointLocal permission cannot override shared refusal

A small product owned by one team, with permissions released alongside its features, may be simpler with centralized machinery. Complex sharing relationships across the product family can also justify a common authorization system. When independent teams deliver distinct operations at different speeds, separating rule ownership becomes more valuable.

Start with an inventory of boundaries rather than a vendor shortlist. Choose one representative user and one resource. Write down what should be readable and changeable through the original UI, another app, chat and batch processing. Separate common prohibitions from service-specific operations, then assign an owner and update path to each rule.

Finally, test direct API calls, substituted tenant identifiers, cached access immediately after suspension, administrators attempting self-escalation and agents attempting broader actions than delegated. Demonstrating that a button disappears in the normal UI is less persuasive than showing that another entrance cannot cross the boundary.

The value of centralization is that every entrance honors the same necessary promises. Share those promises, and let each service govern its own work within them. That is the form of autonomy I would choose: freedom accompanied by explicit responsibility.

References

  1. [1]OWASP — Authorization Cheat Sheet. Authentication, authorization, least privilege and enforcement. ↩
  2. [2]Open Policy Agent — How to Deploy OPA. Local and centralized deployment models. ↩
  3. [3]Open Policy Agent — Management APIs and Architecture. Logically centralized management and distributed evaluation. ↩
  4. [4]OWASP — API5:2023 Broken Function Level Authorization. Protecting operations and administrative functions. ↩
  5. [5]Google Research — Zanzibar: Google’s Consistent, Global Authorization System. A shared authorization system reported in 2019. ↩
  6. [6]OpenFGA — Query Consistency Modes. Caching and update visibility. ↩
  7. [7]IETF — RFC 8693: OAuth 2.0 Token Exchange. Token exchange, delegation, subjects and actors. ↩

Related Articles

August 28, 2026

Your SaaS AI Interface Can Be Temporary: A Two-Track Strategy for the Software-for-Agents Era

Should SaaS companies invest in embedded AI or go all-in on APIs and MCP? A 2026 evidence-based two-track strategy for earning today's revenue while building an agent-native future.

TechnologyRead more
February 12, 2026

What Is Claude Cowork, and Does It Accelerate “SaaS Is Dead”?

A practical analysis of Claude Cowork features, pricing, safety, and competitive positioning to evaluate whether it accelerates the “SaaS is dead” thesis.

AIRead more
November 16, 2026

How Big Does a Company Have to Be to Get Slow?

Why can a feature spend a year in the queue? Amazon, Google, Toyota and Japan Airlines offer different ways to connect authority, evidence and action.

TechnologyRead more
October 20, 2026

Ten AI Stories from the First Half of October 2026: Gemini 4 Argon, GPT-6.1 Sol, Claude Haiku 5.5 and Meta’s 816B Open Model

Ten AI stories from 1–19 October 2026 that matter to people who use, build or work alongside AI — checked against primary sources and reporting. New models and their prices, agents everywhere, a safety report, the EU AI Act timeline and new rules for voice actors’ voices.

TechnologyRead more
October 12, 2026

A Horse-Racing Holiday with an AI Agent: Betting All 24 Races in the Morning on a ¥15,000 Budget, Then Just Cheering

A casual racing fan worked with an AI agent to place bets on all 24 races at Tokyo and Kyoto in the morning, then spent the day cheering from a custom screen that grew through conversation. The day ended more than ¥10,000 down. This is a record of why it was still fun, what a fixed budget changes, and why a one-day HTML page worked so well.

LifestyleRead more

From the Pocho Lab

Try this next