wiki:GSoCIdeas2010

Version 112 (modified by davidsarah, at 2010-11-05T13:44:30Z) (diff)

MDMF is done

Tahoe-LAFS Summer-of-Code Projects

This page contains specific suggestions for projects we would like to see in the Summer of Code. Note that they vary a lot in required skills and difficulty. We hope to get applications with a broad spectrum.

If you are interested in working on any of these projects, please contact the Mentors listed at the bottom of the page.

In addition, you may wish to discuss your proposal on IRC—join us on #tahoe-lafs on irc.freenode.net.

We encourage you to come up with your own suggestions, if you cannot find a suitable project here. You can find more project ideas by exploring the issue tracker. Especially see tickets labelled 'gsoc' (developers: please add this label to any tickets that might make a good GSoC project). You may also want to read the tahoe-dev mailing list archives as there have been several threads of dicussion about GSoC ideas.

Deadlines and directions for students' applications to the Google Summer-of-Code can be found on the Google pages.

ProjectDifficultyContact
Firefox ExtensionMediumBrian Warner or any mentor
Medium-Sized Distributed Mutable FilesMediumDavid-Sarah Hopwood or any mentor
Redundant Array of Independent CloudsMediumZooko Wilcox-O'Hearn or any mentor
Share MigrationMediumBrian Warner or any mentor
Secure Decentralized BlogMediumZooko Wilcox-O'Hearn or any mentor
Secure Decentralized WikiMediumZooko Wilcox-O'Hearn or any mentor
Cloud AppsEasy–HardJack Lloyd or any mentor
WebDAV SupportMedium-HardDavid-Sarah Hopwood or any mentor
Distributed IntroductionEasyNils Durner or any mentor
DVCS IntegrationMediumJack Lloyd or any mentor

Firefox Extension

Implement an extension for Firefox using the new Jetpack SDK. This will extend Firefox so that it knows about Tahoe-LAFS caps. It will provide user-friendly and safe gestures to share caps, for example, it will require a different gesture to share a write-cap than to share a read-cap, to prevent people from accidentally sharing a write-cap to a file or directory when they meant to share a read-cap, thus solving one of the major outstanding problems in Tahoe-LAFS user interface (see this tahoe-dev mailing list discussion).

It will also provide a fast, pretty, and highly usable browser for exploring and manipulating a Tahoe-LAFS filesystem.

It will also provide a re-usable Jetpack component which makes it easy for other developers to add Tahoe-LAFS features to their Firefox extension.

It may also provide more features for Firefox users or developers, which features may be discovered during the course of the summer.

Brian Warner, the most prolific contributor to the Tahoe-LAFS codebase and one of the leaders of the Tahoe-LAFS project and a Tahoe-LAFS GSoC Mentor is also an employee of Mozilla Labs who works on the Jetpack SDK full-time, so he would be an excellent Mentor for any student interested in this project.

Medium-Sized Distributed Mutable Files (MDMF)

(Kevan Carstensen has implemented this project.)

Mutable files in Tahoe-LAFS have some significant limitations and performance issues, as discussed in docs/performance.txt. Users who aren't aware of these limitations are surprised when they find out that mutable files can't scale to large sizes without using unacceptable levels of memory, and that reading one byte of the file costs as much as reading the entire file.

A fix for this issue would essentially be fixing #393. That is,

  • Developing mutable files that are segmented on upload, as with immutable files. Part of this would involve making sure that the way we currently ensure the integrity of the parts of mutable files stored on servers is adequate for your new design, and altering it if it isn't.
  • Implementing efficient reading and writing of arbitrary spans of those mutable files.

This would make Tahoe-LAFS less surprising to users, and allow mutable files to be used in more ways than they currently are. If successful enough, this might allow Tahoe-LAFS to support range queries or "graph database"-style access, in the style of the "NoSQL" projects.

To learn more about this issue, you should first read docs/performance.txt, so you're familiar with the performance problems with mutable files as currently implemented. You should also look at the file encoding specification, to understand how immutable files are segmented (since you'll be doing something similar with this project). The mutable file specification may be informative as well. The mutable file upload and download code is in mutable, and, for comparison, the immutable file upload and download code is in immutable.

Redundant Array of Independent Clouds

Add backends to the storage servers so that they store their shares on a cloud storage system instead of on their local filesystem. This means that you can get all of the availability and scalability of services such as Amazon S3 or Rackspace CloudFiles combined with the security properties of Tahoe-LAFS. See the RAIC diagram. For details read ticket #999 which including pointers to the relevant source code and instructions on how to begin writing the code.

Share Migration

When uploading a file to a grid, Tahoe-LAFS will make sure that the file is healthy (a good discussion of what healthy means is found in #778) before reporting that the file is uploaded successfully. Tools to effectively maintain file health (or to adapt to new definitions of health) aren't quite complete, however -- our users have had several use cases that aren't easily addressed with what we have. Students taking this project would be building tools to address those use cases.

A good starting point would be to become familiar with how files are placed on a grid. architecture.txt, file-encoding.txt, mutable.txt, the immutable file upload code, and the mutable file upload code are good places to do that. Also, you might want to look at the storage server code to understand that better. Some good tickets to start looking at are #699, #543, and #232; you'll find that those link to other tickets.

There are many ways to help address these issues. Some ideas:

  • Alter the CLI and the WUI to give users the ability to rebalance files that they've uploaded already. (#699)
  • Build tools that allow node administrators to moves shares around a grid (#543, #864)
  • Alter Tahoe-LAFS to rebalance mutable files when uploading a new version of them. (#232)

Any one of these projects is probably too small to fill a summer, but combining a few of them would be a big usability improvement for Tahoe-LAFS.

Depending on how you address this, this is tightly integrated with ideas of file health and accounting, so prospective students would do well to explore those open issues, too. A good accounting jumping-off point is #666. A good jumping-off point for health is #778.

Secure Decentralized Blog

Write a blog in Google's Caja dialect of JavaScript or in the Jacaranda dialect of JavaScript. This blog will load and store data directly on a Tahoe-LAFS storage grid so that it is a full "Cloud App"—there is no server. All computation is done in the user's web browser in JavaScript and all of the storage is done by the decentralized Tahoe-LAFS storage grid. This project is intended to be the successor to the TiddlyWiki-on-Tahoe-LAFS project, which is a wiki written in JavaScript and hosted on Tahoe-LAFS, but one that has been "bolted on" to Tahoe-LAFS instead of designed for Tahoe-LAFS, and is not optimized for blogging.

To get started, play with the TiddlyWiki-on-Tahoe-LAFS quick start, read the source code of the HTTPSavingPlugin and the TahoePlugin for TiddlyWiki, and experiment with writing live caja applets.

Secure Decentralized Wiki

Write a wiki in Google's Caja dialect of JavaScript or in the Jacaranda dialect of JavaScript. This wiki will load and store data directly on a Tahoe-LAFS storage grid so that it is a full "Cloud App"—there is no server. All computation is done in the user's web browser in JavaScript and all of the storage is done by the decentralized Tahoe-LAFS storage grid. This wiki should leverage Tahoe-LAFS's secure sharing features to offer fine-grained, dynamic, and easy transclusion or client-side mashups. This project is intended to be the successor to the TiddlyWiki-on-Tahoe-LAFS project, which is a wiki written in JavaScript and hosted on Tahoe-LAFS, but one that has been "bolted on" to Tahoe-LAFS instead of designed for Tahoe-LAFS, and is currently incapable of good transclusions or mashups.

To get started, play with the TiddlyWiki-on-Tahoe-LAFS quick start, read the source code of the HTTPSavingPlugin and the TahoePlugin for TiddlyWiki, and experiment with writing live caja applets.

Cloud Apps

Difficulty: easy to hard, depending on project choice and how far you want to push it

Invent your own Summer-of-Code project by building a new web app on top of Tahoe-LAFS. The Secure Decentralized Blog and Secure Decentralized Wiki are two examples of Cloud Apps. See GSoCIdeas/CloudApps for other ideas.

WebDAV Support

Difficulty: medium to hard, depending on how much of an existing WebDAV implementation you are able to reuse

Implement a WebDAV front-end for Tahoe-LAFS so that files and directories stored in a distributed grid can be accessed by operating systems and applications that speak the WebDAV protocol. WebDAV is specified in RFC 2518 and a few other documents; it essentially extends HTTP to act as a filesystem access protocol. For details see #451 which describes what the Tahoe-LAFS web server does now, how this differs from what a WebDAV web server does, and how to get started experimenting with the relevant source code.

The main attraction of implementing a WebDAV interface is that several operating systems have bundled and somewhat integrated support for it, including Windows, Mac OS X, and most distributions of Linux. In fact WebDAV may turn out to be an easier alternative to SMB/CIFS for allowing filesystem access from Windows.

However, there is currently no working WebDAV implementation in Twisted Python. There used to be one (the web2.dav package), but it bitrotted. You'll have to decide whether to help fix that implementation, use a non-Twisted implementation such as WsgiDAV that might be more difficult to integrate wth the existing Tahoe code, or write your own. In any case, WebDAV is a complicated protocol and you will need to decide what subset of it gives most "bang for the buck" and is practical to support in the time available. For example, locking is optional in the WebDAV spec; is it needed to interoperate with commonly used WebDAV clients?

Unlike most filesystem directory structures which are constrained to be trees, the structure of a Tahoe filesystem is in general a cyclic graph. draft-ietf-webdav-bind is an Internet Draft that clarifies how WebDAV servers should handle cycles.

davfs2 is a FUSE-based WebDAV filesystem client for Linux. To ensure that this runs correctly over your implementation of WebDAV, you'll probably need to adapt the tests for the existing Tahoe blackmatch FUSE interface (this would not be redundant since the blackmatch implementation has limitations, especially for write access, that davfs2 would not have).

The WebDAV mini-redirector is the component of Windows providing its WebDAV filesystem support. It is actually the less buggy of two implementations, but it still has had bugs and security vulnerabilities that you may need to take into account.

Tickets labelled 'webdav'

Distributed Introduction

Implement a protocol for distributed introduction, thus removing the only remaining Single Point of Failure (SPoF) in the Tahoe-LAFS system. For details see ticket #68 which describes the distributed notification algorithm and points to the relevant source code.

DVCS Integration

Write patches for the git or darcs distributed revision control tool so that it reads and writes directly to a Tahoe-LAFS storage grid instead of its local filesystem. This creates a "revision control repository in the sky"—a repository that is distributed, fault-tolerant, and highly available. It also lends Tahoe-LAFS's unique security and access-control properties to your revision control system—you can share read-only access or read-write access with specific people through Tahoe-LAFS's capability access control system, and you can rely on the integrated digital signatures to verify that you are reading an authorized version of the repository.

When Zooko was at the RSA 2010 security conference in March 2010, an employee of the U.S. National Security Agency told him that they were interested in integrating git with Tahoe-LAFS.

There is already a simple kind of integration for Tahoe-LAFS with the bzr distributed revision control tool. Bzr can be configured to write its repositories through ftp and Tahoe-LAFS offers and ftp front-end. Here are instructions on how to use the combination of bzr and Tahoe-LAFS. Improving the bzr+Tahoe-LAFS integration to be faster, more flexible, and easier to use would be an alternative to integrating git or darcs.

Required skills: for git you need to know some C and understand git's behavior. For darcs you need to know some Haskell and understand darcs's behavior. For bzr you need to know some Python (or actually forget it you can just learn Python as you go because it is so easy) and understand bzr's behavior.


Mentors

Who is willing to spend about five hours a week (estimated) helping a student do it right?

  • Zooko Wilcox-O'Hearn (Python/C/C++/JavaScript, security+cryptography)
  • Jack Lloyd blog (C/C++/Python, security+cryptography)
  • David-Sarah Hopwood (Python/C/JavaScript, SFTP frontend, security+cryptography)
  • Brian Warner (Python/C/JavaScript, security+cryptography)
  • Nils Durner (C/C++, security+cryptography, P2P)
  • Kevin Reid (Caja, Javascript, web, security+cryptography)