{ "info": { "author": "Brian Warner", "author_email": "warner-foolscap@lothar.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python", "Topic :: Internet", "Topic :: Software Development", "Topic :: System :: Distributed Computing" ], "description": "git-foolscap\n============\n\n* https://github.com/warner/git-foolscap\n\ngit-foolscap is an extension for Git that allows you to publish or access Git repositories over the [Foolscap](http://foolscap.lothar.com/trac) protocol. This provides all the security benefits of ssh or authenticated HTTPS, but with a few important benefits:\n\n* downstream users do not need an account on the server: merely sharing the secret FURL string with them is enough to provide access\n* access is limited to the one repository: users do not get full shell access\n* servers are quick and easy to set up\n* users can easily be limited to read-only access\n\n## Installation\n\nJust use `pip install git-foolscap`. This will install two scripts into your $PATH: `git-foolscap` and `git-remote-pb`. The former is the main entry point, and Git will run it whenever you run `git foolscap COMMAND..`. The latter implements the remote protocol, and Git will use it whenever you access a repository whose remote URL starts with \"pb:\" (i.e. it is a FURL).\n\ngit-foolscap depends upon having Foolscap installed, which depends upon Twisted and pyOpenSSL.\n\n`git-foolscap -h` and `git-foolscap --help` will provide usage instructions. (Note that `git foolscap --help`, without the hyphen, doesn't work, because `git-foolscap` does not provide a man page).\n\n## Theory Of Operation\n\nRepositories are published by running a small server (a Foolscap \"flappserver\") which listens on a TCP port for encrypted connections. A \"FURL\" is allocated which will connect to the git remote protocol (in either read+write or read-only mode) for a specific repository. This FURL can be handed to clients, which merely use it as the URL for a standard git remote (e.g. `git clone FURL` or `git remote add NAME FURL`). Foolscap FURLs are URIs which use \"`pb:`\" as their scheme instead of \"`http:`\" or \"`https:`\".\n\nWhen a git client encounters the `pb:` FURL, it delegates control to a program named `git-remote-pb` (this is a standard feature of git, and holds true for arbitrary scheme names). The `git-remote-pb` program knows how to use Foolscap to connect to the target FURL and speak the git remote protocol through it.\n\nTechnically, this means that servers only need the `git-foolscap` executable, and clients only need the `git-remote-pb` executable, but both are distributed in the same package for simplicity.\n\n## Usage: Server\n\nSee `git foolscap --help` for full details. Basically the server does this part once:\n\n```\n% git foolscap init --port=tcp:3116 --location=tcp:HOSTNAME:3116\n% git foolscap start\n```\n\nand this part for each new client:\n\n```\n% git foolscap invite read-write \"comment about recipient\"\n```\n\nThe \"invite\" will produce a \"wormhole code\", which the receiving user must type into their \"accept\" command. The secure FURL will then be sent through the wormhole.\n\nThe FURLs can also be added (without invitation) using `git foolscap add`. It must then be cut-and-pasted to the recipient.\n\nTo provide read-only access to a single repository, replace `read-write` with `read-only`. You can create as many FURLs as you like, by running `git foolscap add` or `invite` multiple times. Each can be revoked separately. To revoke access, run `git foolscap list`, find the index number, and pass it into `git foolscap revoke`.\n\nYou may want to arrange for `git foolscap start` to be run from a cron `@reboot` job, or other boot-time startup script, to make sure that access is retained across a system reboot.\n\n @reboot cd PATH/TO/REPO && git foolscap start\n\n## Usage: Client\n\nIf the repository owner used `git foolscap invite`, then you simply type this code into:\n\n```\n% git foolscap accept clone\n```\n\nThe client can use tab-completion on the codewords, and the wordlist is specifically designed to be reliably transcribeable over a noisy voice channel. \n\nInstead of cloning a new copy of the repository, you can add the new FURL to an existing repo, by running this command from inside the repository:\n\n```\n% git foolscap accept add-remote\n```\n\nIf the publisher used `git foolscap add` and sent you a full FURL (instead of a wormhole code), then you can just clone from it as you would a normal HTTPS (`https://github.com/warner/git-foolscap.git`) or SSH (`git@github.com:warner/git-foolscap.git`) URL. As long as you have git-foolscap installed, git will figure out how to do the right thing.\n\n## Cleaning up the FURL\n\nThe flappserver uses the `--location=` you provide to construct the \"connection hints\" portion of the FURL. This tells the client how to connect to the server. The server must have a publically-reachable address (or at least reachable by your clients), or you must configure a port-forwarding and put the externally-reachable address+port into the FURL.\n\nIf you got the hostname wrong, or if you used an IP address and it has changed, you can edit the FURL later. You can also use multiple hints, and the client will try to connect to each of them until at least one works:\n\n pb://tvzddtbzbldthde5kdsvjvzpweifx7ae@tcp:example.com:57306,tcp:example.org:57306/jmxpcs6lsmgtuzdomxbgtfcmhgfmfbpc/my-repo\n\nThe first big random-looking string in the FURL identifies exactly which server public key is expected: it provides cryptographic assurance that the connection will go to the right server. No certificate authorities or trusted third parties are used. The second random string is a secret \"swissnum\" which securely identifies the resource being accessed (in this case, a table entry which points at a git repository and a read+write/read-only mode). Knowledge of this secret enables access: to share access, share the secret (and the rest of the FURL necessary to use it); to withhold access, don't reveal the secret.\n\n## Configuring the flappserver\n\nEach flappserver has a \"base directory\" where it keeps all its state. `git foolscap create` defaults to using `.git/foolscap/` for this purpose, creating it if necessary, then adding an entry for the new FURL.\n\nIf you publish multiple repositories, you might want to share flappservers between them, especially if you must configure a port forwarding for each server. To do this, first create the one shared server with Foolscap's `flappserver create BASEDIR` command, then use the `--flappserver=BASEDIR` argument when running `git foolscap init`. This establishes a symlink from `.git/foolscap` to the real BASEDIR, so subsequent git-foolscap commands will add an entry to that flappserver directly. If BASEDIR doesn't already exist, it will be created.\n\nNote that at present, `git foolscap init --flappserver=BASEDIR` requires the `--port=` and `--location=` arguments, even if BASEDIR already exists. However, in that case, their values are ignored in favor of the BASEDIR's existing configuration. Hopefully this will be fixed in a future release.\n\nIf you use a `@reboot` cronjob, you may want to use `flappserver start` directly, instead of `git foolscap start`.\n\n## Bugs, Patches\n\nPlease file bugs and patches for git-foolscap on the Github issue tracker, at https://github.com/warner/git-foolscap .\n\nFor bugs and patches against foolscap itself, please use the Foolscap Trac, at http://foolscap.lothar.com/trac . Foolscap source code is published on Github, at https://github.com/warner/foolscap .\n\nthanks!\n\n\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/warner/git-foolscap", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "git-foolscap", "package_url": "https://pypi.org/project/git-foolscap/", "platform": "any", "project_url": "https://pypi.org/project/git-foolscap/", "project_urls": { "Homepage": "https://github.com/warner/git-foolscap" }, "release_url": "https://pypi.org/project/git-foolscap/0.4/", "requires_dist": [ "foolscap (>=0.8.0)", "magic-wormhole (>=0.10.5)" ], "requires_python": "<3.0", "summary": "Tools to run Git over Foolscap FURLs.", "version": "0.4" }, "last_serial": 3693381, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "3901a6b69ead76d01a65db3a580e59e3", "sha256": "f089b5737eadd55c706c4d5c6585bf82ffc4aa1517e9f95baf5f529ba2666eed" }, "downloads": -1, "filename": "git-foolscap-0.1.tar.gz", "has_sig": false, "md5_digest": "3901a6b69ead76d01a65db3a580e59e3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 18122, "upload_time": "2015-03-26T07:06:03", "url": "https://files.pythonhosted.org/packages/a7/4c/499838a59db295d7126d8a64c660748d2376ea5b678ef3b901371db24331/git-foolscap-0.1.tar.gz" } ], "0.3": [ { "comment_text": "", "digests": { "md5": "25d482c1925d5a5d9e4ada6ff1de0d6e", "sha256": "79fdb69065abbf776233a174efef5f6df0b4f8d31facbbb64b3bd89d4f452d01" }, "downloads": -1, "filename": "git_foolscap-0.3-py2-none-any.whl", "has_sig": false, "md5_digest": "25d482c1925d5a5d9e4ada6ff1de0d6e", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 8049, "upload_time": "2017-08-08T23:57:49", "url": "https://files.pythonhosted.org/packages/1b/21/28cc0ffb62e07df8099f9567dcd265761e472c15d96581ee146737cf54a1/git_foolscap-0.3-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "b90744a03dd2e917fcc37b373fb8f389", "sha256": "c531bf9fefbd0f6f09804c4ae521c002dc995f413886bcef46ec205d775df895" }, "downloads": -1, "filename": "git-foolscap-0.3.tar.gz", "has_sig": false, "md5_digest": "b90744a03dd2e917fcc37b373fb8f389", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 24828, "upload_time": "2017-08-08T23:57:51", "url": "https://files.pythonhosted.org/packages/0e/9b/2fca56f80808f5d33443f48da988c1ab100316f46ac8093b16dfc4160853/git-foolscap-0.3.tar.gz" } ], "0.4": [ { "comment_text": "", "digests": { "md5": "2d5a580d91450ad516ffd2d58c6dfc21", "sha256": "3440ae04356aca91d37879969399593aa74323f0e41ac1e84c4c62da73043dc3" }, "downloads": -1, "filename": "git_foolscap-0.4-py2-none-any.whl", "has_sig": true, "md5_digest": "2d5a580d91450ad516ffd2d58c6dfc21", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": "<3.0", "size": 16287, "upload_time": "2018-03-21T21:52:50", "url": "https://files.pythonhosted.org/packages/53/78/3b8421b98cfdae2afa25a4e9bbaf273b12198abe7e467b09a2db288100a9/git_foolscap-0.4-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "6c275fda60501a558ca5478efd2f1bee", "sha256": "765bf216c65b2cfd7de56e6f09b1ebd52353cec8d0b5de0cd7dcdb220b0dc48b" }, "downloads": -1, "filename": "git-foolscap-0.4.tar.gz", "has_sig": true, "md5_digest": "6c275fda60501a558ca5478efd2f1bee", "packagetype": "sdist", "python_version": "source", "requires_python": "<3.0", "size": 32988, "upload_time": "2018-03-21T21:52:52", "url": "https://files.pythonhosted.org/packages/49/a6/c9ca44ad8785c99a6ee9547eafe90ef89b598b4502aa8abbfb3df6a28768/git-foolscap-0.4.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "2d5a580d91450ad516ffd2d58c6dfc21", "sha256": "3440ae04356aca91d37879969399593aa74323f0e41ac1e84c4c62da73043dc3" }, "downloads": -1, "filename": "git_foolscap-0.4-py2-none-any.whl", "has_sig": true, "md5_digest": "2d5a580d91450ad516ffd2d58c6dfc21", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": "<3.0", "size": 16287, "upload_time": "2018-03-21T21:52:50", "url": "https://files.pythonhosted.org/packages/53/78/3b8421b98cfdae2afa25a4e9bbaf273b12198abe7e467b09a2db288100a9/git_foolscap-0.4-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "6c275fda60501a558ca5478efd2f1bee", "sha256": "765bf216c65b2cfd7de56e6f09b1ebd52353cec8d0b5de0cd7dcdb220b0dc48b" }, "downloads": -1, "filename": "git-foolscap-0.4.tar.gz", "has_sig": true, "md5_digest": "6c275fda60501a558ca5478efd2f1bee", "packagetype": "sdist", "python_version": "source", "requires_python": "<3.0", "size": 32988, "upload_time": "2018-03-21T21:52:52", "url": "https://files.pythonhosted.org/packages/49/a6/c9ca44ad8785c99a6ee9547eafe90ef89b598b4502aa8abbfb3df6a28768/git-foolscap-0.4.tar.gz" } ] }