Teza's tech notes

Three bugs from my Kubernetes build, and what they taught me

5 December 2026 · 1 min read
#troubleshooting#terraform#oidc

Building the platform went wrong in useful ways.

1. The login that wouldn't match. My pipeline's OIDC login to Azure failed with "no matching federated identity record". The log showed the token's subject included numeric IDs for the GitHub owner and repo, not just their names. Once I matched the trust rule to that exact subject, it worked. Lesson: OIDC failures are almost always issuer, audience or subject. Read all three.

2. The plan that never went clean. After I removed a setting, the cloud filled in its own default, so every plan showed "2 to change" forever. I wrote the default into the code. Now a clean plan says "No changes", and any real drift stands out.

3. The flaky test. A test checked that a saved game world didn't contain the text "hp". One day a random ID happened to include those letters. I changed the test to check field names instead of raw text. It still catches real leaks, and it can't fail by chance.

None of these were hard once I read the error properly. That's most of troubleshooting.