Tech:Projects/Wiki Statistics Special Page

This is a project proposal for implementing a system where on request, users are able to generate a Lets Encrypt certificate which is then deployed to GitHub and to MediaWiki via $wgServer (after being approved by an SRE member)

Background
Currently, in order for users to have a domain other than a Miraheze subdomain (i.e. example.miraheze.org) they must file a request on Phabricator. After that, a SRE member must generate an SSL certificate with a script on a server (mwtask111), transfer the private key generated on another server (puppet111), commit the SSL certificate and config on GitHub and then complete $wgServer via Special:ManageWiki.

Stage 1
Updating certbot cli to check rDNS is correct and either CNAME or NS record is present. Add argument to skip this.

Stage 2
Creating a web form to automate creating SSL tasks + checking validity - refuse to create if invalid.

Stage 3
Creating a new wrapper for generating new SSL certs, pushing public keys to GitHub and moving private keys to puppet111 and updating $wgServer via ManageWiki

Requirements
The current system will have to be completely resigned and the server where private keys are generated should be the same place where they are ultimately stored, rather than two servers.

Outcome Steps

 * A web form that allows users to create requests for custom domains (and by definition SSL certificates) which then can be approved or declined by SRE members. Approval would entail the automatic creation and deployment of the SSL certificate and configuration of the custom domain.

Getting Started
Anyone interested in starting this project should:
 * get familiar with how our SSL process currently operates (see Tech:SSL certificates) for more details
 * get in touch with an SRE member to discuss how to proceed