--- type: change description: change pre-receive hook from flag to sub-command fingerprint: AN/k4s8msJaAVVOrm8dQPLpb75lPHy/AFEuyicQfbn1W credentials: - type: pgp_signature pub_key_id: 95C46FA6A41148AC body: iQIzBAABAgAdFiEEJ6tQKp6olvZKJ0lwlcRvpqQRSKwFAl6l8CgACgkQlcRvpqQRSKxA2A//Q8oJFH10/HYp38bG6OUem7nIg7+J0uC6jCpsP3P66jHVQ2+U0tQ1zdrlZLrufVPPTrYuFnY3m2qezl47IOQnMw5qLN0/+8/tv2rWvG+1Ffz/dGhn215r7D59bgihPiyBSEZW6l2uty/LBWHyHHOn4TgGsi49BH+E/CdTS1Wk+6eWcJHBMOjrzdzTq3Im75HU7GRkvVlyuX69dW1tNlItmcEJ0moRCoc5WHUwn64RRjlxQMkMMMNtWL2MdW9/fbVDNQHtS8L91bsUcyp2uAQW0xqVzezen3+LNxMuxpIjD/FRB3NEnkEHspeorIYCTYWxWZaQnSYB26vri/LUSpKDPH6kQ4yBexZDfwU1xI6qJARNPpczUdn0XycddXAHhtlig9Vbx0x8Y7CiuKejhMtkcNK2Zvtt+AYVoF2gCeRNBXbRXRTt3WBNyvju3NeiZD17cIi6XIOIFkpm4hFGrdMEjfeZFsUln3Jt445t1Whg3DIl6rgcS/uVpz01c6OZvH05o0JncuvlMU5akd0i+0j1L7+zH38vj3NC8rLpy4ECnnH72yAnvR2TSB7KVtjVZB3o8VAiQPFAaDn0A8vkrf63/jcyiAFhL/Ee8u38richLfzghjCJJ6JVg61OevlQ6tH+zuzH2+5TleCpjESNZZRu9OclfEFeB/AO5qYY4I38RM4= account: mediocregopher
|3 years ago|
|.dehub||3 years ago|
|accessctl||3 years ago|
|cmd||3 years ago|
|fs||3 years ago|
|sigcred||3 years ago|
|typeobj||3 years ago|
|yamlutil||3 years ago|
|.gitignore||3 years ago|
|Dockerfile.dehub-remote||3 years ago|
|README.md||3 years ago|
|ROADMAP.md||3 years ago|
|SPEC.md||3 years ago|
|commit.go||3 years ago|
|config.go||3 years ago|
|diff.go||3 years ago|
|fingerprint.go||3 years ago|
|fingerprint_test.go||3 years ago|
|go.mod||3 years ago|
|go.sum||3 years ago|
|payload.go||3 years ago|
|payload_change.go||3 years ago|
|payload_change_test.go||3 years ago|
|payload_comment.go||3 years ago|
|payload_credential.go||3 years ago|
|payload_credential_test.go||3 years ago|
|payload_test.go||3 years ago|
|project.go||3 years ago|
|project_test.go||3 years ago|
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.
Plugins*: Extend all aspects of dehub functionality via executables managed in the repo itself (in the same style as git hooks).
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 YAML encoded metadata,
which allows dehub to extend git and provide multiple commit types, each with
its own capabilities and restrictions. Some example dehub commit types are
comment commits, and
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).
Existing git project hosts like GitHub, Bitbucket, or Keybase.
Decentralized filesystems such as IPFS*.
* Planned feature, but not yet implemented.
The dehub project itself can be found by cloning
Installation of the dehub tool is currently done via the
go get command:
go get dehub.dev/src/dehub.git/cmd/dehub
This will install the binary to your
$GOBIN path, which you'll want to put in
go env if you're not sure where your
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
The following tutorials will guide you through the basic usage of dehub. As dehub is still very much in development a high level of git and PGP profiency is still required in order to use dehub effectively.
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.
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.