TL;DR: Using the
cafield to specify custom CAs (certificate authorities) in Node.js is a footgun. It replaces (rather than appends to) the root trust store which can lead to unintended consequences. I've seen this behavior cause outages in production when a third party server does a routine …
The "obvious" way to write a custom GitHub Action is using Node.js, however it's not the only way. As it turns out, a GitHub Action really just communicates with the "orchestrator" via environment variables (as inputs) and STDOUT (to produce custom outputs).
When defining an action, there are …
This is a tiny little note that can help with debugging in some situations.
We'll use netcat (
nc) to view the raw data sent to and returned from
an HTTP server1.
Capture a Request
We'll run a dummy listener via
nc and directly inspect the body of an
I recently put on my detective hat and tracked down a bug in network error recovery in a popular PostgreSQL library. Below, we'll walk through the process of bugfinding and iteratively making the feedback loop smaller and smaller. In order to find and fix the bug I
- Confirmed the root …