Skip to content
officialunofficialPublic

About

No description, website, or topics provided.

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

644 Commits

Folders and files

kit

kit logo with geometric solids and a fading blue perspective grid

status: alpha License: MIT OR Apache-2.0

kit is a content-addressed version control system written in Rust. It has commits, refs, branches and remotes. It treats signatures and attestations as part of the object model.

  • Every object ID is a BLAKE3 hash. A tree or a chunked blob uses the domain-bound root of a BLAKE3 Merkle tree over its contents. Any other object uses the hash of its canonical bytes.
  • Every commit carries an Ed25519 signature.
  • kit attest stores in-toto v1 Statements in DSSE envelopes. The commit hash is the subject.
  • Files above 1 MiB split into content-defined chunks. Unchanged chunks are reused; an edit stores the changed chunks and a new manifest.

Note

kit is alpha software (pre-1.0). The specs in docs/specs/ and the golden vectors in rust/tests/golden/ define the formats. APIs and CLI flags can change in any 0.x release.

Install

curl -sSfL https://kit.storage/install.sh | sh

The script downloads the release archive for your platform. It verifies the cosign signature of the archive, then the SHA256 sum. It installs kit into ~/.local/bin.

cosign verification is on by default. The script stops if cosign is not in PATH. The script accepts only archives that the release.yml workflow of this repository signed at a semver tag.

To pin a version, pass --version:

curl -sSfL https://kit.storage/install.sh | sh -s -- --version v0.10.0

To build from source, use Rust 1.99.1 or newer:

cargo install --git https://github.com/officialunofficial/kit kit-bin

kit supports Linux and macOS. On Windows, run kit under WSL. The Linux release archives need glibc 2.39 or newer. docs/INSTALL.md covers pinned versions, manual verification and updates.

Quick start

kit init                       # create .kit/ in the current directory
kit keygen                     # generate an Ed25519 signing key
echo hello > hi.txt
kit add hi.txt
kit commit -m "first commit"
kit log

The commit is signed with your key. To share it, add a remote and push:

kit remote add origin kit+file:///srv/kit/my-repo
kit push origin

Attest to the commit and verify the signature. Use jq to read the key ID from the attestation envelope.

kit attest --predicate-type https://example.com/sign-off/v1
pub=$(kit keygen --print-pubkey)
keyid=$(jq -er '.signatures[0].keyid' .kit/attestations/"$(kit rev-parse HEAD)"/*.dsse)
kit trust add "$keyid" "${pub#ed25519:}"
kit verify-attest

kit verify-attest trusts only the keys in your user-level trust-roots file. It refuses a trust-roots file inside the repository unless you pass the path explicitly. See docs/CLI.md for every command. If you come from Git, read docs/GUIDE-GIT-WORKFLOWS.md.

Non-goals

  • No shallow clone. kit clone --depth N is rejected with a usage error. A clone holds the full history, so every commit verifies with its ancestors. kit never silently makes a full clone when you ask for a shallow one.
  • No import of older repository layouts. kit reads only repositories in its own .kit/ layout. To bring history in, use kit git import on a Git upstream.
  • No Git compatibility layer. kit does not speak the Git wire protocol, read .git or shadow the git binary. kit git translates history in one direction at a time. docs/PARITY.md gives the reason for each and what would reopen it.
  • No submodules, hooks or git notes. Vendor a dependency, call kit from a script, and attach a signed attestation to a commit. docs/PARITY.md gives the reason for each and what would reopen it.
  • No Windows build. Use WSL.
  • No transport fallback. The URL scheme picks the transport. kit does not try another one when the first fails.
  • No meaning for attestation predicates. kit moves and verifies the bytes. The consumer decides what a predicate means.

Documentation

Doc For
docs/INSTALL.md Install channels, verification, updates
docs/CLI.md Subcommands, config keys, exit codes
docs/GUIDE-GIT-WORKFLOWS.md Git users and Git upstreams
docs/PARITY.md Where kit matches Git and where it differs
docs/VERIFY.md Verify a commit hash without repository access
docs/specs/ Wire-format and subsystem specs
docs/ARCHITECTURE.md Crate layout
docs/LIBKIT.md Embed kit with the libkit crate
docs/THREAT-MODEL.md Security boundaries
docs/RELEASE.md How a release is cut

Build and contribute

cd rust
cargo build --release          # binary: rust/target/release/kit
cargo test --workspace

CONTRIBUTING.md lists the checks that a change must pass. GOVERNANCE.md and MAINTAINERS.md describe who decides. Everyone who takes part follows the CODE_OF_CONDUCT.md. To report a security issue, follow SECURITY.md.

License

kit is dual-licensed under MIT or Apache-2.0, at your option. Unless you state otherwise, any contribution that you submit for inclusion is dual-licensed the same way.

About

No description, website, or topics provided.

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages