Domesday
Domesday* is the name of the software which will run a Mozilla Contributor Directory.
Purpose
We aim to build a website where Mozilla contributors can create a simple profile that includes their basic contact information and references to their identities in other systems. In this way, it will associate someone's identity in Bugzilla, Hg, IRC, etc., allowing people who know one to find out the others, and also provide community members with a bit of (opt-in) biographical information about the person they are interacting with.
In addition, it will allow people in the same geographical area to connect up for local events. We also hope, through the 'trusted' mechanism (see below) to dissolve barriers between paid and unpaid contributors to Mozilla.
The software will be open source, so other groups can pick it up to build their own Domesday servers.
Anti-Purpose
There are some things we are explicitly not doing as part of this project:
- Building an extranet
- Building an 'identity server' or single signon server
- Building an OpenID provider
- Building an authorization system
Data from the system may later help in the construction of one or more of the above, but this is not any of them.
Features
- Minimum possible set - do one thing well
- Individual profiles
- Profile management - creation, deletion
- Search (by any identifier)
- Tagging
- Configure the privacy level of each item of information
The key way of interacting with Domesday will be via its API - it is expected that most information it serves will be consumed via "plugins" for other apps - mail clients, Bugzilla, IRC clients, SCM web interfaces, etc.
Who's In?
Anyone can create an account (but see 'Trustedness', below).
If people in the Directory slow or cease their involvement with Mozilla their profiles will not be automatically removed, but rather flagged as "inactive".
Use Cases
An initial (and likely incomplete) list of possible use cases for this system:
- Answer the question "who is that?" in various Mozilla project systems.
- Identify a community member by searching for their first name and scanning through photos in the search results.
- Compile a list of people to invite to a Mozilla Leadership Summit (all currently-active trusted contributors who are team/project leaders or above).
- Find everyone working on SUMO.
- Find all our contributors who live within 50km of Ottawa, Canada.
- Generate a world map of all our contributors.
User Tasks
- Accept invitation
- Log in/out
- Create profile
- Edit profile
- Delete profile
- Reset password
- Invite a new person (by email address)
Administrator Tasks
Everything a User does plus...
- Change profile active/inactive flag
- Delete profile (at user request only)
- View all the people someone invited
- View who invited someone
Trustedness
The directory has the concept of a "trusted" person. We want to make it easy for new community members to get accounts on the directory with minimal hassle, but we also want to make people feel that they can share info like phone numbers and email addresses without significant risk that they will be misused. We also want to avoid the "Employees" category being the default for sharing such information, because it puts a split into the community.
Instead, we have the concept of "trustedness" - a binary flag on a profile (although perhaps implemented as a tag). The way it gets enabled remains to be seen, but it happens when enough people in the community have worked with you to have a good feeling about letting you know their personal data, and Mozilla trusts you e.g. to not reveal sensitive discussions. (Trustedness may one day become the basis for access to a set of non-public discussion forums.)
The hope would be that Mozillians would choose to share things like "address" and "phone number" and other personal details with the "Trusted" group.
Data + Privacy
The directory will be publicly searchable and viewable, but with fine-grained privacy controls so users can control who gets to see what information in their profile. Given that the purpose of the directory is to disseminate information, the key thing here is not to keep everything as private as possible by default, but to set expectations and meet them. The privacy system must be clear.
Each field will have an attached privacy value, so a user can specify who can or cannot see what information. Privacy control options will be:
- Public (the whole world)
- All Users (everybody in the Directory)
- Trusted Users (see above)
- Paid Staff (or a better name, and a smaller set)
- Private (nobody)
We want to make sure the site meets people's privacy expectations. So the default privacy for each field depends on who could work it out if the directory didn't exist. So Name and Photo would default to Public, IDs on various services like Bugzilla and Hg would default to "All Mozillians", but "Phone Number" or "Address" would default to All Paid Staff or Private.
In terms of UI, it could be that the editing screen presents fields in different coloured sections, corresponding to different levels of privacy. If the user wants to change the privacy of a data point, they have to physically move it from one section to another.
Deleting Profiles
Users should be able to delete their profile completely at any time, with all data being completely removed and no longer available via any interface to anyone, including admins. For practical reasons, copies will remain as part of normal archived backups of the system.
Data Fields
Current suggestions for initial fields are as follows. Only given name, one email address and password are compulsory.
(NOTE: Much of this is Mozilla-specific, so this stuff must be easily changed/customized so other projects can use this code to create their own Directories.)
| Field | Default Privacy | Description |
|---|---|---|
| Name | Public | given name, middle (optional), family name |
| Email Address(es) | All Users | |
| Password | Private | |
| Call Me | Public | name by which they prefer to be addressed |
| IRC Nick | Public | |
| Tags (see below) | Public | |
| Photo | Public | strongly encouraged, but not required |
| Bio | Public | limited to 1024 chars or so |
| Start Year | All Users | Year they started working on Mozilla stuff |
| System IDs | All Users | system:id pairs for e.g. Bugzilla, version control, IM, social networks, 140-character status sites |
| URLs | All Users | Website, blog etc. |
| Job Title | All Users | just for fun |
| T-shirt Size | Paid Staff | (Men’s/Women’s :: XS/S/M/L/XL/XXL/XXXL + link to size chart) |
| Street Address | Paid Staff | if we were to send you a t-shirt, where should it go? |
| City | All Users | name as text; also located on a map and stored as a rough lat-long |
| Country | All Users | |
| Phone Number(s) | Trusted Users |
Tagging
The tags system will be in two parts - public and personal. Public tags are those on you that anyone can see and edit (but see below); personal tags are those you add to other people that are not visible by default. However, anyone who knows who you are and the name of the tag can see the list of people to whom it is added.
So personal tags are for pulling together set of people like "fosdem-invitees". One Mozillian may be making the list, but anyone else can see it by querying on domain.com/search?tag=fosdem-invitees&tag_owner=foo@bar.com
In general, we expect people to maintain their own public tags, but we make it so anyone can edit them because in some cases, keeping data sets current will be much easier if the person caring about the data can fix things rather than contacting everyone concerned. Some tags will have restrictions on who can add/remove them, to make sure particular data sets remain correct. Uses cases for this include "driver", "trusted", "reviewer" or "mozpaid".
Tags may also be in name:value format, in which case restrictions are defined on the name. (This allows us to have tags like 'module-owner:Places', but have the appointment of module owners restricted to a certain set of people without having to enumerate all the possible modules.)
Schedule
The aim is to have something up and accepting registrations by the end of Q1 2011.
Implementation
- Python and Django, because that's what webdev are most familiar with and I want to be able to ask for their help :-)
- Profile and search outputs (via templates) as HTML (with HCard), JSON (perhaps using PortableContacts schema), VCard, XRD (for WebFinger)
- LDAP vs. SQL - tricky. A directory back end means that perhaps it could one day run on top of Mozilla's LDAP authorization infrastructure, using the same database. But I know SQL much better. To be investigated.
- I plan to rip the HTML UI off from the current intranet Phonebook.
- Making it actually happen is more important than the use of any one particular technology.
Resources
- Gerv :-) I'll be writing the code.
- Contributor Engagement are very interested in the project, and are offering help.
- L10n are interested in the project, and can offer help.
- David Boswell has offered to help.
References
- Deb Richardson's "Sigil/Signa" proposal, from which much of this page is shamelessly stolen (link on Mozilla Intranet)
- Gravatar's new Profile feature (courtesy mhanson)
- gitHub "identity page" (courtesy mhanson)
- Flavors.me profile pages (courtesy mart3ll)
* - OK, so this is about the sixth name this project has had. But what does it mean to write a piece of software if you don't get naming rights? :-)