Smart homes are all the rage these days. I've been tinkering with mine for a while now, and I've learned a few things that might save you some time, money and grey hairs. Thought I'd share.
Auth0 custom domain with Cloudflare and Terraform
When you use Auth0 for authentication, you can use a custom domain to make your login page respect your branding and look more professional. This is usually accomplished with a simple CNAME record pointing to the Auth0 domain. It's a straightforward process if you use Auth0's managed certificates. However, depending on the popularity of your service you might find yourself under auth attacks that might cause your auth to be down. The way to fix this is by proxying your auth through Cloudflare.