Ubuntu Full Disk Encryption

Dear Internet,

If you search for “Ubuntu Full Disk Encryption” the first DuckDuckGo hit, titled “Community Ubuntu Documentation”, says: “This article is incomplete, and needs to be expanded”, “Please refer to EncryptedFilesystems for further documentation”, and “WARNING! We use the cryptoloop module in this howto. This module has well-known weaknesses.” Hardly inspiring. The rest of the docs are a maze of outdated and locked-down wiki pages that I can’t fix.

What all of them fail to state is that, as of 12.10, it’s now a simple checkbox in the installer. So I hope this blog post will get some search engine juice so that more people don’t spend hours working out how to do it.

THBAPSA.

GSoC 2013 Successes

We’ve wrapped up another GSoC, with 20 of 21 projects passing – our highest pass percentage ever. Not all students emailed me the URL to their wrap-up status report (you might find some more by following the links in the original announcement) but I know that we have:

Which is a pretty awesome set of achievements. Well done to all the students, and many thanks to all their mentors.

I’m also pleased to announce that Florian Quèze, who has been administering the program alongside me this year, will be in the driving seat for next year’s GSoC – which will be the 10th anniversary edition. Wish him luck! :-)

Attack Surface Reduction Works

According to the training presentation provided by Snowden, EgotisticalGiraffe exploits a type confusion vulnerability in E4X, which is an XML extension for Javascript. This vulnerability exists in Firefox 11.0 – 16.0.2, as well as Firefox 10.0 ESR – the Firefox version used until recently in the Tor browser bundle. According to another document, the vulnerability exploited by EgotisticalGiraffe was inadvertently fixed when Mozilla removed the E4X library with the vulnerability, and when Tor added that Firefox version into the Tor browser bundle, but NSA were confident that they would be able to find a replacement Firefox exploit that worked against version 17.0 ESR.

Good riddance to E4X.

Adventures On The Silk Road

A man, Ross William Ulbricht, has been arrested and charged with being the operator of the “Silk Road” Tor hidden service, which was a marketplace dealing mostly in illegal objects and substances.

The court document is absolutely fascinating, and gives many interesting details of Silk Road’s operation. One tale in particular caught my eye, detailed on pages 21-23. The FBI agent who wrote this document knows how to tell a good story.

A user called FriendlyChemist on Silk Road threatened to reveal the identities of thousands of Silk Road users (which he had obtained by hacking a vendor), unless he was paid $500,000, which he needed to pay off his drugs suppliers.

DPR asked FriendlyChemist to get those suppliers to contact him. A user called redandwhite appeared, saying he was representing the people concerned. DPR first tried to recruit him as a Silk Road vendor, and then (when FriendlyChemist persisted in his threats) hired redandwhite to kill FriendlyChemist for a sum of $150,000, passing on his name and address (in White Rock, British Columbia, Canada). Later, redandwhite messaged back to say “Rest easy, though, because he won’t be blackmailing anyone again. Ever.” He even provided a photo as proof.

The end of FriendlyChemist? Perhaps not. The court document goes on to say: “Canadian law enforcement authorities … have no record of there being any Canadian resident with the name DPR passed to redandwhite as the target of the solicited murder-for-hire. Nor do they have any record of a homicide occurring in White Rock, BC, on or about March 31, 2013.”

Looks like DPR may have been the subject of a beautifully-executed sting…

Data Unsuitable for Authentication

It used to be that my bank rang me (on one of the regular occasions where they mistakenly block my debit card, often over payments which have been occurring regularly every month for years) and asked me to authenticate myself. These days, they ring me and make at least an attempt to authenticate themselves to me, which is an improvement. However, the conversation still goes something like this:

Bank: “Sir, if you give me the month and year of your date of birth, I’ll give you the day.”
Me: “But my date of birth is on Wikipedia. Anyone can know what it is. You can’t use it to prove I’m me.”
Bank: “…”

There should be a list of pieces of information which are considered sufficiently “public” or “well known” and so should never be used for authentication – because they are publicly discoverable or because you have to give them to large numbers of people in the course of life. There should be a website listing them, and a hall of shame for companies which use them. Those well-known pieces of information would include:

  • Date of birth
  • Current address
  • Mother’s maiden name
  • Bank account number and sort code
  • Credit card number, expiry and CVC
  • SSN (in the USA)

What else?

In general, companies should instead use information specific to their relationship with that customer. For example “last item you bought” or “last transaction you made” at a bank.

IE 11 Ignoring “autocomplete=off”

According to the IE blog Eric Lawrence’s blog, IE 11 has an “improved Password manager” which “keeps [the] user in control”. So far so good (here at Mozilla, we’re all in favour of user control :-), but it then goes on to say that one of the ways it does so is that it “ignores autocomplete=off”.

autocomplete=off is the way that pages give a “hint” to the browser as to what sort of form autocomplete behaviour they should provide. Ignoring it is, as I read the HTML5 spec, permitted, and one can see the superficial attractiveness of this. I’m sure we’ve all come across pages where the form fields won’t save even when we want them to.

However, we at Mozilla have never agreed to ignore this attribute across the entire web to “fix” this problem, because what we think would happen then (and what may happen with IE) is that sites implement non-standard workarounds. For some people, such as banks, stopping the browser storing authentication credentials is a business requirement – no argument. And if we don’t provide a standards-compliant way of doing it, they’ll use a non-standard one. For example, they might read the form fields out in an onsubmit() handler, then blank them, and submit the values in differently-named hidden form fields – so when the submit happens, the browser “sees” those fields as empty and doesn’t save anything. This is worse because it means the page requires JavaScript, but also because it’s much harder or impossible for particular individuals to disable such work-around mechanisms (e.g. those with accessibility needs which make filling in form fields much harder, and who want to make a different trade-off).

Ignoring autocomplete=”off” leads to an arms race, with users as the losers. So I hope Microsoft reconsider this move.

Watching Restricted AirMo Videos

Normally, the awesome air.mozilla.org uses WebM for archived video. (Yay!) However, on a couple of occasions recently I’ve wanted to watch a video from Air Mozilla offline (on a plane or train). But videos which are non-public (e.g. MoCo-only or Mozillians-only) are not served as WebM, but as something else in a Flash container. Which means no “Save Video As…” menu item, and no offline viewing.

This also means that you can’t watch them at all (even online) on platforms which don’t support Flash. When I’m properly logged in to AirMo on my Android phone using Firefox Aurora with plugins disabled, vid.ly gives a (misleading) “you do not have permission to watch this video” error.

I emailed Richard Milewski about this, and he said that this was due to a “time-limited token checking protocol” which AirMo and vid.ly use together to prevent people accidentally sharing working links to restricted videos. I can see the sense in that, but I’m not sure how that feature itself requires the use of Flash. You could have such a protocol, and still serve WebM content. I can see how Flash makes it harder to download the video, although it makes it by no means impossible, particularly for a community of browser and network hackers! If someone is determined to share this content against our wishes, they’ll probably find a way, Flash or no Flash.

By setting things up this way, it seems to me that what we are effectively saying by our actions is that “if you want to have restricted access videos, web standards won’t cut it. Flash is the only way to go.” I hope that’s not true. Our use case is one which the web platform should support.

Due to a large amount of hard work, AirMo is unrecognisable from two years ago, and it’s an awesome community resource. And I know the AirMo team has been working to use web standards in more of its operations. Should removing the Flash requirement from all archived videos be added to that list?

Authority and Accountability

When considering the governance and running of organization such as Mozilla (which we should be doing in the run up to, and during, the Summit), it’s good to think about the relationship between authority and accountability.

Having authority usually requires being accountable. And you can’t make people accountable for something unless they have the authority to affect it. The two go hand in hand.

So: how does Mozilla at the moment (and how should Mozilla in the future) bestow authority on people and hold them accountable? The answer to this question should be the heart of Mozilla’s governance structure.

Mozilla currently de jure (as a matter of law/rules) bestows project authority on people by making them module owners (or by the module owners making them peers). But we also de facto (in practice) bestow project authority on people by hiring them into MoCo (or MoFo), signing a contract, telling them to do a job that advances the project, and holding them accountable. They are accountable because if they stopped doing the job, we would stop paying them and hire someone else. Because of the link between accountability and authority, the fact that they are being held accountable means that they acquire a form of authority. This is sometimes represented by the ability to direct the actions of others within MoCo, but in any case, one can always direct one’s own actions. And other employees, at least, will recognise their role and will support them in carrying out that responsibility.

Historically, Mozilla has said that being hired should make no difference to your position or level of trust within the project. I have been a strong proponent of this view, and we sometimes puts employees to reasonable levels of inconvenience in order to maintain it as a principle. For example, we made a newly-hired release manager wait to join the security-group mailing list, so it did not appear as if he were being given that access as a direct result of being hired, without any community track record.

If Mozilla consisted solely of a community, and people hired out of that community (in order that they could spend additional time working on Mozilla), that system would be entirely suitable. But I now think it starts to break down as soon as you hire people who are not already community members. If those people are hired to direct your engineering, the breakdown is pretty serious. And we have many people hired into roles like that.

Consider: if Mozilla is investing a significant amount of money in an employee (in salary and benefits) then it would make no sense for them not to rapidly become responsible for stuff – to be in some sort of authority, and in turn be held accountable. If this were not true, what would we be paying them for?

At the moment, someone hired by Mozilla from outside the community has authority and accountability within MoCo from day one, but outside MoCo, among volunteers, they have neither. This means that there is tension. How we best resolve that tension is part of the answer to the question initially posed.

At the moment, the tension is too often resolved by that person not seeking to obtain relevant positions of project authority (which may not even exist, because the module ownership system only covers part of Mozilla’s activities), but simply getting on with their assigned task. This results in the marginalization of the Mozilla governance structure as not relevant to many people’s day-to-day activities, and it means the actual working authority structure of the project is undocumented (at least, outside MoCo – the org chart is, unfortunately, confidential) and opaque.

Would it be better to instead accept the logic that we only pay someone when we want them to do something useful, and that therefore sometimes it would be reasonable for someone to acquire some project authority as a direct consequence of being hired by MoCo – which is, after all, the organization we’ve created to hire people to work on the project? Would this, perhaps, actually reduce the divide between volunteers and employees because they would, much more often, both be working within the same, clear, public governance structure?

There are, of course, risks to this approach. Someone might feel that their role has been usurped by a newly-hired person. But I’m not sure these risks are significantly greater than the risk of upset if you hire out of an existing community, and person A gets chosen to become full time over person B, and then ends up, in that additional time, doing some of what person B did.

A possible corollary of the above is the further acceptance that there are some roles which are sufficiently important and time-intensive that Mozilla the organization is not comfortable entrusting them to someone who is not able to give their full time to them. (And that basically, today, means being hired by MoCo or MoFo.) The roles of which this is true will change over time; after all, for the first part of MoFo’s life, there was no MoCo and we had a Chief Lizard Wrangler who had a day job! But I think that, given how big Mozilla is, we have many such roles today. In other words, does it make sense to accept and work with the fact that that some roles within the project will end up being employee-only – not because of a cabal or a glass ceiling, but because of the nature and expectations surrounding the role?

As part of designing a system for running the Mozilla we have in 2013, we need to have a conversation about how we think about employment, and how it relates to authority and accountability, and what consequences that has. This is a start; please contribute.

Watching European Parliament (EPTV) Video Streams on Linux

(This is a blog post I wished someone had already written so I could have found it quickly yesterday.)

The European Parliament TV site’s streaming system, used on pages such as this one, triggers the Totem plugin on my Ubuntu, which promptly crashes. :-| I’m fairly sure it uses some Windows codecs.

There is a mobile site for their main TV channels (video and audio streaming) which works a bit better – you can extract the rtsp stream from the links, and pass it to VLC. But if the session you want isn’t on TV, you’re out of luck. (Worse is if part of it is, and then it switches to something irrelevant in the middle!)

Fortunately, André Loconte has written a script which finds the right URL in such pages and passes it to mplayer with the right options. Thanks to him. Note that you may have to try various values for the “language” constant defined near the top until you find the one which is right for you. (It seems they do not allocate languages to channels consistently.)

Identifying The Problem

Tobbi and Ricardo’s blog post, entitled “New Mozilla” or “Community 2.0″? has been generating conversation, and deserves a thoughtful response. This response has no tl;dr – please take the time to consider it in its entirety.

Often when people are upset, it’s hard to step back and work out what the problem actually is. And if the problem is mis-defined or poorly defined, it can be far from obvious, because if you ask them “what’s the problem?”, then they’ll have plenty to say! :-) But sometimes what seems to be the problem is not actually the problem.

It can also be that something one person considers a bug, another person considers a feature. There may be a bit of that going on too. But even realising that is happening is a step forward.

(It can also be that when someone raises a problem, others try and make the discussion about their pet problem. I hope I’m not doing that; let me know if you think I am.)

So, I want to try and figure out what the problem is.

Not The Problem

To begin with, without at all wanting to be dismissive, let me suggest some things which (I submit) are not actually the problem. (I agree not all of these were explicitly or implicitly flagged as problems in Tobbi and Ricardo’s post specifically.) The things in this list might be done badly (which can be a problem), but are not bad in themselves.

  • Having leadership (and it being meritocratic). An organization such as Mozilla needs (and, in fact, can’t exist without having) leadership. Mozilla has long been a meritocracy, and I think that continues to be a good thing to aim for. And having a leadership in a large organization inevitably means that some people make decisions, and a larger set of people provide input, but they can’t take input from everyone.
  • Having a strong UX team. The original post referenced a distant and un-influenceable ‘Apple-esque creative vision’. I hope we don’t behave like Apple, and I don’t want our UX team to be un-influenceable, but there’s no denying that Apple make products which people love, and we should aim to do the same. Many years of hard experience in the project has led us to conclude that this requires an overarching and consistent user experience vision, and that sometimes ‘imposing’ is the price we have to pay to get it. (This is an observation which is specific to UX.)
  • Having products. Mozilla is different from advocacy organizations – we make an impact by doing much more than by talking. Making products that are loved by millions of people not like us is the primary way we further the mission. It allows us to affect events and standards, gives us credibility, and makes people listen to us. Having products and being a community are not incompatible ideas.
  • Having a focus. In order for any organization to do things well, it must only do a limited set of things. We can’t “focus our resources across the board” (relevant historical blog post). That means choosing to push some things, and explicitly choosing not to put resources into others.
  • Encouraging the whole community to work on particular things. If we are an organization united by a vision, and we have a focus, then it seems entirely reasonable to me to enthuse people with that vision, persuade them that the set of activities we are undertaking are the best ones for furthering that vision, and encourage people to work on those things.
  • Changing our focus over time. It’s also OK for our focus to change as circumstances change. The best thing to advance the Manifesto today might not be the best thing tomorrow, either because we find it doesn’t work as well as we thought, or we had a better idea, or it doesn’t gain market acceptance, or the situation has changed.
  • Deprecating products and reallocating resources. That means that it must be OK to deprecate products and reallocate resources away from them to something else that we think will have more impact. Thunderbird is not deprecated in the EOL sense, but there has been a reallocation of resources because, after several tries, we found that it just wasn’t the right vehicle to move the needle in the messaging space.
  • People leaving the project who aren’t interested in that particular execution of the vision. I don’t think it’s a problem in itself if some people who decide that what we have agreed to do isn’t their cup of tea leave and go and do something else. If we see a wholesale exodus, we need to be very confident we haven’t made a serious mistake. But people coming and going will be a natural part of an organization such as Mozilla.
  • Projects which don’t help further the vision spinning off or getting more loosely associated. And, as people come and go, projects do too. Just because a project isn’t furthering the Mozilla vision doesn’t mean it’s useless to everyone, or that it must be abandoned. The great thing about open source is that as long as someone cares about a codebase, it can live on.

Then, there are some things which would be a problem if they were happening, but I don’t think they are:

  • People being forced to work on certain things they don’t want to work on. I don’t know of any non-employee Mozillian who is being forced to work on anything. Heck, I don’t know of any employed ones who are forced, although they may sometimes end up doing dull or tedious things they might not have otherwise chosen. People round here respect a “no, thankyou”.
  • Lack of space or opportunity to incubate ideas for new projects or products. It’s easier than it’s ever been to start a new thing – GitHub makes collaborating on new codebases trivial; you don’t even need to ask Mozilla for some SCM space. And at the more formal end, we have quite recently started Hatchery – which is very much open to non-employees.

The Problem(s)

Now, having got those out of the way, here are some things which I think might actually be a problem:

  • It is easier for an employee to influence Mozilla’s direction than a non-employee of the same experience and impact. In other words, leadership is not as meritocratic as it should be. Advantages of geographical proximity, available time and internal communications channels mean that the playing field here isn’t level.
  • Non-open decision-making; lack of transparency about the reason for decisions. Too often, decisions are not only made in private, but also badly communicated, or the decision is communicated without any rationale. This makes those in leadership positions seem inscrutable and works against community collaboration and cohesion. It’s OK to decide to close Live Chat, but it’s not OK unless everyone involved understands exactly why it was done (even if they don’t agree). [Note: this sentence is a conditional because I don’t know anything about the Live Chat situation. The lack of specific examples is also intentional.]
  • Employees are too focussed on their quarterly goals. There is little room for non-employees to work on their goals, or them to work on non-employees’ goals. Non-employee interaction and community building does not feature sufficiently in people’s goal frameworks and reward structures. And if you aren’t being measured against a particular thing, it’s much easier to let it go when time gets tight. Which it often does.
  • (Some) new employees don’t understand the way Mozilla should work, and see community as a resource to be leveraged when necessary rather than co-workers to be involved. This is a cultural problem. I submit that Mozilla has not done well recently at inculcating our culture into new people, and the culture itself is suffering as a result – a self-reinforcing problem.
  • Mozilla is moving so fast that community members can’t keep up. We did B2G 1.0 very fast, and community-building wasn’t a focus. I hope that’s changing now, but the pace is still high. Long gone are the days where you could pick a small, self-contained feature and spend a few months implementing it – if it is necessary, someone else will have to do it (faster than you can manage), and if it’s not, you’ll need to keep rebasing and you’ll still have trouble finding reviews.
  • Contractual restrictions make non-employees second class. Despite trying, we haven’t managed to obtain the right to talk about certain things with non-employees, or distribute some builds of B2G to them, and other things like that. Working in the mobile space means we have partners who are by default very secretive. And some code owners think open source simply means “a patent lawsuit from my competitors”.
  • We still don’t have a non-public non-employee-only discussion space. In order for us to talk about a wide range of not-on-Slashdot’s-front-page-please subjects, we need such a venue, and the lack of it means that this discussion happens in employee-only spaces. There is talk that the Mozillians Yammer, currently officially aimed only at discussion of the Firefox OS launch, will become this, but we aren’t there yet.

All of the above problems perpetuate a Corporation/volunteer divide, and lead to volunteers feel unappreciated and disenfranchised. And that’s the sense I got from Tobbi and Ricardo’s post. And that, in itself, is a problem. A big one. Let no-one say I am minimising it.

There are a couple more things which I think are or might be a problem, which come from ‘the other side’, as it were.

  • The idea that Mozilla should put organizational resources behind every project a Mozillian wants to do. A consequence of having a focus means that it’s not reasonable for Mozilla’s leadership to command that organizational resources be deployed in support of every idea anyone has. We have to evaluate how well it promotes the mission, and look at the opportunity cost – what do we have to stop doing in order to do this?
  • People not wanting to support an idea unless they were involved in coming up with it. Mozilla is now way past the size where everyone can be consulted on every decision. That’s not to say our decision-making process is anything like perfect, but “I was not consulted” cannot be, by itself, a reason to object to something.

Of course, pointing out that these are also problems does not make the other longer list of problems disappear! And no-one is suggesting it does.

So what do we do? If we are to make progress on addressing these issues, we need to have and execute a plan – they won’t fix themselves. I have some thoughts about that, but perhaps figuring out what the problem is, is the first step, and proposals for solutions can come a little later. So please comment, whether you agree or disagree with my analysis.

Reflections On Trusting…

I’ve just been watching Laura Thomson’s excellent talk “Minimum Viable Bureaucracy” on air.mozilla.org. She talks about “chaordic” management. “Chaords” are a combination of chaos and order, and a chaordic, bottom-up management style is enabled (in part, and to summarize) by trusting people who work for you, and letting them get on with it.

Trust needs to be earned, but Laura said that we need to assume that people have earned trust by passing through the hiring process, and therefore once they are a colleague of yours, you should simply trust them.

I can see the wisdom in that advice in the context of an ordinary company, but it made me think: what sort of trust have they earned in this scenario? It seems rather like they could earn “MoCo trust” that way, but not “whole community trust”. MoCo employees have more visibility into, and are more likely to trust the MoCo hiring process than non-employees. Unless the MoCo hiring process were very open and participatory, which it is not. (Doubtless for good legal reasons.) And if new employees are treated as if they’ve already earned the trust of the peers who surround them in the office, would they be less inclined to see a need to earn “whole community trust” as well? Does it subtly reinforce the employee/non-employee divide, and make it harder to be a core contributor as a non-employee, because inter-employee relationships are assumed-trust, and other relationships are not?

Are We Meeting Yet?

Tracking Mozilla meetings across time is a thorny problem. People send out meeting reminder emails, but often they forget to update a URL or a date or a time, or they update it wrong due to a DST change, or they update the local time but not the UTC time, or vice versa. Wouldn’t it be awesome if there was one URL which pointed you at the next occurrence of a weekly meeting?

Enter Dirkjan Ochtman’s “Are We Meeting Yet?“.

Construct a URL like this:

http://arewemeetingyet.com/Los%20Angeles/2013-08-20/10:00/w/Firefox%20Development%20Meeting

Pretty obviously, the first bit is the timezone (not sure why it’s half-a-timezone), the second is the date of the first instance, the third is the time of day, the fourth says “repeat weekly”, and the fifth is the title. Visit the URL and see what sort of display you get. Note that it gives you the time of the upcoming weekly meeting even though the time directly encoded in the URL is from two weeks ago. That’s the “weekly repeat” part.

The upshot of this is that you can construct one URL for your meeting (defined in the timezone in which the meeting is fixed, which is Pacific Time for most but not all Mozilla meetings) and put it in your reminder email, and you’ll not have to change it unless the meeting time actually changes :-)

People who click the link can see the time in the timezone of definition, the time in UTC, and the time in their local timezone, all in one link. No more arguments about which form of the time is more important!

It would be nice to have a form to construct such URLs with a timezone picker, a datepicker and a timepicker. Anyone feel like coding one up? (HTML5 input controls would make such a thing easy to write, but sadly we haven’t implemented them yet :-( )

Invading Ireland

There are only a limited number of ways governments can deal with a large debt (such as that run up in the UK): taking via war, raising taxes, currency devaluation, or default. The first of those possibilities inspired me when, a while back, I was asked to try and come up with a good way of explaining just how large the UK’s national debt is, in a way that a normal person can understand.

Private islands around Ireland seem to be going at the moment for between US$3M and US$300,000 for 25 acres (0.1 sq km). If the UK invaded the country of Eire, threw in Northern Ireland and sold the result as a private island, it would raise:

84,421 square km x £5m per square km = £421 billion.

Selling an entire country would raise only about 1/3 of the total needed to pay back the UK national debt.

Persuade And Be Persuaded

It is crucial, of course, to never present any individual decision as written in stone. In the comments associated with each assignment of an issue to a specific future release, invite discussion, dissent, and be genuinely willing to be persuaded whenever possible. Never exercise control merely for the sake of exercising control: the more deeply others participate in the release planning process (see the section called “Share Management Tasks as Well as Technical Tasks” in Chapter 8, Managing Volunteers), the easier it will be to persuade them to share your priorities on the issues that really count for you.

— Karl Fogel, Producing Open Source Software