One Codebase, Many Customers: Config Without Leaks
Customer B got customer A's webhook address and secret reference. The bug was one line.
Video #314 ยท Forward deployed engineer interviews
Steps in the video
Files
- check.py (28 lines)
- loader.py (24 lines)
- run.py (14 lines)
- settings.py (18 lines)
Tested with
Python 3.12.15
What this does not show
Made-up customers and settings; secrets are only reference names. One kind of leak (a shared default that is changed), one load order, safe loader first. The check only compares settings that exist in the defaults, and the expected values are built by the same copy and merge.
Sources
Learning IT by Example.