cefe5633e3
--- type: change description: Remove reference to Tutorial 4 from README fingerprint: AAZ6mXb8pcXY9AtOk/Be3fztonzrCs3Zy5DZNdST9uNI credentials: - type: pgp_signature pub_key_id: 95C46FA6A41148AC body: iQIzBAABAgAdFiEEJ6tQKp6olvZKJ0lwlcRvpqQRSKwFAl9a7cIACgkQlcRvpqQRSKzdHA/9F+zTI8f2Hxhhq5I9M8DOHPlRn4LRKuowK2dH417PmpqKUTHmTcgjK/4p8Iw9LhyQ0CMJYfbZNHPXzni/ThgGXdytACCp9uws5tFCLlktAr+4teMIRsDf8H2ZzUi9VLJAh8U9p7ZyTvhSbxOZLcetLcDWj4Su6/lD/J67bKHmyFbtRk3poV45ivNh5IzrUsN3r0wcNQmSxf44bDz5S+I219pC4lKhBweR1ps8MHij0kaRq2HLRr3hCEQBTEznR9vdpB6owJ4jnzydWRyJf7e5CBqFuaERFoSJbcMONb/J72C46Fu2CzOH9JntCcmpWCK8JYlrQTchf1ZIkhHbidcx0z3Aitb8j+WGZUSEwrdsBEKMEuV30wTNSE6k4s/srcZuo4Wu9EbXg384M9n5/z3z+YECWom6SmRz27iru5aNHzbs3mERs/k47fNIshZFhQo6H6wbKyGw6URKQfK1tLuucmxCQ0LkNp6SYT+ibxTg9F1U6WqChHcGNn/d/zbLz+XcZyFJatNSqNRoZq8oi0/USqkCoEJgHZzwEh6FjVHHqdd8J9A4x6dVe/F/20qPRCJKLV80XODzl7LLcNNcbLzvigobXAzhtb43NxSHCSFCr4SAiwfEsQD+u7jq2SCdzNYwxyz2JPxFiozV9EQiqaKOyQF1h6ZZb7SllrEBkmNhV/E= account: mediocregopher |
||
---|---|---|
.dehub | ||
accessctl | ||
cmd | ||
docs | ||
fs | ||
sigcred | ||
typeobj | ||
yamlutil | ||
.gitignore | ||
commit.go | ||
config.go | ||
diff.go | ||
Dockerfile.dehub-remote | ||
fingerprint_test.go | ||
fingerprint.go | ||
go.mod | ||
go.sum | ||
payload_change_test.go | ||
payload_change.go | ||
payload_comment.go | ||
payload_credential_test.go | ||
payload_credential.go | ||
payload_test.go | ||
payload.go | ||
project_test.go | ||
project.go | ||
README.md |
dehub
dehub aims to provide all the features of a git hosting platform, but without the hosting part. These features include:
User management - Authentication that commits come from the user they say they do, and fine-grained control over which users can do what.
Pull requests and issues - Facilitation of discussion via comment commits, and fine-grained (down to the file level) sign-off requirements.
Tags and releases - Mark releases in the repo itself, and provide immutable and verifiable git tags so there's never any funny business. (Not yet implemented)
Plugins: Extend all aspects of dehub functionality via executables managed in the repo itself (in the same style as git hooks). (Not yet implemented)
Key Concepts
To implement these features, dehub combines two key concepts:
First, repo configuration is defined in the repo itself. A file called
.dehub/config.yml
contains all information related to user accounts, their pgp
keys, branch and file level access controls, and more. Every commit must adhere
to the configuration of its parent in order to be considered verifiable. The
configuration file is committed to the repo like any other file would be, and so
is even able to define the access controls on itself.
Second, the commit message of every dehub commit contains a YAML encoded
payload, which allows dehub to extend git and provide multiple commit types,
each with its own capabilities and restrictions. Some example dehub commit types
are change
commits, comment
commits, and credential
commits.
Infrastructure (or lack thereof)
Because a dehub project is entirely housed within a traditional git project, which is merely a collection of files, any existing git or network filesystem infrastructure can be used to host any dehub project:
-
The most barebones git daemon server (with a simple pre-receive hook set up).
-
A remote SSH endpoint.
-
A mailing list (aka the old school way).
-
Network file syncing utilities such as dropbox, syncthing, or NFS.
-
Existing git project hosts like GitHub, Bitbucket, or Keybase.
-
Decentralized filesystems such as IPFS. (Not yet implemented)
Getting Started
The dehub project itself can be found by cloning
https://dehub.dev/src/dehub.git
.
Installation of the dehub tool is currently done via the go get
command:
go get -u -v dehub.dev/src/dehub.git/cmd/dehub
This will install the binary to your $GOBIN
path, which you'll want to put in
your $PATH
. Run go env
if you're not sure where your $GOBIN
is.
Once installed, running dehub -h
should show you the help output of the
command. You can continue on to the tutorials if you're not sure where to go
from here.
Tutorials
The following tutorials will guide you through the basic usage of dehub. Note that dehub is in the infancy of its development, and so a certain level of profiency with git and PGP is required in order to follow these tutorials.
- Tutorial 0: Say Hello!
- Tutorial 1: Create Your Own Project
- Tutorial 2: Access Controls
- Tutorial 3: Commit Sign-Off
Documentation
The SPEC is the best place to see every possible nitty-gritty detail of how dehub works. It attempts to be both human-readable and exhaustive in its coverage.
Other links
ROADMAP documents upcoming features and other work required on the project. If you're looking to contribute, this is a great place to start.
dehub-remote is a simple docker image which can be used to host a remote dehub project over http(s). The endpoint will automatically verify all pushed commits.
git-http-server is a small server which makes a git repo's file tree available via http. It will automatically render markdown files to html as well. git-http-server is used to render dehub's website.