No Compromises · Joel Clermont and Aaron Saray
Ever installed a Laravel package locally and immediately accessed it, only to wonder later whether your access controls are actually working in production? In the latest episode of the No Compromises podcast, we discuss why tools like Telescope and Horizon behave differently in local environments versus production, and why that inconsistency is a problem worth solving. We make the case that developer convenience should never come at the cost of security confidence. If your gate logic cannot be exercised locally, you cannot truly trust it is protecting your production environment. We also dig into how Aaron worked around the issue by overriding the package's service provider logic, and why Laravel has since made this easier to handle cleanly. (00:00) - Why local and production environments should match (01:42) - How Telescope's gate logic behaves differently locally (03:01) - The risk of untestable access control logic (07:53) - How Aaron overrode the service provider to fix it (10:23) - Silly bit (00:00) Why local and production environments should match (01:42) How Telescope's gate logic behaves differently locally (03:01) The risk of untestable access control logic (07:53) How Aaron overrode the service provider to fix it (10:23) Silly bitOur courses took the production hits so your app doesn't have to.
0:00JoelWelcome to No Compromises. A peek into the mind of two old web devs who have seen some things. This is Joel.
0:08AaronAnd this is Aaron.
0:16JoelI always beat the drum, like in tips and different things, about making sure your local development matches production.
0:25This is something... I feel strongly about it because I feel like I've bumped into maybe dozens of ways that it has bit me when they're not the same.
0:35And I'm talking like, even the patch version of PHP being different, file system, case sensitivity, you name it. I've been there.
0:44So, Aaron, I know you feel the same way.
0:47AaronI would say that before we kind of locked down, having everything be the same in all the different environments.
0:54I would say before we made that decision, I remember running into scenarios like you just mentioned, at least one time a year, if not longer.
1:00JoelRight, yeah.
1:02AaronSo that adds up over the course of old cranky man career.
1:07JoelAbsolutely, yes. So, this isn't like, "Oh," you know, "theoretically you should do this."
1:13It's like, no, I've literally been burned in bad ways in production, and I just can't take it anywhere.
1:18So, all this is to say, today's topic, we had another area where I see regularly people deviating how they handle local versus production.
1:31And I just wanted to see if it kind of falls into that same bucket for you.
1:34I'm going to let you kick it off, because I think this topic was your idea. But I was just sort of setting up some background for us here.