Chapter III · Area 10 of 12

Security & Trust Boundaries

The Question for Our ShopMay a shipping carrier change the status of any order?

Here you will learn how to build trust limits, accesses and protections into your design.

Three questions for every access

  1. Where does trust change?

    Boundaries & threats

    The tracking message from the shipping carrier comes from outside; the shop checks the signature before processing it.

  2. Who may do what?

    Identity & permissions

    The payment module receives its provider token at runtime; the invoice worker writes R-882 but cannot change prices.

  3. Where does the structure weaken protection?

    Structural risks

    If the order and shipping services share a table, there is no clear owner, and every change has to be made together.

This is how the building blocks hang together

Trust boundaries mark where protection is needed and where trust changes. Threat modelling derives measures for permissions, identities and secrets from them; shared data and tightly coupled services show structural risks that weaken these boundaries.

ActivityThreat ModelingThreat Modeling examines threats, attack paths and safeguards in the system design.ConceptTrust Boundariesshow where threat modelling examines inputs, identities and data flowsPrincipleLeast Privilegelimits the impact of compromised identities and faulty componentsConceptIdentity & Permissionsimplement identity and permission checks on protected actionsConceptSecrets Managementdenote confidential credentials whose misuse is assessed in the threat modelRiskShared databaseblurs data ownership and widens the possible access pathsAnti-patternDistributed Monolithcouples services tightly; an attack or fault therefore hits several parts
Relations: Trust Boundaries show where threat modelling examines inputs, identities and data flows; Least Privilege limits the impact of compromised identities and faulty components; Identity & Permissions implement identity and permission checks on protected actions; Secrets Management denote confidential credentials whose misuse is assessed in the threat model; Shared database blurs data ownership and widens the possible access paths; Distributed Monolith couples services tightly; an attack or fault therefore hits several parts.

Your learning path through the area

Here you clarify whether a shipping carrier may change the status of any order. From this you derive trust boundaries, permissions, identity checks and the handling of credentials. Each building block shows its theme at our shop.

  1. Trust Boundaries

    Standalone conceptBoundaries

    This is what you learnYou can assign data across trust boundaries to a technical and business audit.

    In the shopA shipping partner sends a tracking message to the shop. The shop verifies the signature and then checks whether the partner is allowed to update this order.

    Trust Boundaries Open
  2. Threat Modeling

    Standalone conceptBoundaries

    This is what you learnYou can traceably link threat, attack path, impact and appropriate protection measures for a specific shop flow.

    In the shopThe team looks at an incoming shipment message and asks if a compromised partner could change third-party order status.

    Threat Modeling Open
  3. Least Privilege

    Standalone conceptPermissions

    This is what you learnYou can limit a service’s access to the data and actions that its specific task requires.

    In the shopThe invoice worker reads order data and writes invoice files. He does not need permission to change prices or accounts in the shop.

    Least Privilege Open
  4. Identity & Permissions

    Overview & comparisonPermissions

    This is what you learnYou can separately track identity verification and permission verification on a shop access.

    In the shopA registered customer opens an order page. The shop checks the session token and then compares the customer identity with the order owner.

    Identity & Permissions Open
  5. Authorization

    Standalone concept

    This is what you learnPermit actions through explicit access rules. Assess the result against this limit: Distributed access paths can hold different policy versions.

    In the shopThe shop example uses the existing shared database and seven modules. Any added service or deployment model is a hypothetical extension. A support agent authenticates to the shop back office. When opening order B-1042, the service checks her support role, customer relationship, and requested action. She may read status and shipping history but cannot trigger payment again. The rule is applied server-side on every access and audited with subject, resource, and outcome. A UI toggle alone would not protect the operation.

    Authorization Open
  6. Authentication

    Standalone concept

    This is what you learnEstablish identity traceably at trust boundaries. Assess the result against this limit: A valid sign-in does not answer an authorization question.

    In the shopThe shop example uses the existing shared database and seven modules. Any added service or deployment model is a hypothetical extension. A customer signs in to the shop with a passkey. The identity provider verifies the cryptographic proof and issues a short-lived session token, which the shop validates on later requests. The order service now knows the authenticated user but still applies its order rules to decide which order may be shown. The team limits token lifetime, protects session cookies, and records failed sign-ins without storing secrets.

    Authentication Open
  7. Secrets Management

    Standalone conceptPermissions

    This is what you learnYou can manage access data via provision, use, rotation and revocation in a controlled manner.

    In the shopThe shop uses a provider access token for payment requests. A central runtime service provides it to the payment module and supports the change to a new key.

    Secrets Management Open
Afterwards in the learning path · area 11Evolution & assessment

Connections to other areas

These concepts complement this area’s perspective. Their full explanations are available through their primary subject area.