Download the PHP package asbiin/laravel-sentry-tunnel without Composer
On this page you can find all versions of the php package asbiin/laravel-sentry-tunnel. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package laravel-sentry-tunnel
Laravel Sentry Tunnel
This package provides a URL for use with the tunnel-option of the Sentry SDK.
Installation
Configuration
You can optionally publish the configuration files:
Allowed hosts and projects
The project will use SENTRY_LARAVEL_DSN value to set the valid sentry host and project to tunnel the traffic for.
You can define the allowed hosts by setting the SENTRY_TUNNEL_ALLOWED_HOSTS value in your .env file, and the allowed projects by setting the SENTRY_TUNNEL_ALLOWED_PROJECTS value.
Security
This essentially creates a reverse proxy to the SENTRY_TUNNEL_ALLOWED_HOSTS. As the Sentry DSN is not kept secret, this enables everyone to send messages to these hosts that seem to originate from your server.
Therefore, the default middleware list for the tunnel URL includes web and auth (so that only authenticated users can use the endpoint).
You can change the middleware list of the tunnel endpoint by setting the sentry-tunnel.middleware value of your config/sentry-tunnel.php file.
CsrfToken
As you currently cannot pass a dynamic X-XSRF-TOKEN header in Sentry's transportOptions you either have to implement your own transport or place the tunnel URL in the exclude-list in the VerifyCsrfToken middleware.
-
Add the URL to the
exceptarray in theVerifyCsrfTokenmiddleware. - OR Implement your own transport
example:
URL
You can change the URL of the tunnel if required. The default value is /sentry/tunnel
Usage
Consult Sentry's documentation.
Citations
This package has been forked from naugrim/laravel-sentry-tunnel, with some slight changes.
License
Author: Alexis Saettler
Copyright © 2024.
Licensed under the MIT License. View license.
All versions of laravel-sentry-tunnel with dependencies
illuminate/http Version ^11.0 || ^12.0 || ^13.0
illuminate/routing Version ^11.0 || ^12.0 || ^13.0
illuminate/support Version ^11.0 || ^12.0 || ^13.0
thecodingmachine/safe Version ^2.5 || ^3.0