Skip to content

Local Telescope access breaks behind trusted local reverse proxy after Sentinel was added #1691

@beeyev

Description

@beeyev

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:

  1. Is this expected behavior?
  2. Is there an officially recommended way to keep trusted proxies enabled for deployed environments while still allowing normal local Telescope access?
  3. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions