Notes

joshua stein via @jcs@jcs.org - Jul 12 2023 13:38:30

My advice for running a public-facing API, coming from 11 years of operating the Pushover (@pushover) API:

- Host the API on its own hostname
- Don't be too liberal in what you accept
- Avoid OAuth if you can
- Log a unique id with every request
- Be descriptive in your error responses
- Use prefixed tokens
- Stay on top of failures

https://jcs.org/2023/07/12/api

joshua stein via @jcs@jcs.org - Jun 28 2023 09:09:27

I hardwired a WiFiStation so it is powered by the MailStation's batteries or AC power, and shuts off when the MailStation does

I might try removing the DB25 port of the MailStation and wiring something up to fit the WiFiStation guts entirely inside the MailStation

joshua stein via @jcs@jcs.org - Jun 22 2023 08:45:31

Did you ever waste a whole day tearing apart hardware and rewriting your drivers to figure out why your firmware was getting corrupted when transferring it to your hardware device, only to discover it was a broken compiler on the host generating garbage and everything was transferring that garbage just fine all along...

joshua stein via @jcs@jcs.org - Jun 13 2023 09:46:46

I discovered by accident that Thunderbolt 3 magically works in OpenBSD on my X1 Nano.

I plugged in a Thunderbolt NVMe enclosure to check whether it would fall back to USB attachment, but ppb, pci, and nvme devices attached. I verified with an Apple Thunderbolt 2 ethernet device (through a Thunderbolt 2 to 3 adapter) and it also attached as bge0 as expected, and detached properly when unplugging.

My previous tests with Thunderbolt on other OpenBSD laptops only worked when the devices were plugged in at boot time, since the firmware had to setup the device. I'm not sure whether something changed in OpenBSD or the EFI firmware that makes hotplugging work now without a Thunderbolt NHI driver, but I'll take it.

The best kind of drivers are the ones that don't have to be written :)