Ensuring Config Validation at Startup to Prevent Runtime Errors in K8s

Is there a way I can load a Config in at program startup to validate it's loaded correctly, and access it later without having to check for a Config Error? For instance, my Auth0 Config I need to reference in Http middleware, but if it's not present I want the application to fail to start, particularly because that will prevent a silly config whoopsie (Which, if we're being honest, are like 90% of fuckups in prod) from happening with k8s using automated rollbacks and rolling restarts.
Was this page helpful?