System Design Atlas

Development platform for builds and artifacts

06 / 10Worked example

The overall architecture

Which isolation boundary limits access by an arbitrary build script?

The data contract leads to this topology: development interface → build API → job and authorisation store. The scheduler assigns attempts to isolated build workers. Workers read source control and write artifact bytes and provenance. A validation worker assesses the digest. The release API reads approval records → delivery adapter → target confirmation with digest. Internal modules are domain code boundaries; a separate process has its own operational lifecycle.

Starting point Bind completion to the current generation and deadline.

Assumptions for the example case

A fictional example design with one repository, a precisely specified build job, an isolated worker, an immutable artifact identified by digest and explicit release approval. Figures and quality goals are illustrative test assumptions. Full software supply-chain certification, production orchestration and arbitrary privileged builds are outside the scope.

Runtime architecture

Runtime architecture · Scheduler, isolated worker and digest path

Development interfaceRequest a build
Source controlC-151

Build platform

Build APIJob intake
Job and authorisation datastoreB-151 · Generation · Evidence
SchedulerGrant a lease
Isolated build workersBuild + upload
Artifact storageA-151 · H-151 · Provenance
Validation workerAssess the digest
Release APIRead the approval record
Delivery adapterTransfer the digest
Target systemConfirm the digest
Development interface → Build APIC-151 + D-5
Build API → job and authorisation storeB-151
Job and authorisation store → SchedulerQueued job
Scheduler → Build workerAttempt + generation
Build worker → Source controlRead C-151
Build worker → Artifact storageA-151 + provenance
Artifact storage → Validation workerCheck H-151
Validation worker → Job and authorisation storeValidation record
Release API → Job and authorisation storeRead F-151
Release API → Delivery adapterApprove H-151
Delivery adapter → Target systemDeliver the digest
Target system → release APIH-151 confirmed

The scheduler assigns generations; workers read source and write artifacts with provenance; the release path reads the digest-bound approval record.

Source code may contain arbitrary build steps. Run workers without platform-wide permissions. Each build receives only necessary inputs and restricted output paths.

Domain modules within the application

Inside the build process · Five domain modules

Job intakeSource + Definition
Attempt schedulingLease + Generation
Artifact finalisationBytes + provenance
Validation evidenceFindings bound to the digest
Release approvalExplicitly approve H-151

Job intake and attempt scheduling constrain execution; artifact finalisation, validation and release bind the same digest.

Job intake fixes the source revision and build definition. Attempt scheduling grants time-limited worker authorisation. Artifact finalisation checks bytes and provenance. Validation evidence binds findings to the digest. Release approval accepts explicitly approved artifacts.

Operational boundaries

Runtime
Development interface → build API → job and authorisation store. The scheduler assigns attempts to isolated build workers. Workers read source control and write artifact bytes and provenance. A validation worker assesses the digest. The release API reads approval records → delivery adapter → target confirmation with digest.
Persistence
Transactional datastore for build job B-151, build attempt and artifact A-151. Authoritative changes and retry results are stored together; external effects require their own evidence.

Isolate builds

Isolate builds

Run workers without platform-wide permissions.

Source code may contain arbitrary build steps.

A build receives only required inputs and limited output paths.

Alternative considered
A shared privileged host expands the impact of a compromised build.
Trade-off
Isolation increases operational effort.
Reassess
An explicitly privileged build requires its own security boundary.

Terms in this step

Isolate builds
A build receives only required inputs and limited output paths.

Try it yourself

A build script tries to read unrelated platform data. Which boundary must prevent access?

A hint for your attempt

Use the specific entities and conditions from this step. The two solution parts distinguish the decision from its evidenced outcome.

Compare with a possible solution
First part of the solution
The isolated worker receives only the source and output access needed by its own attempt.
Second part of the solution
Platform-wide permissions remain outside the worker. A build failure or untrusted script must not modify unrelated artifacts or jobs.

Apply to your project

Which corresponding assumption would you test first in your project? Consider this trigger: An explicitly privileged build requires its own security boundary.

Step 7 examines incomplete finalisation.