code.overheid.nl ยท Architecture decisions

ADR 0004

Commit addresses from the home forge in place of work addresses, with mail forwarding

Status
Proposed
Date
24 November 2026
Discussion
Pull request #102

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

Considered Options

Five questions, each with its options. The reasons are in the table under Pros and Cons.

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
What each place sees of Sanne
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:

In 0003:

Consequences

Confirmation

The decision moves from proposed to accepted when a proof of concept has shown these:

Pros and Cons of the Options

The chosen options are E2, F3, G2, H4, I3 and J2.

What each option costs, and why the others lost
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:

Open