1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2025-12-12 08:04:03 +00:00
tenancy/assets
Samuel Štancl 510358b9be
Config: scope_sessions = true only with supported drivers, always throw
With the previous implementation, many users would use the default
config that enables scope_sessions. They would then deploy the app
to production and get the exception there since they use the
`database` session driver which is scoped by a different mechanism.

The idea behind throwing the exception only in prod was to make it
easy to use different setups locally without getting annoying
exceptions, while notifying users that a security feature they enabled
isn't running in production.

However, a better way of doing this is to just throw the exception
consistently in all setups and use a sane default for enabling the
scope_sessions setting based on the SESSION_DRIVER env var.

Users are always encouraged to read the session scoping docs to make
sure their session scoping configuration makes sense for their specific
setup, but this is a good balance for providing solid security out of
the box for most setups without requiring users to configure things
manually.
2025-11-05 14:53:07 +01:00
..
impersonation-migrations Add remember column to to the impersonation token (#1101) 2023-04-13 02:05:26 +02:00
migrations Postgres RLS + permission controlled database managers (#33) 2024-04-24 22:32:49 +02:00
resource-syncing-migrations Use polymorphic table for mapping resources to tenants (#997) 2023-02-02 06:39:35 +01:00
config.php Config: scope_sessions = true only with supported drivers, always throw 2025-11-05 14:53:07 +01:00
routes.php Refactor early identification (#47) 2024-04-22 11:30:58 +02:00
TenancyServiceProvider.stub.php Update stubs, add PHP 8.5 todo 2025-10-13 16:16:40 +02:00
tenant_routes.stub.php add line end to sample route response 2024-07-09 00:15:37 +02:00