Crates.io | buildchain |
lib.rs | buildchain |
version | 0.5.1 |
source | src |
created_at | 2017-08-07 17:53:05.157293 |
updated_at | 2023-10-13 15:05:33.915423 |
description | Software for creating and managing a distributed and reproducible chain of builds |
homepage | |
repository | https://github.com/pop-os/buildchain |
max_upload_size | |
id | 26789 |
size | 121,461 |
Software for creating and managing a distributed and reproducible chain of builds
Buildchain creates networks of several build, signing, and publishing nodes in order to securely and reliably deliver build artifacts to end users.
Note than one machine can participate in a network as more than one role. It is also possible to download network data as an observer, provided you have credentials.
Build nodes download input artifacts from a remote repository, usually a git source code repository. They then follow a set of build steps, usually a Dockerfile, to produce output artifacts. A manifest of the output artifacts and their shasum is created, which is then signed by either the build node or a signing node. Finally, the output artifacts and the signed manifest are published on the network, with a reference to the manifest placed in a secondary blockchain.
Signing nodes are networkless systems that communicate over a very simple serial protocol. They initialize a key from a hardware random number generator, and store it in memory. They receive a manifest, sign the manifest, and output the signature as well as their own public key. They build a secondary blockchain of their own for auditing purposes.
Publishing nodes collect the signed build artifacts from the build servers on the network. Once enough build servers have produced identical builds, they publish the blockchain of the primary build server as the primary blockchain, along with all referenced artifacts.