A read-only clone of the dehub project, for until dehub.dev can be brought back online.
Go to file
mediocregopher d5f172875e Refactor all documentation
---
type: change
message: |-
  Refactor all documentation

  * INTRODUCTION.md has been changed into README.md, and been essentially
  rewritten.

  * ROADMAP has been updated significantly.

  * SPEC has been slightly updated, mostly to add a header section indicating that
  it is an incomplete document.
change_hash: ALqHmxfJSBVUIHrI4B9bGjeQpKvBUwL6GPmkDfjhu9uf
credentials:
- type: pgp_signature
  pub_key_id: 95C46FA6A41148AC
  body: iQIzBAABAgAdFiEEJ6tQKp6olvZKJ0lwlcRvpqQRSKwFAl6BIBQACgkQlcRvpqQRSKxguw//YGGDA/UJTVMPAkW8FeX+Pw8GzyW/nnF+f8HOo2/z56GA+llXVDwAyTXPJO3MIUBwPfnN1mLxANDClpofgKuy5I/uXD0ZEN8P4C8zyhv/OQIrgbkEa3iCnHgKFXmdn8URoeb8Bpcb5za/6VN/EwhkQlXGdwqppWcBMCuBx555AJRCIuC0LmOaVVSulbWTr4dAPU0OGodKqXxB5Je+mVzMJ43JQPw7nT5AxnN/CuEG6KsmtfRJISg6BwIVaVipoBGCNPA8Qsf6MC7RK2bCaQgxlQk3kVC46hNaGHlCbfOJgSMHwz4ivhk6tSCmfqzDQOfSQN4FQ0y9LghvFiuBI2PszytEVnYQZlX2vvXBCVa3k0BMNktCs1BKMUAxfZKJIg6YsfWlGt7hlbEgd/YvypC0JCLe3AEh7pILf2UQnxD9VWQhcpHiivXapSKgsoN1qgLgfRqQvFBAz9Wy1PMe3ySnUsBQ3hEdwqWXtQILtHRrhe9TzvMF+zQYQb0bQPM09tR0MicQD7bjzo3F0OOvudRBAAA+5W9uOEpThUVi6hJa2pTcH38ZAHcISENwqOahran4TPZ2eGyl6afmkzjjrMe3THo6rZg+U+P1MQe/2K8JItSPH98fD/eeO74QUAgq/SLIa24MqaCSFIiJ3I1xgnB5o1b8/xhAcodOUFKdgwGtdXE=
  account: mediocregopher
2020-03-29 16:24:44 -06:00
.dehub Refactor access controls to support multiple branches 2020-02-29 13:09:19 -07:00
accessctl Give the project a proper root, dehub.dev/src/dehub.git 2020-03-29 15:16:36 -06:00
cmd Give the project a proper root, dehub.dev/src/dehub.git 2020-03-29 15:16:36 -06:00
fs Initial commit, can create master commit and verify previous master commits 2020-02-15 15:13:50 -07:00
sigcred Give the project a proper root, dehub.dev/src/dehub.git 2020-03-29 15:16:36 -06:00
typeobj Implement comment commits 2020-03-21 12:24:38 -06:00
yamlutil Initial commit, can create master commit and verify previous master commits 2020-02-15 15:13:50 -07:00
.gitignore give git-http-server requests ability to specify specific revision 2020-03-29 10:56:04 -06:00
commit_change_test.go Give the project a proper root, dehub.dev/src/dehub.git 2020-03-29 15:16:36 -06:00
commit_change.go Give the project a proper root, dehub.dev/src/dehub.git 2020-03-29 15:16:36 -06:00
commit_comment.go Give the project a proper root, dehub.dev/src/dehub.git 2020-03-29 15:16:36 -06:00
commit_credential_test.go Give the project a proper root, dehub.dev/src/dehub.git 2020-03-29 15:16:36 -06:00
commit_credential.go Give the project a proper root, dehub.dev/src/dehub.git 2020-03-29 15:16:36 -06:00
commit_test.go Give the project a proper root, dehub.dev/src/dehub.git 2020-03-29 15:16:36 -06:00
commit.go Give the project a proper root, dehub.dev/src/dehub.git 2020-03-29 15:16:36 -06:00
config.go Give the project a proper root, dehub.dev/src/dehub.git 2020-03-29 15:16:36 -06:00
diff.go Initial commit, can create master commit and verify previous master commits 2020-02-15 15:13:50 -07:00
Dockerfile.dehub-remote rename http-server to dehub-remote 2020-03-26 21:24:22 -06:00
go.mod Give the project a proper root, dehub.dev/src/dehub.git 2020-03-29 15:16:36 -06:00
go.sum Initial commit, can create master commit and verify previous master commits 2020-02-15 15:13:50 -07:00
hash.go Implement comment commits 2020-03-21 12:24:38 -06:00
README.md Refactor all documentation 2020-03-29 16:24:44 -06:00
repo_test.go Give the project a proper root, dehub.dev/src/dehub.git 2020-03-29 15:16:36 -06:00
repo.go Give the project a proper root, dehub.dev/src/dehub.git 2020-03-29 15:16:36 -06:00
ROADMAP.md Refactor all documentation 2020-03-29 16:24:44 -06:00
SPEC.md Refactor all documentation 2020-03-29 16:24:44 -06:00

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.

Plugins*: Extend all aspects of dehub functionality via executables managed in the repo itself (in the same style as git hooks).

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 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 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*.

* Planned feature, but 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 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. 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.

TODO

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.

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 TODO

git-http-server TODO