Personal Containers

As cloud computing empowered the creation of vast data silos, I investigated how decentralised technologies might be deployed to allow individuals more vertical control over their own data. Personal containers was the prototype we built to learn how to stem the flow of our information out to the ad-driven social tarpits. We also deployed personal containers in an experimental data locker system at the University of Cambridge in order to incentivise lower-carbon travel schemes.

I've had a passion for self-hosted, decentralised computing for many years since Nick Ludlam and I set up the recoil.org collective in the late 90s. In late 2008, I'd been working on early cloud computing as part of the Xen Hypervisor project and already seeing the rapid rise of centralised data gathering in the early cloud providers. When I left Citrix in 2009, I joined Derek McAuley and Jon Crowcroft in their new Horizon Digital Economy centre to lead a charge into building more privacy-centred digital infrastructure. I had the huge privilege of receiving a strings-free 5-year postdoctoral fellowship in Cambridge. It's rare to see such long term postdoc opportunities these days, but something I am hugely supportive of for new projects.

My hacking first began with Nick Ludlam in 2008 on a prototype of a lifedb server and app, which we envisioned as a place to aggregate all the messages from disparate sources (for example, to mirror the then-new Twitter service into my IMAP email). I worked on Privacy Butler: A Personal Privacy Rights Manager for Online Presence to add a policy engine to this prototype. While the prototype worked well enough for me, it was largely a negative result since it was just too risky to put all that private data in one location (especially aggregated).

Now back at Cambridge in 2010, I began working with Thomas Gazagnaire on a more robust implementation of data aggregation that would have stronger end-to-end security and privacy. We started coding up an implementation in OCaml to followup my Functional Internet Services work, and built out infrastructure like an OCaml ORM in Statically-typed value persistence for ML to make it easier to work with databases. It became obvious pretty quickly that having this much data in one place required end users to become sysadmins, and so I started to lay out a new architecture for this sort of end-user managed data in Multiscale not multicore: efficient heterogeneous cloud computing.

Our first prototype of a personal container running as a unikernel was published in Turning Down the LAMP: Software Specialisation for the Cloud, and would form the basis of the MirageOS project. To this day, the MirageOS community remains passionate about decentralised systems from these origins! We explored a number of directions in the early days:

One of the main drivers for personal containers was to drive applications that would otherwise be too invasive from a privacy perspective. Ian Leslie and I worked on the "c-aware" project in Confidential carbon commuting: exploring a privacy-sensitive architecture for incentivising 'greener' commuting to figure out if personal containers could help influence user behaviour to reduce carbon usage. Overall, this project taught us just how much effort it would be to deploy real-world infrastructure in corporate environments like the University of Cambridge. We also struggled to get any users to deploy our prototype servers, something explored more in user studies with colleagues in Horizon Nottingham in Perceived risks of personal data sharing.

My work on personal data processing petered out from a research perspective in around 2013 since the underlying infrastructure I had built really started gathering steam with Unikernels and OCaml Labs. We hadn't quite cracked the problem of how to break the cloud hegemony, but (as with XenoServers and Xen), the pieces that succeeded emerged from the research questions we asked. However, I don't consider this project permanently closed by any means -- after all, I've been self hosting my email since 1997! We've been working steadily over the past decade of MirageOS (as of 2021) to build out a really solid, self-hosted protocol stack that will work as a unikernel. I am revisiting the question of decentralisation in the form of physical infrastructure in the Interspatial OS project, and you can read my early thoughts in An architecture for interspatial communication.

Activity

Building an OCaml JMAP client that runs in browsers and CLI, then using it to build personalised email workflows for taming notification overload.
Anil Madhavapeddy, KC Sivaramakrishnan et al. — Proceedings of the HotPOST 2018 workshop at the IEEE Conference on Computer Communications
Amir Chaudhry, Jon Crowcroft et al. — Aarhus Series on Human Centered Computing
At CodeMesh 2014, talking about personal data management with unikernels
Charalampos Rotsos, Heidi Howard et al. — 3rd USENIX Workshop on Free and Open Communications on the Internet (FOCI 13)
Anya Skatova, Jaspreet Johal et al. — Digital Economy: Open Digital
Zubair Nabi, Toby Moncaster et al. — Proceedings of the 2012 ACM conference on CoNEXT student workshop
Amir Chaudhry, Anil Madhavapeddy et al. — ACM SIGCOMM Computer Communication Review
Khilan Gudka, Robert M Watson et al. — 2012 IEEE Sixth International Conference on Self-Adaptive and Self-Organizing Systems Workshops
Charalampos Rotsos, Richard Mortier et al. — 2012 IEEE International Conference on Communications (ICC)
Chris Elsmore, Anil Madhavapeddy et al. — Proceedings of the First Workshop on Measurement, Privacy, and Mobility
OCaml LabsJan 2012
DataCaml brings distributed dataflow programming to OCaml using the CIEL engine.
Thomas Gazagnaire, Anil Madhavapeddy — Workshop on Generative Technologies
Derek G Murray, Malte Schwarzkopf et al. — 8th USENIX Symposium on Networked Systems Design and Implementation (NSDI 11)
Jon Crowcroft, Anil Madhavapeddy et al. — Proceedings of the 12th International Conference on Distributed Computing and Networking
Completed · Part II
Richard Mortier, Chris Greenhalgh et al. — Digital Futures
Anil Madhavapeddy, Richard Mortier et al. — 2nd USENIX Workshop on Hot Topics in Cloud Computing (HotCloud 10)
Digital nomads can secure their personal data with digital yurts, a system for diverse data handling and storage.
Building a user interface for personal containers on App Engine with extjs.
Anil Madhavapeddy, Richard Mortier et al. — Proceedings of the 2010 ACM-BCS Visions of Computer Science Conference
Ryan Wishart, Domenico Corapi et al. — 2010 8th IEEE International Conference on Pervasive Computing and Communications Workshops (PERCOM Workshops)
Richard Mortier, Anil Madhavapeddy et al. — Security Protocols XVIII
UnikernelsJan 2010