jmikola/insecure-routes-bundle
Symfony bundle for enforcing HTTPS on sensitive routes: mark routes as secure-only and the listener denies or redirects any request arriving over plain HTTP. Simple YAML configuration, works with your existing firewall and route names.
URL::forceScheme() call plus one middleware. Vendoring a dependency to replace tens of lines of framework code is a net negative on review, upgrade, and supply-chain cost..env, AppServiceProvider gating, trusted proxies), asserted as a production-only invariant — not a package whose purpose is to disable a security control.composer require it without pulling SymfEon 2 routing/DI components that conflict with illuminate/*. It does not appear on any Laravel roadmap regardless of quality.Consider it only if all of the following hold:
Look elsewhere — or write it yourself — when:
URL::forceScheme() gated on app()->environment('production'), a ForceHttps redirect middleware, TrustProxies, and per-env .env. This package contributes nothing.Recommendation: do not adopt. Close the evaluation; harvest the pattern.
The package removes HTTPS scheme requirements from routes in Symfony2 applications so they can be served over plain HTTP in dev and test. The pain is real — hardened HTTPS defaults make local and CI environments awkward — but the instrument is wrong on every axis we care about:
AppServiceProvider::boot() plus one middleware we would own and understand. The dependency costs more in review, upgrade, and supply-chain attention than writing it.What to do instead: standardize the environment-scoped approach in platform guidance — HTTPS enforced as a production-only invariant, forceScheme gated on app()->environment() (not raw env()), trusted proxies configured, HSTS off only outside production, and a CI check that fails if scheme requirements are relaxed anywhere but local/testing. That guidance is reusable across every Laravel service; this package is usable on none of them.
Effort to close: near zero. Effort to adopt: fork maintenance plus ongoing security review of a control-disabling dependency. The trade is not close.
How can I help you explore Laravel packages today?