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
|
339f8e5778
|
Delete default value for config('tenancy.token')
|
2023-06-27 11:05:36 +02: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
|
6bd78b4520
|
Delete dump()
|
2023-06-15 13:52:18 +02:00 |
|
lukinovec
|
b0effa60e7
|
debug
|
2023-06-15 13:44:39 +02:00 |
|
lukinovec
|
9e9e81b69c
|
debug
|
2023-06-15 13:28:17 +02:00 |
|
lukinovec
|
7b092ec9d3
|
Check RLS policies by name
|
2023-06-15 13:16:57 +02:00 |
|
lukinovec
|
0f9e0f33b0
|
Move Postgres user permissions to config
|
2023-06-15 13:03:44 +02:00 |
|
lukinovec
|
1ce18d2759
|
Add basic model discovery test
|
2023-06-15 11:45:38 +02:00 |
|
lukinovec
|
5cb3b5f4c1
|
Improve query scoping test
|
2023-06-15 11:07:31 +02:00 |
|
lukinovec
|
f859a5da06
|
Move RLS toggling and model directories config to tenancy.rls
|
2023-06-15 10:27:18 +02:00 |
|
lukinovec
|
741af3929c
|
Add test for granting permissions to new Postgres users
|
2023-06-14 09:40:55 +02:00 |
|
lukinovec
|
fa43d8ae1d
|
Rename RLSModel to RlsModel, fix global scope test
|
2023-06-07 13:55:43 +02:00 |
|
lukinovec
|
d0d38cef26
|
Update RLS tests (test both the config and the interface)
|
2023-06-07 09:41:22 +02:00 |
|
lukinovec
|
4175ac07bd
|
Rework model discovery
|
2023-06-06 15:46:50 +02:00 |
|
lukinovec
|
7d44322b7e
|
Rename test file, update tests
|
2023-06-05 16:35:50 +02:00 |
|
lukinovec
|
7c7680baf6
|
Make PostgresRLSBootstrapper a singleton
|
2023-06-05 12:02:41 +02:00 |
|
lukinovec
|
5754f8bdc4
|
Get central connection name from the config
|
2023-06-05 10:08:48 +02:00 |
|
lukinovec
|
12b36f407d
|
Rename bootstrapper, improve docblock
|
2023-06-01 10:26:39 +02:00 |
|
lukinovec
|
3738d2885c
|
Revert beforeEach cleanup (tests fail in CI)
|
2023-05-31 14:02:54 +02:00 |
|
lukinovec
|
b964aa90d3
|
Improve code style, beforeEach cleanup
|
2023-05-31 13:58:25 +02:00 |
|
lukinovec
|
3ef1c38414
|
Delete single-call DB transactions
|
2023-05-31 07:38:43 +02:00 |
|
lukinovec
|
8ccc27e8c3
|
Rename bootstrapper
|
2023-05-29 11:15:38 +02:00 |
|
lukinovec
|
28efc0ca97
|
Update model docblocks
|
2023-05-29 09:55:59 +02:00 |
|
lukinovec
|
1f9a344f33
|
Make the (Scoped)Comment model distinction clearer
|
2023-05-24 15:12:35 +02:00 |
|
lukinovec
|
47fe86c21e
|
Use DB transactions
|
2023-05-24 14:57:06 +02:00 |
|
lukinovec
|
57df6e2b30
|
Delete setting database.connections.pgsql config in TestsCase
|
2023-05-24 10:38:12 +02:00 |
|
lukinovec
|
d60062131a
|
Complete todo cleanup
|
2023-05-23 10:30:47 +02:00 |
|
lukinovec
|
aec8d50b7d
|
Set default credentials
|
2023-05-23 09:57:24 +02:00 |
|
lukinovec
|
c4b1d1c6c4
|
Update configuring Postgres credentials in TestCase
|
2023-05-22 17:00:40 +02:00 |
|
lukinovec
|
a46b26800f
|
Add docblocks to single-db models, add return types to relationship methods
|
2023-05-22 15:01:49 +02:00 |
|
lukinovec
|
fcb54cbe8e
|
Delete the UUID-specific logic, make RLS possible with non-UUID primary keys
|
2023-05-10 15:36:07 +02:00 |
|
lukinovec
|
90a0343223
|
Simplify UUID models
|
2023-05-10 13:07:08 +02:00 |
|
lukinovec
|
974950c300
|
Clean up
|
2023-05-10 12:49:53 +02:00 |
|
lukinovec
|
99fc1e3f87
|
Add return types to relationship methods
|
2023-05-10 12:47:51 +02:00 |
|
lukinovec
|
0f921c1362
|
Fix Postgres test
|
2023-05-10 12:27:28 +02:00 |
|
lukinovec
|
fb042a0671
|
Use models with UUID in the tests (wip)
|
2023-05-10 11:21:43 +02:00 |
|
lukinovec
|
17d779e130
|
Scope queries using Postgres RLS (WIP)
|
2023-05-09 16:07:06 +02:00 |
|
lukinovec
|
eb7baa5360
|
Skip RLS test (RLS is WIP)
|
2023-04-28 14:28:20 +02:00 |
|
lukinovec
|
ce7ddbf401
|
Complete scaffolded RLS test
|
2023-04-28 14:27:29 +02:00 |
|
lukinovec
|
0a2415319b
|
Improve RLS policies test, move setup things to beforeEach, scaffold test for scoping queries
|
2023-04-27 18:06:11 +02:00 |
|
lukinovec
|
dc81b0ec20
|
Move classes to separate files
|
2023-04-27 18:01:37 +02:00 |
|
lukinovec
|
a5d004132c
|
Delete temp action, improve tests
|
2023-04-27 13:47:56 +02:00 |
|
lukinovec
|
b66773da80
|
Try conditionally creating tenants table
|
2023-04-27 13:08:24 +02:00 |
|
lukinovec
|
e169cf49fa
|
Create and drop schema in tests
|
2023-04-26 18:10:19 +02:00 |
|
lukinovec
|
034c284303
|
wip
|
2023-04-26 15:34:27 +02:00 |
|
lukinovec
|
562d507482
|
Test if policies get created correctly using action
|
2023-04-26 15:25:50 +02:00 |
|
lukinovec
|
910da724e4
|
WIP
|
2023-04-26 14:02:18 +02:00 |
|