@@ -61,10 +61,24 @@ private to the members of the project the issue is reported on (the
...
@@ -61,10 +61,24 @@ private to the members of the project the issue is reported on (the
Keep in mind, however, that it is still possible issue information
Keep in mind, however, that it is still possible issue information
gets leaked in cleartext, however. For example, GitLab [sends email
gets leaked in cleartext, however. For example, GitLab [sends email
notifications in cleartext for private issue](https://gitlab.com/gitlab-org/gitlab/-/issues/5816), an known upstream
notifications in cleartext for private issue](https://gitlab.com/gitlab-org/gitlab/-/issues/5816), an known upstream
issue. (We have [decided we cannot fix this ourselves in GitLab for
issue.
now](https://gitlab.torproject.org/tpo/tpa/gitlab/-/issues/23).) Some repositories might also have "web hooks" that notify
IRC bots in clear text as well, although at the time of writing all
We have [deployed a workaround for this](https://gitlab.torproject.org/tpo/tpa/gitlab/-/issues/23) which redacts outgoing
projects are correctly configured.
mail, but there's still some metadata leaking there:
* the issue number
* the reporter
* the project name
* the reply token (allowing someone to impersonate a reply)
Some repositories might also have "web hooks" that notify IRC bots in
clear text as well, although at the time of writing all projects are
correctly configured. The IRC side of things, of course, might also
leak information.
Note that internal notes are currently *not* being redacted, because
of a limitation in how GitLab fails to add a special header for those
outgoing emails, see [issue 145](https://gitlab.torproject.org/tpo/tpa/gitlab/-/issues/145).
## How to contribute code?
## How to contribute code?
...
@@ -1441,6 +1455,78 @@ Update: see [service/static-shim](service/static-shim) for the chosen
...
@@ -1441,6 +1455,78 @@ Update: see [service/static-shim](service/static-shim) for the chosen
solution to deploy websites built in GitLab CI to the static mirror
solution to deploy websites built in GitLab CI to the static mirror
system.
system.
### Redacting GitLab confidential issues
Back in 2022, we embarked in the complicated affair of making GitLab
stop [sending email notifications in cleartext for private
issue](https://gitlab.com/gitlab-org/gitlab/-/issues/5816). This involved [MR 101558](https://gitlab.com/gitlab-org/gitlab/-/merge_requests/101558) and [MR 122343](https://gitlab.com/gitlab-org/gitlab/-/merge_requests/122343), merged in
GitLab 16.2 for the GitLab application side. Those add a header like:
X-GitLab-ConfidentialIssue: true
To outgoing email when a confidential issue is created or commented
on, or when an "internal note" is added.
That header, in turn, is parsed by the outgoing Postfix server to
redact those emails. This is done through a [header_checks(5)](https://www.postfix.org/header_checks.5.html) in