Remix.run Logo
▲ hinkley an hour ago

“Describe a time when you were wrong.”

On the code signing project a very insistent party got through a request to have the software send an email at 90, 60 and 30 days before key expiry. We also did mutual auth keys for TLS but I don’t recall how or if we would have done the same there.

At any rate nobody else knew anything about sending emails. That part wouldn’t have been done from my code anyway, but the potato shifted to me after someone else tried and failed. I didn’t want anything to do with it, and a handful of senior people agreed, but this one was a sticking point our boss didn’t want to expend political capital on, so I registered my complaint and did the ticket under protest. If it needed to be done right then I was the only one with more than half a clue about SMTP so here we go.

Fast forward to the next anniversary of the project, we have been doing in house testing and coordinating with other teams, working on the ingestion and distribution code, and now the certs we cut for integration and E2E testing are starting to expire, and people were being surprised by this.

I really thought, in the spirit of Feynman, that if I just explained it right, everyone would figure out how certificates work because they aren’t actually that complex. They are just more of the same thing as code signing in the first place. I did eventually succeed before I left, but I stayed almost a year longer than I had hoped to make sure that happened.

But the problem with certificates is ergonomics not education. They just work for a year and you don’t have to think about them, so people don’t. And if you try to reduce the hassle of a yearly renewal by going for 2, you actually make it worse because now it’s two years so you completely forget about it. Or you’ve moved to a new job and it’s someone else’s problem (although this was a company people retire from so less of that). So they really did need those emails, even in beta testing.

I vetoed a plan to do 2 year certificates, under the notion that an employee remembering to renew their certificate every year around the anniversary of joining their team would be easier to recall, like remembering Martin Luther King Day. But I only barely convinced a simple majority that I was right this time.

A bit of cleverness I added to our integration tests: we were running them on Linux VMs so I tweaked the cert test fixtures to point the email address to the agent’s userid@localhost, then wrote a script to empty the inbox before testing and then we just checked the raw inbox file for expected text. The human testers were more than happy to let the automation verify those features instead of doing it with acceptance testing.