Description
Hi,
After upgrading to a Telescope version that now depends on laravel/sentinel, Telescope stopped working in our local environment.
Before Sentinel was added as a dependency, Telescope was working locally without issues.
setup:
- Laravel 12
- Telescope 5.18.0
- Docker
- local environment
- app is accessed through a local reverse proxy (nginx)
- Laravel is configured to trust forwarded proxy headers because the same app is also deployed behind AWS ALB in non-local environments
What happens now:
/telescope returns 401 Unauthorized locally
- this happens before Telescope’s normal authorization logic
- the request is blocked by Sentinel middleware
From debugging, the relevant part seems to be:
- Telescope now prepends
Laravel\Sentinel\Http\Middleware\SentinelMiddleware
- Sentinel’s local driver rejects requests when Laravel considers the request to be from a trusted proxy and the resolved client IP is not private
That means a local setup with trusted proxies can no longer access Telescope, even though this worked before Sentinel was introduced.
if we remove/bypass Sentinel locally, Telescope works again
Questions:
- Is this expected behavior?
- Is there an officially recommended way to keep trusted proxies enabled for deployed environments while still allowing normal local Telescope access?
- Would it make sense for Telescope to provide a config option to disable Sentinel protection in
local, or to make the Sentinel layer opt-in?
Thanks
Description
Hi,
After upgrading to a Telescope version that now depends on
laravel/sentinel, Telescope stopped working in our local environment.Before Sentinel was added as a dependency, Telescope was working locally without issues.
setup:
What happens now:
/telescopereturns401 UnauthorizedlocallyFrom debugging, the relevant part seems to be:
Laravel\Sentinel\Http\Middleware\SentinelMiddlewareThat means a local setup with trusted proxies can no longer access Telescope, even though this worked before Sentinel was introduced.
if we remove/bypass Sentinel locally, Telescope works again
Questions:
local, or to make the Sentinel layer opt-in?Thanks