A debug build configuration mistake caused production secrets to leak by accidentally including debug endpoints in release builds. The root cause was duplicated debug config in the release build, which didn't trigger immediately but later exposed internal APIs through a hidden switch. The fix was enforcing compile-time separation of debug and release configurations, eliminating runtime toggles for sensitive code paths entirely.

1m watch time

Sort: