# seismicsystems/seismic-images architecture

> Architecture diagram of the GitHub repository seismicsystems/seismic-images, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-16). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/seismicsystems/seismic-images
- Repository: https://github.com/seismicsystems/seismic-images

## Overview

This repository defines confidential-VM operating-system images, especially Seismic TDX images, alongside inherited Flashbox and L2 image variants. The Seismic workflow is image composition, cloud-specific measurement generation, publication of image identity and founding assets, then deployment and attestation by consumers. The tree and README support these product branches; unsampled service wiring and build internals are not inferred. Flashbox command behavior is shown directly in its sampled shell helper.

Main entry points: [`modules/seismic/mkosi.conf`](https://github.com/seismicsystems/seismic-images/blob/seismic/modules/seismic/mkosi.conf) (Seismic image), [`scripts/seismic/image_json.sh`](https://github.com/seismicsystems/seismic-images/blob/seismic/scripts/seismic/image_json.sh) (TDX measurements), [`README.md`](https://github.com/seismicsystems/seismic-images/blob/seismic/README.md) (Published assets), [`modules/flashbox/common/searchersh.c`](https://github.com/seismicsystems/seismic-images/blob/seismic/modules/flashbox/common/searchersh.c) (Searcher shell)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_seismic["Seismic image"]
  node_seismic_image["Seismic image<br/>[mkosi.conf]"]
  node_seismic_services["Node services<br/>[system]"]
  node_azure_target["Azure TDX<br/>[seismic.conf]"]
  node_gcp_target["GCP TDX<br/>[mkosi.conf]"]
end

subgraph group_trust["Measurements and trust"]
  node_measurement["TDX measurements<br/>[image_json.sh]"]
  node_azure_measure["Azure measurement"]
  node_gcp_measure["GCP measurement"]
end

subgraph group_release["Release artifacts"]
  node_image_record["Image record<br/>[image_json.sh]"]
  node_founding_inputs["Founding inputs<br/>[sources.yaml]"]
  node_published_assets["Published assets<br/>[README.md]"]
  node_azure_storage[("Azure blob")]
  node_github_release["GitHub release"]
end

subgraph group_flashbox["Flashbox runtime"]
  node_flashbox_shell["Searcher shell<br/>[searchersh.c]"]
  node_flashbox_toggle["Network toggle<br/>[toggle]"]
  node_flashbox_l1["Flashbox L1<br/>[mkosi.conf]"]
  node_flashbox_l2["Flashbox L2<br/>[mkosi.conf]"]
end

node_operator(("Image operator"))
node_consumer(("Deployment consumer"))

node_operator -->|"builds"| node_seismic_image
node_seismic_image -->|"bundles"| node_seismic_services
node_seismic_image -->|"targets"| node_azure_target
node_seismic_image -->|"targets"| node_gcp_target
node_operator -->|"measures"| node_azure_measure
node_operator -->|"measures"| node_gcp_measure
node_azure_measure -->|"produces"| node_measurement
node_gcp_measure -->|"produces"| node_measurement
node_measurement -->|"identifies image"| node_image_record
node_seismic_image -->|"supplies binaries"| node_founding_inputs
node_operator -->|"publishes"| node_published_assets
node_published_assets -->|"uploads VHD"| node_azure_storage
node_published_assets -->|"publishes assets"| node_github_release
node_github_release -->|"serves measurements"| node_consumer
node_azure_storage -->|"serves image"| node_consumer
node_consumer -->|"verifies image"| node_measurement
node_flashbox_l1 -->|"includes helper"| node_flashbox_shell
node_flashbox_shell -->|"executes"| node_flashbox_toggle
node_flashbox_l2 -.->|"shares common layer"| node_flashbox_shell

click node_seismic_image "https://github.com/seismicsystems/seismic-images/blob/seismic/modules/seismic/mkosi.conf"
click node_seismic_services "https://github.com/seismicsystems/seismic-images/tree/seismic/modules/seismic/mkosi.extra/etc/systemd/system"
click node_azure_target "https://github.com/seismicsystems/seismic-images/blob/seismic/images/seismic.conf"
click node_gcp_target "https://github.com/seismicsystems/seismic-images/blob/seismic/mkosi.profiles/gcp/mkosi.conf"
click node_measurement "https://github.com/seismicsystems/seismic-images/blob/seismic/scripts/seismic/image_json.sh"
click node_azure_measure "https://github.com/seismicsystems/seismic-images/blob/seismic/scripts/gcp_measurements_to_dcap.sh"
click node_gcp_measure "https://github.com/seismicsystems/seismic-images/blob/seismic/scripts/gcp_measurements_to_dcap.sh"
click node_image_record "https://github.com/seismicsystems/seismic-images/blob/seismic/scripts/seismic/image_json.sh"
click node_founding_inputs "https://github.com/seismicsystems/seismic-images/blob/seismic/modules/seismic/sources.yaml"
click node_published_assets "https://github.com/seismicsystems/seismic-images/blob/seismic/README.md"
click node_flashbox_shell "https://github.com/seismicsystems/seismic-images/blob/seismic/modules/flashbox/common/searchersh.c"
click node_flashbox_toggle "https://github.com/seismicsystems/seismic-images/blob/seismic/modules/flashbox/common/mkosi.extra/usr/bin/toggle"
click node_flashbox_l1 "https://github.com/seismicsystems/seismic-images/blob/seismic/modules/flashbox/flashbox-l1/mkosi.conf"
click node_flashbox_l2 "https://github.com/seismicsystems/seismic-images/blob/seismic/modules/flashbox/flashbox-l2/mkosi.conf"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_seismic_image,node_seismic_services,node_azure_target,node_gcp_target toneBlue
class node_measurement,node_azure_measure,node_gcp_measure toneAmber
class node_image_record,node_founding_inputs,node_published_assets,node_azure_storage,node_github_release toneMint
class node_flashbox_shell,node_flashbox_toggle,node_flashbox_l1,node_flashbox_l2 toneRose
class node_operator,node_consumer toneIndigo
```

## Components

### Seismic image

- [Seismic image](https://github.com/seismicsystems/seismic-images/blob/seismic/modules/seismic/mkosi.conf): `modules/seismic/mkosi.conf`
- [Node services](https://github.com/seismicsystems/seismic-images/tree/seismic/modules/seismic/mkosi.extra/etc/systemd/system): `modules/seismic/mkosi.extra/etc/systemd/system`
- [Azure TDX](https://github.com/seismicsystems/seismic-images/blob/seismic/images/seismic.conf): `images/seismic.conf`
- [GCP TDX](https://github.com/seismicsystems/seismic-images/blob/seismic/mkosi.profiles/gcp/mkosi.conf): `mkosi.profiles/gcp/mkosi.conf`

### Measurements and trust

- [TDX measurements](https://github.com/seismicsystems/seismic-images/blob/seismic/scripts/seismic/image_json.sh): `scripts/seismic/image_json.sh`
- [Azure measurement](https://github.com/seismicsystems/seismic-images/blob/seismic/scripts/gcp_measurements_to_dcap.sh): `scripts/gcp_measurements_to_dcap.sh`
- [GCP measurement](https://github.com/seismicsystems/seismic-images/blob/seismic/scripts/gcp_measurements_to_dcap.sh): `scripts/gcp_measurements_to_dcap.sh`

### Release artifacts

- [Image record](https://github.com/seismicsystems/seismic-images/blob/seismic/scripts/seismic/image_json.sh): `scripts/seismic/image_json.sh`
- [Founding inputs](https://github.com/seismicsystems/seismic-images/blob/seismic/modules/seismic/sources.yaml): `modules/seismic/sources.yaml`
- [Published assets](https://github.com/seismicsystems/seismic-images/blob/seismic/README.md): `README.md`
- **Azure blob**
- **GitHub release**

### Flashbox runtime

- [Searcher shell](https://github.com/seismicsystems/seismic-images/blob/seismic/modules/flashbox/common/searchersh.c): `modules/flashbox/common/searchersh.c`
- [Network toggle](https://github.com/seismicsystems/seismic-images/blob/seismic/modules/flashbox/common/mkosi.extra/usr/bin/toggle): `modules/flashbox/common/mkosi.extra/usr/bin/toggle`
- [Flashbox L1](https://github.com/seismicsystems/seismic-images/blob/seismic/modules/flashbox/flashbox-l1/mkosi.conf): `modules/flashbox/flashbox-l1/mkosi.conf`
- [Flashbox L2](https://github.com/seismicsystems/seismic-images/blob/seismic/modules/flashbox/flashbox-l2/mkosi.conf): `modules/flashbox/flashbox-l2/mkosi.conf`

### Other components

- **Image operator**
- **Deployment consumer**

## Connections

- Image operator → Seismic image: builds (evidence: `README.md`)
- Seismic image → Node services: bundles (evidence: `README.md`)
- Seismic image → Azure TDX: targets (evidence: `README.md`)
- Seismic image → GCP TDX: targets (evidence: `README.md`)
- Image operator → Azure measurement: measures (evidence: `README.md`)
- Image operator → GCP measurement: measures (evidence: `README.md`)
- Azure measurement → TDX measurements: produces (evidence: `README.md`)
- GCP measurement → TDX measurements: produces (evidence: `README.md`)
- TDX measurements → Image record: identifies image (evidence: `README.md`)
- Seismic image → Founding inputs: supplies binaries (evidence: `README.md`)
- Image operator → Published assets: publishes (evidence: `README.md`)
- Published assets → Azure blob: uploads VHD (evidence: `README.md`)
- Published assets → GitHub release: publishes assets (evidence: `README.md`)
- GitHub release → Deployment consumer: serves measurements (evidence: `README.md`)
- Azure blob → Deployment consumer: serves image (evidence: `README.md`)
- Deployment consumer → TDX measurements: verifies image (evidence: `README.md`)
- Flashbox L1 → Searcher shell: includes helper
- Searcher shell → Network toggle: executes (evidence: `modules/flashbox/common/searchersh.c`)
- Flashbox L2 → Searcher shell: shares common layer
