Context and Problem Statement
Every commit carries a name and an email address. On the forges of 0002 that is mostly a work address such as s.jansen@utrecht.nl. It is personal data under the AVG. The mirrors copy it to code.overheid.nl, every clone copies it further, and git history cannot be corrected. When the person leaves, the address is dead and the history still names them.
The usual answer is a no-reply address, which GitHub has and Forgejo 15 offers as NO_REPLY_ADDRESS. Nobody can write to it, and it contains the account name, often the person's name.
This ADR decides which address goes into commits on the forges of the federation, who issues it, how a forge enforces it and where mail to it goes. The example is Sanne, a developer at Utrecht who works on a component on Amsterdam's forge from a fork at Utrecht (0002, rule 2).
The promise is a stable commit address that is not the work address, and a name that stays at the home forge unless the person shares it. Git lets a commit carry any name, so someone who sets their real name in git still publishes it.
Decision Drivers
- No work address enters new history.
- code.overheid.nl gets no work address and no real name, and holds no key and no table that leads from a commit address to a person.
- The fork at home and the pull request at the origin (0002, rule 2) keep working, and existing commits keep their hashes.
- The author of a commit can be written to while their organization still knows them.
- A person decides whether another organization gets their name and their work address.
- It works with Forgejo 15 without changes to Forgejo.
Considered Options
Five questions, each with its options. The reasons are in the table under Pros and Cons.
- Scope of a commit address: E1 all of government, E2 per person from the home forge, E3 per forge worked on, E4 per repository.
- Mail: F1 the work address, F2 no-reply, F3 a commit address with a relay, F4 an alias in the organization's mail.
- Issuer: G1 the identity provider, G2 the forge, G3 code.overheid.nl, G4 the person.
- Enforcement: H1 instruction only, H2 the pusher's address, H3 the pusher's or a colleague's, H4 any registered commit domain, H5 refuse known real addresses, H6 rewrite on receipt.
- Sharing a real name and address: I1 on the profile, I2 a claim through the hub, I3 fetched from the home forge with consent.
- The name that travels at sign-in: J1 the real name, J2 the three words, with the real name only by consent.
Decision Outcome
Chosen option: "E2", "F3", "G2", "H4", "I3" and "J2". The key and the table stay at the organization that already knows the person, and code.overheid.nl runs a relay that stores nothing and learns no destination.
The status is proposed. Nothing here is built or tried, and the list under Confirmation says what has to work before the decision is firm.
flowchart LR
idp["Identity provider<br/>of Utrecht"]
subgraph utr["Forge of Utrecht"]
direction TB
svc["Pseudonym service<br/>key and table"]
fj["Sanne's account<br/>static-cipher-drifter<br/>@code.utrecht.nl"]
svc -- "three words" --> fj
end
hub(("Hub"))
ams["Forge of<br/>Amsterdam"]
git["Git history"]
idp -- "subject and<br/>work address" --> svc
fj -- "commit address" --> hub
hub -- "commit address" --> ams
fj -- "commit address" --> git
The rules continue the numbering of 0003.
17. A person has one commit address, issued by their home forge. A forge gives an address to every account it holds itself, local accounts of suppliers included. The address does not change. No other forge derives one. At a forge Sanne visits through the hub, her account takes the address she has at Utrecht. Someone with local accounts on two forges has two addresses and two histories, and someone who moves from Utrecht to Rotterdam starts again.
18. The address is three English words under the commit domain of the forge. For example static-cipher-drifter@code.utrecht.nl. The words come from three cyberpunk word lists that Code Punt publishes, one per position, 512 words each. The forge derives them from the subject the identity provider gives a person, with a secret key of its own (HMAC). The same person always gets the same address, and nobody without the key can compute it. When two people land on the same three words, the forge raises a counter, derives again and stores the counter. The name in a commit stays free; the guide recommends the three words.
19. The home forge holds the key and the table, and the hub gets neither a real address nor a real name. A pseudonym service in the forge image holds both. It makes the commit address the primary address of the account in Forgejo, so Forgejo's own commits, the email claim it gives the hub and its signature check all use it. It also sets the display name of the account to the three words and the account name to the part of the address before the @. Those are the names Forgejo gives the hub at sign-in and writes in the commits it makes itself, such as a merge. The real name stays in the table. The hub accepts from a forge only addresses in that forge's commit domain, which the register names, and passes the address on to the forge someone visits. To find the home forge at sign-in, a person picks their organization or types its domain, never their address. Forgejo's own mail to its accounts goes out through the service, which puts the real address back. An organization without a home forge has nobody to derive addresses, so its people can only read.
20. Mail to a commit address is delivered by the home forge while it knows the person. Code Punt runs one relay for all forges, on a host outside ZAD, which takes no incoming mail. The relay hands each message to the pseudonym service of the home forge, and that service delivers it to the work address. The relay asks for no destination and gets none. Its log holds the commit address, the time and the outcome, for 30 days. Once the account is gone, the service refuses and the relay tells the sender the contact address of the organization. An organization may run its own relay.
The relay does not exist yet. Until it does, a commit address is a black hole for mail from outside, and that includes the notifications of a forge someone visits.
21. A forge refuses a push with an address outside the registered commit domains. For every new commit, the author address and the committer address are in the commit domain of a forge in the register. That stops a work address and a private address, and lets through the commits of anyone in the federation, whoever pushes. A fork that takes in new commits of its origin passes, and so does a branch that people from two organizations worked on. The refusal shows the two git config lines that fix it. Commits that Forgejo makes itself (a web edit, a merge, a commit through the API) pass the same check, and the forge's own signing address passes as committer. The check does not show who made a commit. Committing under someone else's address is caught only by signing (rule 23).
A forge administrator can exempt a repository that takes in history with real addresses, such as a fork of an outside project.
22. Existing history stays as it is. Nothing is rewritten, so hashes, forks and signatures stay valid. code.overheid.nl reports per mirror how many addresses outside the commit domains its history holds, and how many of those came in after enforcement started, which should be zero. It reports counts, never addresses. The mirrors keep the real addresses that are in history, also in the archive of a forge that left. For a person who wants theirs gone, the takedown route of 0002, rule 1 is what remains.
23. Signing is recommended, with an SSH key. GPG is not used, since a GPG key carries a name and an address. Someone with accounts on two forges uses a key per forge, or the key ties the two addresses together.
24. The table is personal data of the organization that runs the forge. The organization is the controller for the key and the table. Code Punt is a processor for the relay and for the forges it runs. An administrator the organization appoints can resolve an address to a person, and every resolution is logged. When an account is removed, the forge keeps only the commit address, so that it is not handed out again. Someone who returns gets it back because the derivation lands on it.
25. A person can share their name and their work address with a forge they visit. At her first sign-in at Amsterdam, Sanne is asked on a page of Utrecht's pseudonym service whether Amsterdam may have her name and her work address. She can give one without the other, and the default for both is no. After a yes, Amsterdam's service fetches them from Utrecht's and shows them on her account, and Amsterdam's notifications go to the address. The hub is not involved. She can withdraw at Utrecht at any time, and Amsterdam deletes what it got.
Sanne signs in at Amsterdam and proposes a change from her fork:
sequenceDiagram
actor s as Sanne
participant ams as Forge of Amsterdam
participant hub as Hub
participant utr as Forge of Utrecht
s->>ams: Sign in
ams->>hub: Sign in
s->>hub: Pick Utrecht
hub->>utr: Sign in
utr-->>hub: static-cipher-drifter@code.utrecht.nl
hub-->>ams: Same address, vouched by Utrecht
Note over ams: Her account at Amsterdam<br/>takes the Utrecht address
s->>utr: Commit in the fork, with that address
s->>hub: Open a pull request at Amsterdam
hub->>ams: Push the branch in her name
ams->>ams: Push check: every address is in<br/>a registered commit domain
Note over ams: Accepted. A commit with a<br/>work address is refused.
Someone writes to the address in a commit:
sequenceDiagram
actor out as Reader of a commit
participant relay as Relay of Code Punt
participant svc as Pseudonym service of Utrecht
participant mbox as Mailbox of Sanne
out->>relay: Mail to static-cipher-drifter@code.utrecht.nl
relay->>svc: Hand over the message
alt Sanne works at Utrecht
svc->>mbox: Deliver
svc-->>relay: Accepted
else Her account is gone
svc-->>relay: Refused
relay-->>out: Refused, write to the contact of Utrecht
end
Sanne shares her name and work address with Amsterdam:
sequenceDiagram
actor s as Sanne
participant ams as Forge of Amsterdam
participant utr as Pseudonym service of Utrecht
s->>ams: First sign-in
ams->>utr: Send her to the question
utr->>s: May Amsterdam have your name<br/>and your work address?
s-->>utr: Yes
ams->>utr: Fetch what she shared
utr-->>ams: Sanne Jansen, s.jansen@utrecht.nl
Note over ams: Shown on her account,<br/>address used for notifications
s->>utr: Withdraw, at any time
utr->>ams: Delete it
| Place | Name | Commit address | Work address |
|---|---|---|---|
| Forge of Utrecht | yes, in the table | yes | yes, in the table |
| Hub | the three words | yes | no |
| Relay | no | yes | no |
| Forge of Amsterdam | only if she shares it | yes | only if she shares it |
| Git history, clones and mirrors | what she set in git | yes | no |
Changes to ADR 0002 and 0003 when accepted
This ADR is proposed, so 0002 and 0003 stand as written. These are the changes to make in them once it is accepted.
In 0002:
- Option B6, in the list, the outcome and its heading, becomes "Organizations vouch through their home forge, which signs people in from GovConext or SSOn Rijk where the organization is connected, with code.overheid.nl as the hub". Its description says that the identity provider vouches behind the home forge and not to the hub directly, and its last Bad line that an organization needs a home forge in front of its identity provider.
- Diagrams: the identity providers point to the forges and no longer to the hub. In the sequence, Utrecht returns
static-cipher-drifter@code.utrecht.nlwhere it now returns the work address. - Rule 2 gains: "The commits carry the commit address the person has from their home forge, and a push may hold commits of people from several organizations."
- Rule 3 gains an example of a check: the number of real addresses in the history (rule 22).
- Rule 4, title and first paragraph: every organization vouches through its home forge. A connected organization signs its people in at that forge from its identity provider, and the forge gives the hub a commit address in place of the work address.
- Rule 4, second paragraph: "Signing in starts with the organization. The person picks it from a list at the hub or types the domain of their work address, never the address itself." The sentence about a contractor picking from a list goes.
- Rule 4, third paragraph: the list of lapsed vouches is published by commit address.
- Rule 5: the sentence about an organization that vouches through its identity provider is replaced by "The hub counts a vouch only when it comes from the forge the register names for the organization, with an address in that forge's commit domain. The forge keeps an account with a work address in another organization's domain out of its team."
- Rule 5, last sentence: "An organization without a home forge, its own or one that Code Punt runs (rule 8), has nobody to vouch for its people, and they can only read."
- Rule 7: seven things become eight, and the optional eighth becomes a ninth. The new one: "Give each of its accounts a commit address, refuse a push with an address outside the registered commit domains, deliver the mail the relay hands it, and give a work address to another forge only with the person's consent." In the second, "for an organization that vouches through its forge" goes.
- Rule 8: reaching the container also means reaching the key and the table of the pseudonym service (rule 24).
- Rule 9: the register holds the commit domain of each forge and the address and key of its pseudonym service, in place of whether the organization vouches through its identity provider or its forge.
- Consequences gain a Good line (the hub and visited forges receive a commit address and no work address) and a Bad line (an organization needs a home forge before its people can do more than read elsewhere).
- Confirmation: after the acceptance test, no table, log or account at Amsterdam or on code.overheid.nl holds the developer's name or work address, unless the developer shared it (rule 25).
- Rule 4: the forge someone visits hears a commit address, the three words as name and who vouched. It hears the real name only when the person shares it (rule 25).
- The open item on privacy says that this ADR settles the address and the name. The open item on account names says that an account name is the first part of the commit address.
In 0003:
- Rule 14, by a person: the commit has that person as author, with their commit address, and names code.overheid.nl in its message.
- Rule 14, by the bot and by the origin: the commits carry the commit address of the account that pushes.
- Changes to ADR 0002, rule 7: the count of things a forge does follows the new numbering.
Consequences
- Good, because new history holds no work address.
- Good, because the hub and visited forges get no work address and no real name. A compromise of the hub or the relay yields none.
- Good, because a commit Forgejo makes itself, such as a merge, carries the three words as name. That closes the leak where a merge tied a full name to a commit address in history for good.
- Good, because one push check, the same on every forge, lets through the pull request across forges, a fork that follows its origin and a branch shared by two organizations.
- Bad, because there is no relay yet. A visitor who did not share gets no notifications from the forge they visit, so saying no to sharing has a price until then.
- Bad, because a reviewer at Amsterdam sees three words and an organization for a visitor who did not share, and has to ask who that is.
- Bad, because the account at the home forge carries the three words too. Colleagues there see the real name only where a template adds it from the table.
- Bad, because someone who sets their real name in git still puts it in history. The check of rule 21 does not look at names.
- Bad, because anyone in the federation can commit under anyone else's commit address. Signing is recommended and not required.
- Bad, because every forge needs the list of commit domains from the register, and a forge that joins is unknown to the others until they fetch it.
- Bad, because an organization that vouches through GovConext or SSOn Rijk needs a home forge before its people can do more than read. 0002 lets them review without one.
- Bad, because every forge runs one more component. Forgejo's mail and password resets depend on it, its key cannot be rotated, and it has to set the primary address back when someone changes it.
- Bad, because Code Punt has to run a public mail service, with spam and abuse reports, and it sees every message in passing.
- Bad, because sharing adds a direct call between forges that 0002 did not have.
Confirmation
- A push with a work address is refused with the fix in the message. The same commit with the commit address is accepted.
- Sanne's push at Amsterdam is accepted with her commits and those of a Rotterdam colleague in the branch. Her fork at Utrecht accepts a push that brings in Amsterdam's new commits.
- After the acceptance test of 0002, no table, log or account at Amsterdam or on the hub holds Sanne's name or work address, and the hub's sign-in page never asked for either. A merge she made at Amsterdam carries the three words as name.
- Mail to a commit address arrives at the work address, and the relay's storage holds no destination. Mail to a removed account is refused with the contact of the organization.
- After Sanne withdraws, her name and work address are gone at Amsterdam within a day.
The decision moves from proposed to accepted when a proof of concept has shown these:
- A script in
pre-receive.dsees web edits, merges and AGit pushes, and reaches every new and migrated repository. - The commit address, the display name and the account name stay as the service set them through later sign-ins, and the real name and address can be kept out of Forgejo from the first one.
- A message handed over by the relay and delivered by the pseudonym service passes DMARC at the mail systems of a few organizations.
- The consent question and the shared name and address on a profile work with a template, without a change to Forgejo.
Pros and Cons of the Options
The chosen options are E2, F3, G2, H4, I3 and J2.
| Option | Why, or why not |
|---|---|
| E1 | One table for all of government, which only code.overheid.nl could hold. |
| E2 | Each key resolves one organization's people. No portability between organizations. |
| E3 | Every visited forge would need the real address to derive from. |
| E4 | Nobody can see that two commits are by one person. |
| F1 | In every clone for good, dead when the person leaves. |
| F2 | Forgejo has it today. Nobody can write to the author, and the account name is in it. |
| F3 | Works as an address. Someone has to run a public mail service. |
| F4 | A change in every organization's mail system for every developer. |
| G1 | Every organization changes its identity provider, and local accounts are not in it. |
| G2 | The image does it the same everywhere. The forge gets a key and a table to guard. |
| G3 | The hub would hold the key for everyone. |
| G4 | Cannot be checked and forwards nowhere. |
| H1 | A laptop with the wrong user.email puts a real address in history. |
| H2 | Two colleagues in one fork cannot propose in one push. |
| H3 | A fork that takes in commits of its origin is refused, since those carry another organization's addresses. |
| H4 | Keeps real addresses out and lets every federation commit through. Does not show who made a commit. |
| H5 | A private address the forge does not know passes. |
| H6 | Every push diverges from its own clone, and no signature survives. |
| I1 | Needs nothing and stays possible. Nobody knows the address is theirs. |
| I2 | The hub would handle the address, and Forgejo's claims are a fixed set. |
| I3 | Passes nobody else. Forges call each other directly. |
| J1 | Works today. A name and an organization often give the work address away, and a merge writes the name into history. |
| J2 | The hub and visited forges see three words. A reviewer does not know who a visitor is until they share. |
More Information
Details
Derivation. HMAC-SHA256 with the forge's key over the subject and a counter that starts at zero, read as three indices of nine bits. The subject is the sub claim of OpenID Connect, or the forge's account number for a local account. Three lists of 512 words give about 134 million addresses. A forge with 10,000 accounts has a 31 percent chance of at least one collision, so the counters are few. They are backed up with the key. An organization that changes its identity provider gets new subjects and needs a mapping from the old ones.
Removed accounts. The forge keeps the address and drops the subject. A new person whose derivation lands on a kept address would get it; with 10,000 kept addresses that chance is under 1 in 10,000 per new account.
Mail. The MX record of the commit domain points to the relay. The relay hands the message over unchanged during the SMTP session, over an authenticated connection, so the sender's DKIM signature stays valid and a refusal reaches the sender at once. The pseudonym service sends it on through the organization's outgoing mail server.
Push check. A script in pre-receive.d of every repository, which Forgejo also runs for its internal pushes. It reads the commit domains from the register. Migrations and pull mirrors run no hook, and that is how existing history comes in.
Sharing. The pseudonym service keeps the shared name and address outside the Forgejo account, or Forgejo would offer the address for commits and write the name into its own. Amsterdam fetches again at every sign-in and once a day, so a withdrawal takes effect when a message is lost.
AVG. A commit address is pseudonymized data (article 4(5)) and stays personal data. The basis for sharing is consent. The DPIA settles both.
Forgejo source
Read in 15.0.11, not run:
models/user/user.go: the no-reply address, and the name and address of Forgejo's own commits.routers/web/repo/editor.go: the addresses a web edit offers.models/asymkey/ssh_key_object_verification.go: an SSH signature verifies through the committer address.modules/repository/hooks.goandcmd/hook.go: every executable inpre-receive.druns, also for internal pushes.routers/web/auth/oauth.go: theemailclaim is the primary address, the name claims are the display name and the account name, and a later sign-in does not update the address.services/user/email.go: an administrator sets the primary address through the API.services/asymkey/sign.go: a commit the instance signs has the instance's address as committer.
Open
- A host for the relay that accepts incoming mail.
- A commit identity per account in Forgejo, with a name that can be set. With it the commit address no longer has to be the primary address.
- The DPIA, with the organizations that will hold a table.