1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2026-02-05 13:34:04 +00:00
Commit graph

1292 commits

Author SHA1 Message Date
lukinovec
193efce9c0
Update src/Database/Concerns/BelongsToTenant.php
Co-authored-by: Samuel Štancl <samuel.stancl@gmail.com>
2024-01-25 14:14:00 +01:00
PHP CS Fixer
96615f02ea Fix code style (php-cs-fixer) 2023-11-22 17:08:29 +00:00
lukinovec
5a1beb1f3b Make Postgres tenant DB password default to central 2023-11-22 18:07:58 +01:00
lukinovec
90dc8d50be Add RLSModel 2023-08-07 10:54:23 +02:00
lukinovec
b04b063fe6 Delete extra RlsModel class 2023-08-07 10:46:58 +02:00
PHP CS Fixer
0ca52f9be3 Fix code style (php-cs-fixer) 2023-08-07 08:45:26 +00:00
lukinovec
34e8fb7fa9 Delete 'rls' test group 2023-08-07 10:44:58 +02:00
lukinovec
ad0a2e5f6f Use "RLS" instead of "Rls" 2023-08-07 10:44:48 +02:00
lukinovec
4ed5aa0add Make schema configurable in CreatePostgresUserForTenant 2023-07-28 13:31:06 +02:00
lukinovec
2a5683122e Add and test excluding models from discovery 2023-07-20 13:43:10 +02:00
lukinovec
a664860d63 Add todo (exclude specific models) 2023-07-18 08:02:05 +02:00
lukinovec
9055034451 Delete unused property 2023-07-04 15:53:27 +02:00
lukinovec
15cdd6b2c1 Protect RLS policy creation statement from SQL injection 2023-06-28 10:36:59 +02:00
PHP CS Fixer
1111607495 Fix code style (php-cs-fixer) 2023-06-28 08:13:36 +00:00
lukinovec
855ebfbd0b Protect queries from SQL injection (CreatePostgresUserForTenant) 2023-06-28 10:13:13 +02:00
lukinovec
30f4f430d5 Fix default permissions 2023-06-28 09:51:30 +02:00
lukinovec
a504a86789 Use specific default user permissions instead of granting all 2023-06-28 09:35:40 +02:00
lukinovec
238132781d Rename method 2023-06-28 07:27:51 +02:00
lukinovec
66c2ac4fa4 Delete typo 2023-06-27 17:56:55 +02:00
lukinovec
d005e7b06d Test that tenant permmissions are scoped only to the tenant schema 2023-06-27 17:48:47 +02:00
lukinovec
08b4216d69 Rename variable 2023-06-27 14:09:10 +02:00
PHP CS Fixer
c712505d4e Fix code style (php-cs-fixer) 2023-06-27 10:38:48 +00:00
lukinovec
a568aa3626 Update the Postgres RLS bootstrapper 2023-06-27 12:38:21 +02:00
PHP CS Fixer
72b708e4c7 Fix code style (php-cs-fixer) 2023-06-27 10:19:08 +00:00
lukinovec
0fa52e5020 Update password defaulting logic 2023-06-27 12:18:44 +02:00
lukinovec
339f8e5778 Delete default value for config('tenancy.token') 2023-06-27 11:05:36 +02:00
lukinovec
d449fba037 Make default password an empty string 2023-06-27 10:40:54 +02:00
lukinovec
c4fb7b225e
Use static instead of tenancy()
Co-authored-by: Samuel Štancl <samuel.stancl@gmail.com>
2023-06-27 10:10:54 +02:00
lukinovec
89b9e1bfd9 Filter out non-model array items 2023-06-19 15:30:26 +02:00
PHP CS Fixer
033f9a4dca Fix code style (php-cs-fixer) 2023-06-19 13:26:02 +00:00
lukinovec
9262d95ce4 Revert try/catch removal, add/update comments 2023-06-19 15:24:39 +02:00
lukinovec
376f7ba0b0 Fix variable name 2023-06-19 14:09:40 +02:00
lukinovec
171b01ba9d Fix PHPStan error, update variable names 2023-06-19 14:02:18 +02:00
PHP CS Fixer
032e29ac79 Fix code style (php-cs-fixer) 2023-06-19 11:55:44 +00:00
lukinovec
42b7ab2bd6 Make tenancy.token config call in the Sevice class default to an empty string 2023-06-19 13:55:16 +02:00
lukinovec
eddb95c014 Use reflection instead of try/catch, use arrays instead of collections 2023-06-19 13:53:27 +02:00
lukinovec
8d13ce7e2f Add/update comments 2023-06-19 12:57:16 +02:00
lukinovec
1fd1aa7ad6 Delete dump, use getTenantModels 2023-06-16 11:08:07 +02:00
lukinovec
89d9e20c38 Dump dropped policies 2023-06-16 10:47:35 +02:00
lukinovec
43d167bb48 Comment out dropping policies 2023-06-16 10:35:44 +02:00
lukinovec
c25aa221cb Drop policy if exists 2023-06-16 10:31:55 +02:00
lukinovec
46b89fd0ec Delete dump, put getModels into transaction 2023-06-16 10:26:15 +02:00
lukinovec
bd7f885c23 Delete dump 2023-06-16 10:22:15 +02:00
lukinovec
a9b8f1a299 move dump 2023-06-16 10:04:51 +02:00
lukinovec
eb5829175e Test if the db statement is incorrect 2023-06-16 09:57:58 +02:00
lukinovec
92ed22ef19 Query log 2023-06-16 09:41:09 +02:00
lukinovec
9aee480a80 Dump DB statement 2023-06-16 09:33:55 +02:00
lukinovec
796a251b7d Check RLS tables 2023-06-16 09:28:38 +02:00
lukinovec
e024701ab9 Try using getModels() outside of DB::transaction() 2023-06-16 09:20:49 +02:00
lukinovec
1fb90129cf Revert CI testing changes 2023-06-16 08:42:36 +02:00