Next steps from GTI TAC meeting on 2023-03-08 - Evaluate cost of glibc migration.
Konstantin,
The GTI TAC met on 2023-03-08 (please ignore the date typo 06-08):
https://lore.kernel.org/gti-tac/[email protected]/
There was consensus that we should start working through the process steps one project at a time and pipe-clean the process and learn as we go.
I volunteered glibc as the first project because I know the most about the project and the requirements.
I am providing the full list of glibc services for review and pricing by LF IT.
When I say "review" I am looking for a critical eye from LF IT where you might recommend a better solution that you can support in the long term e.g. wiki, bugzilla, mailing lists, mailing list archives, etc. Likewise for things we should drop as legacy and not convert them over.
I expect that pricing depends on the final solution and the exact work to be done so this will take some iteration. Likewise I expect pricing is split between NRE for the shift vs. ongoing.
That means the the next steps likely look like this (needs further discussion):
* Iterate over the services below and discuss how and what to migrate them to.
* Start socializing with the glibc project community.
* Finalize on the approximate details of the migration and ongoing services.
* Finalize on the cost and timeline.
* Get the GTI TAC to review and approve.
* Get the GTI Board to review and approve.
* Take it to the glibc project for approval.
* Execute on timeline.
Complete set of known glibc services:
* mailing lists
* Mailman 2 mailing lists: https://sourceware.org/mailman/listinfo/*
* libc-announce
* libc-alpha
* libc-stable
* libc-help
* libc-locales
* libc-testresults
* glibc-cvs
* glibc-bugs
* glibc-bugs-regex (limited bugs just for regex).
* Closed legacy mailing lists:
* libc-ports: https://sourceware.org/mailman/listinfo/libc-ports
* libc-hacker: https://sourceware.org/mailman/listinfo/libc-hacker
* Also the older MHonArc archives (/legacy-ml/) - no longer updated, but the /legacy-ml/ URLs and /ml/ redirects to them need to keep working. E.g. https://sourceware.org/legacy-ml/libc-alpha/2020-01/
E.g. https://sourceware.org/legacy-ml/glibc-bugs-regex/2020-03/
* Mailing lists accept non-html email only.
* Run through spamassasin
* Run through clamav
* Pipermail archives:
* https://sourceware.org/pipermail/*
* e.g. https://sourceware.org/pipermail/libc-alpha/
* public-inbox archives:
* https://inbox.sourceware.org/*
* e.g. https://inbox.sourceware.org/libc-alpha/
* Not all inboxes work correctly e.g. glibc-bugs-regex doesn't work.
* Migration notes:
* Only supporting public-inbox for ml archives.
* bugzilla 5.0.4+
* Uses backend SQL database of MariaDB 10.3
* Must be able to send email to glibc-bugs mailing list.
* Don't know how email is routed to this list.
* Must also send email glibc-bugs-regex mailing list.
* Don't know how email is routed to this list.
* Must be able to send email to all users on the bug.
* Must be able to receive email when someone responds to a glibc-bugs email e.g. [email protected].
* Custom Administration->Groups settings for User RegExp.
* canconfirm: Allow certain domains to always be able to confirm bugs.
* editbugs: Likewise but for editbugs.
* Must have REST API enabled to allow RM to generate release list of fixed bugs using the glibc/scripts/list-fixed-bugs.py script e.g. https://sourceware.org/bugzilla/rest.cgi/
* Implies that non-logged-in users can list and view all bugs that were fixed for the release.
* Must have account creation disabled due to spamming.
* Must have someone with Bugzilla admin access to:
* Add new users to bugzilla.
* Add new Product components, versions, and milestones.
* Add new Key Words
* Remove users.
* Migration notes:
* https://sourceware.org/bugzilla/
* Consider starting fresh in new BZ instance and freeze old product.
* glibc in old instance marked "Not open for new bugs."
* git 2.31
* Allows per-user access to commit to the glibc repo.
* Allows per-user access to commit to the legacy glibc-ports repo.
* Uses group access to control repository access.
* Must be able to send email to glibc-cvs mailing list with one
email for each commit made by a developer to any branch of the repository.
* AdaCore hooks need more thorough audit for required services.
* Must be able to send email to bugzilla to update bugs.
* Done by AdaCore hook 'file-commit-cmd'
* Configured to use email-to-bugzilla-filtered command.
* Uses connection to SQL database to determine if bug exists.
* Currently uses shared AdaCore hooks configured via origin/meta/config
* Active hooks:
* post-receive
* AdaCore post_receive
* /git/glibc.git/hooks-bin/post-receive
* Triggers irkerhook.py (see notes below).
* Does not work today, likely due to requirement to register OFTC user.
* post-update
* Standard git-update-server-info.
* pre-receive
* AdaCore pre_receive
* AdaCore config:
* No max line lengths.
* Allow UTF-8 in commit messages.
* 5MiB max email size.
* Max 500 commit messages for larger commit series sent to glibc-cvs.
* Reject merge commits to master and release branches.
* Allow rebasing only private branches (non master and non release).
* Run minimal style checker, nominally for whitespace issue rejection.
* Run extra commit checking to avoid source address for author being wrong.
* /git/glibc.git/hooks-bin/commit_checker
* From email format checker. No special requirements.
* /git/glibc.git/hooks-bin/style_checker
* Style chcker. No special requirements.
* Send email to bugzilla if a commit mentions a bug.
* /git/glibc.git/hooks-bin/email-to-bugzilla-filtered
* Uses /sourceware/infra/bin/email-to-bugzilla
* Must be able to connect to bugzilla SQL database.
* Does not appear to work today. We don't get emails for commits with bugs.
* Send IRC message to per-project configured IRC channel.
* Involves irkerhook.py and git config information for project.
* Hook must be able to connect to external IRC networks to post IRC notices.
* Migration notes:
* Allow community to manage access?
* wiki
* Uses MoinMoin 1.9.10
* Must have account creation disabled due to spamming.
* Uses EditorGroup permissions to allow any community member to add a new community member to the wiki e.g. human vetting another human.
* Must be able to send notification emails.
* Cron run to purge users not in EditorGroup to prevent wiki slowdown.
* Migration notes:
* Preference for something git based.
* patch management.
* Uses patchwork v3.1.1.post18-g11cf1f3
* Must be able to receive email (as part of collecting patch data)
* Must be able to send emails as part of account verification.
* Uses django for administration
* Must allow authenticated REST API access for patchwork.
* Currently rate limited.
* Used by SLI tools (Carlos O'Donell)
* Run manually on developer systems.
* Auto-close on commit patchwork bot (Siddhesh Poyarekar)
* Run on sourceware.org via cron.
* Used for weekly patch management meetings.
* git-pw integration used to access patchwork directly using REST API and API token.
* Migration notes:
* Patchwork a strong requirement for upstream CI/CD.
* Red Hat Bluejeans remote meeting system.
* Must allow remote video and audio for participants around the world.
* Allows weekly glibc patch review meetings for patch review collaboration.
* Meetings must operate without host needing to be present so community can host.
* Delegating host is difficult in bluejeans.
* Managed by Bluejeans/Verizon.
* The glibc community has switched to LF BBB instance for the last 24 meetings.
* Since 2022-12-12 we have been using LF BBB instance successfully to host weekly meetings.
* Migration notes:
* Already migrated to LF BBB. NOP.
* pre-commit CI system.
https://gitlab.com/djdelorie/glibc-cicd
* Run inside a VM.
* Uses networkless containers for further build isolation.
* Highest risk system because it runs mailing list posted patches.
* Event curation system (curator):
* Must have network access to patchwork REST API.
* Must have access to SQL database for storing state.
* Currently using MariaDB.
* Must allow runners to access curatore REST API URL.
* One curator currently hosted by DJ Delorie.
* Event running system (runner + trybots):
* Must have network access to curator REST API.
* Must have local network access to rabbitmq queue (job delegation)
* trybots must have local network access to rabbitmq.
* Must have network access to patchwork REST API to post results.
* Must have network access to container registries to pull modern containers.
* Must have network git access to pull updated glibc git repo.
* Generally the runner and trybots are on one site together.
* Avoid passing rabbitmq traffic beyond the local network.
* Eventual emailing of results to the mailing list will happen via another bot that is distinct from this system to avoid the runners needing anything but restricted network access.
* One runner hosted by DJ Delorie
* One i686 trybot hosted by DJ Delorie
* One "patch applies" trybot hosted by DJ Delorie
* Migration notes:
* Could argue no migration required. LF hosts patcwork. Community hosts try bots.
* Website (sourceware.org)
* CVS hosted website.
* Static redirect to gnu.org website.
* Migration notes:
* Need something for a static site.
* Website (gnu.org)
https://www.gnu.org/software/libc/
* CVS hosted website uploads along with manual.
* Manuals are generated with scripts in the CVS repo and generated files committed.
* All static content.
* Website automatically updated after CVS commits.
* Manged by the GNU Project/FSF.
* Migration notes:
* No migration required see previous "Website (Sourceware.org)" entry.
* Release tarballs (ftp upload of gpg-signed release tarballs)
https://ftp.gnu.org/gnu/libc/
* Use gnupload script to gpg sign uploaded tarballs.
* Uses ncftpput to place files into /incoming directories.
* Network ftp access required.
* Managed by the GNU Project/FSF.
* Migration notes:
* No migration required, would continue to upload to FSF.
* Longer term discussion to use something more advanced.
* Though good to have a backup following kernel best practice.
* Translation project services
https://translationproject.org/html/welcome.html
* https network access to TP servers to fetch uploaded translation files.
* Managed by the Translation Project.
* Migration notes:
* Don't expect to have a replacement.
* IRC services on OFTC and Libera.Chat
* Using #glibc on both networks for community interaction.
* Migration notes:
* Don't expect to have a replacement.
Signature · 2 lines
Cheers, Carlos.
Quoted 5 lines · Carlos O'Donell
Konstantin,
The GTI TAC met on 2023-03-08 (please ignore the date typo 06-08):
https://lore.kernel.org/gti-tac/[email protected]/
Quoted 7 lines
There was consensus that we should start working through the process steps one project at a time and pipe-clean the process and learn as we go.
I volunteered glibc as the first project because I know the most about the project and the requirements.
I am providing the full list of glibc services for review and pricing by LF IT.
Carlos:
I'm not ignoring you, it just so happened that the ice storm (and the subsequent loss of power) + Easter holidays basically ate away a whole week of my productive time. I'll be responding to your email shortly, apologies for the delay.
-K
Quoted 13 lines · Konstantin Ryabitsev
Quoted 5 lines · Carlos O'Donell
Konstantin,
The GTI TAC met on 2023-03-08 (please ignore the date typo 06-08):
https://lore.kernel.org/gti-tac/[email protected]/Quoted 7 lines
There was consensus that we should start working through the process steps one project at a time and pipe-clean the process and learn as we go.
I volunteered glibc as the first project because I know the most about the project and the requirements.
I am providing the full list of glibc services for review and pricing by LF IT.
Quoted 9 lines
Carlos:
I'm not ignoring you, it just so happened that the ice storm (and the subsequent loss of power) + Easter holidays basically ate away a whole week of my productive time. I'll be responding to your email shortly, apologies for the delay.
-K
OMG! Wow, no problem and completely understood. Thanks and good look with the inbox wrangling.
Brian
Signature · 4 lines
Brian Behlendorf General Manager, Open Source Security Foundation [email protected] Twitter: @brianbehlendorf
Quoted 2 lines · Carlos O'Donell
That means the the next steps likely look like this (needs further discussion):
* Iterate over the services below and discuss how and what to migrate them to.
Hello, everyone:
Sorry for continued delays -- I had a few false-starts and plenty of usual distractions, but I am finally able to move on this task with a clearer picture of what I am doing. I know you asked for costs, but they are going to depend on the finalized set of services, so I am going to set this aside just for the moment and focus on the technical aspects of the migration. It's not really that I am keeping anything close to heart, it's just that a lot of this infrastructure will be using shared deployments, and it's as not straightforward to easily assign dollar figures to cycles as cloud hosting setups would like us all to believe. :)
# Service enumeration
## Mailing lists
The number of mailing lists doesn't really matter -- they are all managed via mlmmj and public-inbox and we're only really looking at the general volume of messages and size of archives.
Looking at your list, the only thing we don't do is clamav, because it's mostly security window-dressing. Your client-side antivirus and end hosting provider is much more likely to do a good job catching any malicious content than clamav.
The mailing lists will be using shared infrastructure (subspace.kernel.org) for the actual mailing lists, and for the public-inbox archives we can either host them as part of lore.kernel.org, or deploy a separate service just for your own list -- your preference. There are upsides and downsides to either choice here.
Our mailing list infrastructure is uniquely tailored to public-inbox users, with messages being written to the archives *before* they are even sent out to subscribers, which helps speed up access for users who aren't using the traditional "push" subscription module, but are pulling search-based results instead (using lei). This proves to be a much more reliable mechanism for patch-based workflows than traditional SMTP push subscriptions.
## Bugzilla
Everything on your list looks fine, and we can certainly replicate these features. We have also recently released our own experimental bugbot that allows us to much better integrate public-inbox managed mailing lists with bugzilla and git:
https://lore.kernel.org/workflows/gmnswy45efztvcyc3xqymm52h7cdfwjz64go2wy3zyeqcqwb76@36fva4hyip4q/
The major improvement of this vs. bugzilla's native email interface is that bugs can be created from mailing list discussions, not just the other way around. The bugbot will need to be slightly adjusted for CTI needs, but otherwise I think it would be a better solution than Bugzilla's native email integration. For example, when bugmail is sent to the mailing list and someone responds who does not have a Bugzilla account, their account would be auto-created. Our approach does not require this and will happily allow fully two-way bridging between Bugzilla and mailing list discussions.
## Git
We are using Gitolite for all our projects, and we strongly suggest doing the same here. It would be straightforward to migrate from Unix user/group permissions to Gitolite authN, so I do not expect this to be complicated or a showstopper.
The rest of it will need some work to figure out the best way forward:
* Sending per-commit email to mailing lists -- this seems like a vestigial feature from the pre-git past. Does it really serve any purpose? I am fighting to kill a similar feature used on the kernel.org side, because I do not see any remaining legitimate use for it -- it just creates a lot of mail traffic that nobody really reviews.
* We do not currently allow direct hooks on the server side, because running arbitrary scripts with the permissions of the git server is a very bad anti-pattern when it comes to repo security. It also tends to make pushes super slow and frustrating to developers, especially those working on slow or unstable connections that can go rapidly stale, resulting in failed pushes.
So, we will need to wrap our collective heads around what your hooks are doing now and implement them via alternative means. For example:
* denying force-pushes to specific branches (rebase/non-fast-forward updates) is a native feature of Gitolite
* our bugbot is able to integrate git commits with bugzilla better than sending out mail to an bugzilla ingestion point, and this doesn't need to happen on commit (we use git log queries)
* the same can be done for IRC/Matrix notifications, if that is still desired
The only thing that would require more work is style checkers and other CI functionality that really should not be happening on-push. I suggest that this moves entirely to patchwork CI, discussed below.
## Patchwork
Everything described under "Patch management" we can do, with some tweaks. For example, we feed patchwork from public-inbox archives instead of directly piping incoming email. We also have our own git-patchwork-bot that is able to auto-close patches and series when it seems them show up in git repositories, with follow-up messages to authors and to the mailing list.
We also have multiple projects using patchwork CI integration (e.g. see
https://patchwork.kernel.org/project/netdevbpf/list/), which is our recommended way of doing pre-commit checks on patch series.
## Wiki
I strongly believe that wikis are quickly fossilizing creatures of a bygone era. If at all possible, we will not migrate any wikis, instead migrating them to readthedocs-style documentation (e.g. using pandoc for migrations). We have done it with a number of projects now and will be happy to assist in this case as well.
There are multiple obvious upsides:
* Fast pre-rendered documentation
* Sane site organization
* No more dealing with wiki spam
* CI integration for actual style-enforcement
I do not believe there is any reason to continue to run wikis in 2023.
## Project CI
I am side-stepping this for now, because CI was outside the scope of our discussion. If that has changed and we're now making CI a core part of the migration, then I will need to loop in our Release Engineer team for their analysis and suggestions.
## Websites
Any static-site generator solution will do, including readthedocs as with the suggested wiki migrations. We have previously used Jekyll and Pelican.
## Release tarballs
There are multiple ways of getting this done, including completely automated. For example, stable kernel releases are generated server-side by using and verifying the PGP signature found in a git note attached to the release tag. This doesn't work if the tarball is not directly generated from a git repository (for example, if config scripts must run first).
In the case when we can't use the git tag note process, we can also do tarball uploads using our own "kup" tool that is done over ssh and uses the gitolite permission framework. I'm quite shocked that someone in the world still uses FTP for any uploads. :)
## IRC
We don't run our own IRC servers, but LF may potentially offer Matrix, which we may bridge to an IRC server of your choice (and if needed).
# Bird's eye infrastructure overview
To implement everything as discussed above, we would deploy a small subset of VMs:
- gitolite VM, which is the primary of all your git repositories and tarball releases
- bugzilla VM, which hosts the bugzilla itself
- bot VM, which runs all the integration bots, such as bugbot, git-patchwork-bot, patchwork mail ingestion bot, site/documentation build bots, etc -- basically all infra "CICD"
- SQL VM for bugzilla, patchwork, and bot databases
- patchwork container (since it's a Django app, we don't need a VM here)
- public-inbox archive frontend VM (if not using lore.kernel.org)
The price footprint on these VMs and containers is fairly small, especially because we will try to shift most high-traffic services to shared infrastructure:
- public git repositories will be replicated to multiple worldwide frontends, same as git.kernel.org
- all static sites will be served from shared infrastructure
- tarball releases will be replicated and served via mirrors.kernel.org
Furthermore, once other toolchain projects start migrating, we can reuse all of this infrastructure for that purpose.
# Next steps
Before we go any further and start talking concrete VMs and costs, we need to figure out the CI part that I side-stepped, and the complete rework of git hooks that I suggest needs to happen before we can consider switching over. I do feel very strongly that none of it should be running on git push -- but without a deeper understanding of your needs, I cannot rule anything completely out. Should we start a separate thread to make sure that I'm not suggesting anything that isn't workable because I'm not fully grasping your needs?
# OpenSSF
Lastly, I do believe that CTI migration is already partly or fully covered by OpenSSF grants. I am in a separate conversation with folks from the Alpha Omega group at OpenSSF to better understand their goals and the longevity of their grants -- but this will probably also impact the financial side of the equation (I just don't know to what degree, yet).
Again, apologies for the continued delays. Please know that CTI is currently front and center in my focus, so I hope to catch up on a lot of tasks that have been on the backburner.
Best regards,
Konstantin
Quoted 4 lines · Konstantin Ryabitsev
In the case when we can't use the git tag note process, we can also do tarball uploads using our own "kup" tool that is done over ssh and uses the gitolite permission framework. I'm quite shocked that someone in the world still uses FTP for any uploads. :)
GNU already has a system for release uploads to https://ftp.gnu.org that works very well and I help maintain it.
Debian uses ftp for package uploads according to
https://www.debian.org/security/faq and of course they support package downloads over ftp too. There is nothing wrong with it for our use case. Ssh would have the disadvantage of managing extra keys, but I'm not opposed to adding it if it would make sense. If there are any features lacking for the GNU ftp, we would be happy to add them. For GNU maintainers to discuss potential improvements to the ftp the best place is https://lists.gnu.org/mailman/listinfo/gnu-prog-discuss. There are also multiple inherent advantages of GNU packages to use the GNU release site. For example, for any changes to the set of keys gpg authorized to upload, there is a manual review by FSF tech team and GNU volunteers.
Signature · 3 lines
Ian Kelling | Senior Systems Administrator, Free Software Foundation GPG Key: B125 F60B 7B28 7FF6 A2B7 DF8F 170A F0E2 9542 95DF https://fsf.org | https://gnu.org
Quoted 10 lines · Ian Kelling
Quoted 4 lines · Konstantin Ryabitsev
In the case when we can't use the git tag note process, we can also do tarball uploads using our own "kup" tool that is done over ssh and uses the gitolite permission framework. I'm quite shocked that someone in the world still uses FTP for any uploads. :)
GNU already has a system for release uploads to https://ftp.gnu.org that works very well and I help maintain it.
Agreed, and I use it for glibc to upload release tarballs.
However, the tarball release process is quite heavy-weight for release branch maintenance.
In addition the downstreams sync from git release branch -> distro git to get the rolling release updates.
So all the other discussions about trusting git become relevant here.
Signature · 2 lines
Cheers, Carlos.
Quoted 5 lines · Carlos O'Donell
Quoted 3 lines · Ian Kelling
GNU already has a system for release uploads to https://ftp.gnu.org that works very well and I help maintain it.
Quoted 8 lines
Agreed, and I use it for glibc to upload release tarballs.
However, the tarball release process is quite heavy-weight for release branch maintenance.
In addition the downstreams sync from git release branch -> distro git to get the rolling release updates.
So all the other discussions about trusting git become relevant here.
Yes, that all makes sense to me.
- Ian
Quoted 10 lines · Ian Kelling
Quoted 7 lines · Carlos O'Donell
Quoted 3 lines · Ian Kelling
GNU already has a system for release uploads to https://ftp.gnu.org that works very well and I help maintain it.
Agreed, and I use it for glibc to upload release tarballs.
Quoted 8 lines
Quoted 6 lines
However, the tarball release process is quite heavy-weight for release branch maintenance.
In addition the downstreams sync from git release branch -> distro git to get the rolling release updates.
So all the other discussions about trusting git become relevant here.
Yes, that all makes sense to me.
Just for clarity, and quoting again from my service evaluation for glibc:
~~~
* Release tarballs (ftp upload of gpg-signed release tarballs)
https://ftp.gnu.org/gnu/libc/
* Use gnupload script to gpg sign uploaded tarballs.
* Uses ncftpput to place files into /incoming directories.
* Network ftp access required.
* Managed by the GNU Project/FSF.
* Migration notes:
* No migration required, would continue to upload to FSF.
* Longer term discussion to use something more advanced.
* Though good to have a backup following kernel best practice.
~~~
I noted that no migration is required here, but a backup has value. If the backup, kput, used my ssh key via gitolite then it's already using something I have setup as a maintainer to access git.
Several of the GNU Toolchain projects today upload to sourceware.org *and* gnu.org. After the upload is complete we have mirroring from other sources. So only the service of "upload" during a release window could be improved by having an alternative.
The longer term discussion point there is specifically about what I raised there, that release branch maintenance via tarballs is much heavier than needed. Upstream uses git. Downstream uses git. And we want a git to git mirror-style setup. In Fedora we would call this "source-git" (as opposted to "dist-git" which contains rpm spec files and configuration information). Today we sync Fedora Rawhide dist-git weekly from upstream glibc git in order to have weekly CI/CD. This conversation is something I can have with the GNU Project and attempt to document best practice.
Signature · 2 lines
Cheers, Carlos.