4 ms·
> Shouldn't gov.uk just stick to domains under .gov.uk?(!) Would make it easier to work out who's actually gov.uk and who's merely pretending :) Much smaller s
by erinaceousjones 4y ago
> Shouldn't gov.uk just stick to domains under .gov.uk?(!) Would make it easier to work out who's actually gov.uk and who's merely pretending :)
Much smaller scale example: Where I work, our production web app is at `<subdomain>.<charity>.ac.uk`.
DNS and SSL certs are managed centrally by IT. We open a support ticket, someone in IT gets it done. DNS entries are usually done within a few hours, but they like to purchase SSL certs in batches so if we need a cert for a new domain/subdomain it could take a few days or weeks.
It's useful for us to spin up multiple different dev/test/staging copies of our app, which are otherwise nearly identical to production in terms of how the infrastructure is set up. These are short-lived and used for internal user acceptance testing before we roll out changes to the live app - they're only accessible on the local network (so, via VPN or onsite), but we want to reduce friction to our users, as the ones doing the acceptance testing are domain experts (i.e. scientists, researchers, electrical engineers) but don't want to be tinkering around with software dev stuff like "editing /etc/hosts" and "accepting self signed SSL certificates".
We don't want to wait around for a whole sprint length's amount of time waiting on new temp subdomains when we've got new stuff to demo to people. It's a lot easier to just claim a domain name of our own (i.e. `.ga` and `.ml` are free) and set them up with external DNS management (have used cloudflare before, because it's easy to do letsencrypt DNS challenge method with it), and use letsencrypt for the SSL certs.
We could theoretically ask IT to let us manage the DNS ourselves for everything under `<subdomain>.<charity>.ac.uk`, i.e. they point that subdomain to an `NS` record to an authoritative DNS server that we run ourselves, and we could ask them for some wildcard certificates so we could do stuff like `staging-env-123.<subdomain>.<charity>.ac.uk`.
But our team is small, and we don't really _want_ to manage yet another service (our own DNS)* and have it adequately locked down to appease "cyber essentials" and so forth :-) and neither do IT want to defer DNS to "knowledgeable, but still users" users of the corporate network. And wildcard certificates are iffy from a security standpoint also.
*In practise this'd be letting kubernetes components manage it, but k8s is so bloody brittle and oh god I cannot keep up with all of this devops stuff there's like 5 of us stop making us run servers on top of servers.
It would not surprise me if there's similar gatekeeping of .gov.uk subdomains and SSL certs, necessary-for-security bureaucracy given their high profile, which slows down the deployment of temp. staging / "internal user acceptance testing" environments, and so the internal dev teams at some point went "fuck it, we'll buy a new domain ourselves" and someone paid for the govuk.digital domain using a Government Purchase Card and claimed it on the relevant Project Code.
EDIT: Reading comments about buy-your-own-domain being "shadow IT". Salient points about random people in the org paying for third-party services with a company credit card and then leaving. It's important to get in the "bus factor" mindset with this stuff, e.g. "if I got hit by a bus today, would anything fuck up in work if I wasn't there to remember login details?". Make sure logins for things are shared with the whole team in a secure way, make use of tools which support organisation accounts, have a shared mailbox etc.... oh and make sure the companies/services gets registered as a supplier with finance.
- samwillis 4y ago> purchase SSL certs So still operating in a pre "Let's Encrypt" period. Disappointing to hear a charity is wasting money on SSL certs.
- erinaceousjones 4y agoYeah, it's annoying, it's all political reasons too AFAICT. LE is also verboten because of stipulations from Certain Government Departments. There was definitely pushback years ago about just using LE because "it's bad for security" which effectively translated to "we don't trust it because it's free and we have less control over the domains issued". Hopefully that mindset changes now that LE is well-established. Also should be noted that technically most of the domains are owned/purchased by the research councils (govt level) and they buy certificates which cover like 100 different domains (wtf, this seems ripe for domain-squatting) at a time, so at least they're getting their moneys worth out of those certificate renewals. So it takes even longer for us to get certs because the _research council(s)_ are busy batch-renewing certs for multiple institutions they're involved with. Individual research projects also end up with their own domains that one EU country pays for, another country hosts, and a third one manages, because they all met up for beers in Brussels for a kickoff meeting and decided that was the fairest way of doing it. Each institutions IT department trying to make sense of the chaos which the principal investigators are creating, "seek forgiveness rather than permission" :-)