How google/oss-rebuild works
OSS Rebuild reproduces selected upstream open-source package builds and publishes attestations that can be checked against upstream artifacts. The main user path is package/version lookup through the CLI or dashboard to stored rebuild and attestation data; the service API also exposes rebuild and inference operations. Ecosystem-specific rebuilders cover npm, PyPI, and Crates.io, while the README documents successful attestation publication and verification. Additional branches include automated analysis, an AI-assisted agent, and snapshot-backed dashboard reads. Some service internals were not sampled, so those subsystem links are documented or omitted rather than inferred.
Main entry points: rebuild.go Rebuild Workflow · storage.go Attestation Store · apiservice API Operations · main.go Core API
Components 22
User Access
- Rebuild CLI
cmd/oss-rebuild/main.go - Web Dashboard
cmd/dashboard/main.go
Service APIs
- Core API
cmd/api/main.go - API Operations
internal/api/apiservice - Agent API
cmd/agent-api/main.go - Inference Service
internal/api/inferenceservice/infer.go
Rebuild Engine
- Rebuild Workflow
pkg/rebuild/rebuild/rebuild.go - npm Rebuilder
pkg/rebuild/npm/rebuild.go - PyPI Rebuilder
pkg/rebuild/pypi/rebuild.go - Crates.io Rebuilder
pkg/rebuild/cratesio/rebuild.go - Debian Rebuilder
pkg/rebuild/debian/rebuild.go - Maven Rebuilder
pkg/rebuild/maven/rebuild.go - Artifact Stabilizer
pkg/stabilize/stabilizer.go
Analysis and Automation
- Rebuild Agent
internal/agent/session.go - Network Analyzer
analyzer/network/analyzerservice/analyze.go - System Analyzer
analyzer/system/analyzerservice/analyze.go - Package Feed
pkg/feed/tracker.go
Data and Attestations
- Attestation Store
pkg/rebuild/rebuild/storage.go - Run Database
internal/db/db.go - Snapshot Service
internal/snapshot/snapshot.go
Other components
- Package User
- Upstream Ecosystems
Connections 23
- Package User → Rebuild CLI: requests rebuild data
README.md - Package User → Web Dashboard: explores rebuilds
README.md - Rebuild CLI → Attestation Store: reads rebuild data
README.md - Web Dashboard → Snapshot Service: reads snapshot data
cmd/dashboard/main.go - Core API → API Operations: routes requests
cmd/api/main.go - Core API → Inference Service: configures inference
cmd/api/main.go - API Operations → Rebuild Workflow: serves rebuild operations
README.md - Agent API → Rebuild Agent: serves agent operations
cmd/agent-api/main.go - Rebuild Agent → Rebuild Workflow: iterates rebuild work
internal/agent/session.go - Rebuild Workflow → npm Rebuilder: supports ecosystem builds
README.md - Rebuild Workflow → PyPI Rebuilder: supports ecosystem builds
README.md - Rebuild Workflow → Crates.io Rebuilder: supports ecosystem builds
README.md - Rebuild Workflow → Debian Rebuilder: supports rebuilds
- Rebuild Workflow → Maven Rebuilder: supports rebuilds
- Upstream Ecosystems → Rebuild Workflow: provides package inputs
README.md - Rebuild Workflow → Attestation Store: publishes attestations
README.md - Upstream Ecosystems → Attestation Store: artifact comparison
README.md - Package Feed → Network Analyzer: enqueues analysis
- Package Feed → System Analyzer: enqueues analysis
- Network Analyzer → Attestation Store: writes analysis attestations
- System Analyzer → Attestation Store: writes analysis attestations
- API Operations → Run Database: persists run state
- Package User → Attestation Store: verifies signatures
README.md