1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2026-03-22 22:54:04 +00:00

Commit graph

  • ce1585ed71
    change continue-on-error to fail-fast Samuel Štancl 2023-11-21 02:07:33 +01:00
  • d182df4458
    set continue-on-error to true Samuel Štancl 2023-11-21 02:03:00 +01:00
  • 9512886306
    Create validate.yml Samuel Štancl 2023-11-21 01:59:36 +01:00
  • 52261ef814
    Merge branch 'archtechx:3.x' into 3.x Leandro Gehlen 2023-11-17 02:15:27 -08:00
  • c49e9b7e39 Fix connection config template array_merge parameter order Sergio Parejo 2023-11-15 15:13:19 +01:00
  • 8b0bdd42ed Make getCustomColumns() static in SingleDomainTenant lukinovec 2023-11-09 09:35:06 +01:00
  • 0858702b49 Add step option to migrate-fresh command Massimo 2023-11-08 13:30:16 +01:00
  • e25e7b7961
    Single-domain tenants (#16) lukinovec 2023-11-08 11:38:26 +01:00
  • c34952f328
    Add broadcasting channel prefixing bootstrapper (#12) lukinovec 2023-11-06 22:09:01 +01:00
  • 1c952023e1
    Execute the bootstrappers in reverse order when reverting to central context Marius 2023-11-05 11:41:13 +02:00
  • b503dbf33d
    Fix rollback command (#14) lukinovec 2023-10-16 01:50:59 +02:00
  • ab240fb675
    Correct variable name (#15) lukinovec 2023-10-12 22:45:52 +02:00
  • ba15a4bfb9
    fix: don't create database if its exists mohammad mahdi khakdaman 2023-10-07 19:48:32 +03:30
  • c587c47b12 Make universal routes work for controller middleware chillbram 2023-10-02 19:12:58 +02:00
  • 85c7465aca remove unnecessary import v3.7.2 Samuel Štancl 2023-09-02 03:20:42 +02:00
  • caf2267a08 reimplement TenantAssetsController::validatePath() (fixes #1143) Samuel Štancl 2023-09-02 03:19:37 +02:00
  • 8d38f42cd0
    Correct asset helpers, make asset helpers work with path identification (#6) lukinovec 2023-08-31 15:44:26 +02:00
  • f7d9f02fd4
    Improve route cloning action (#8) lukinovec 2023-08-28 13:17:17 +02:00
  • 4d4639450e
    Use randomly generated tenant key instead of 'acme' in failing test (#10) lukinovec 2023-08-25 17:01:47 +02:00
  • 4af70d302f add extra $path validation to TenantAssetsController v3.7.1 Samuel Štancl 2023-08-24 18:21:23 +02:00
  • 2d500f9780
    Fix #1112 - throw an exception if DATABASE_URL is set (#9) Samuel Štancl 2023-08-18 20:21:00 +02:00
  • 395192442d
    Add use (#1103) tamiroh 2023-08-18 14:40:21 +09:00
  • 9d6356aea4
    Close tenant connections after jobs (#1128) lukinovec 2023-08-18 07:38:07 +02:00
  • af3812e788
    Fix filesystem bootstrapper (#7) lukinovec 2023-08-16 09:03:25 +02:00
  • 948754cadc
    Clone routes action improvements (#4) lukinovec 2023-08-07 18:32:13 +02:00
  • 90dc8d50be Add RLSModel lukinovec 2023-08-07 10:54:23 +02:00
  • b04b063fe6 Delete extra RlsModel class lukinovec 2023-08-07 10:46:58 +02:00
  • 0ca52f9be3 Fix code style (php-cs-fixer) PHP CS Fixer 2023-08-07 08:45:26 +00:00
  • 34e8fb7fa9 Delete 'rls' test group lukinovec 2023-08-07 10:44:58 +02:00
  • ad0a2e5f6f Use "RLS" instead of "Rls" lukinovec 2023-08-07 10:44:48 +02:00
  • e3b59ae2b5
    Improve file structure (#5) lukinovec 2023-08-03 17:51:53 +02:00
  • 1d0ca27bc8
    Central routes without Route::domain(), configurable tenant/central routes by default for domain/subdomain identification, allow accessing central routes in early identification for path & request data middleware (#3) Abrar Ahmad 2023-08-03 03:23:26 +05:00
  • 4ed5aa0add Make schema configurable in CreatePostgresUserForTenant lukinovec 2023-07-28 13:31:06 +02:00
  • e070d13745
    update support link Samuel Štancl 2023-07-27 05:15:28 +02:00
  • 2a5683122e Add and test excluding models from discovery lukinovec 2023-07-20 13:43:10 +02:00
  • a664860d63 Add todo (exclude specific models) lukinovec 2023-07-18 08:02:05 +02:00
  • 9055034451 Delete unused property lukinovec 2023-07-04 15:53:27 +02:00
  • 15cdd6b2c1 Protect RLS policy creation statement from SQL injection lukinovec 2023-06-28 10:36:59 +02:00
  • 1111607495 Fix code style (php-cs-fixer) PHP CS Fixer 2023-06-28 08:13:36 +00:00
  • 855ebfbd0b Protect queries from SQL injection (CreatePostgresUserForTenant) lukinovec 2023-06-28 10:13:13 +02:00
  • 30f4f430d5 Fix default permissions lukinovec 2023-06-28 09:51:30 +02:00
  • a504a86789 Use specific default user permissions instead of granting all lukinovec 2023-06-28 09:35:40 +02:00
  • 238132781d Rename method lukinovec 2023-06-28 07:27:51 +02:00
  • 66c2ac4fa4 Delete typo lukinovec 2023-06-27 17:56:55 +02:00
  • d005e7b06d Test that tenant permmissions are scoped only to the tenant schema lukinovec 2023-06-27 17:48:47 +02:00
  • 08b4216d69 Rename variable lukinovec 2023-06-27 14:09:10 +02:00
  • c712505d4e Fix code style (php-cs-fixer) PHP CS Fixer 2023-06-27 10:38:48 +00:00
  • a568aa3626 Update the Postgres RLS bootstrapper lukinovec 2023-06-27 12:38:21 +02:00
  • 72b708e4c7 Fix code style (php-cs-fixer) PHP CS Fixer 2023-06-27 10:19:08 +00:00
  • 0fa52e5020 Update password defaulting logic lukinovec 2023-06-27 12:18:44 +02:00
  • 339f8e5778 Delete default value for config('tenancy.token') lukinovec 2023-06-27 11:05:36 +02:00
  • d449fba037 Make default password an empty string lukinovec 2023-06-27 10:40:54 +02:00
  • c4fb7b225e
    Use static instead of tenancy() lukinovec 2023-06-27 10:10:54 +02:00
  • 8106e60aeb Delete assertion lukinovec 2023-06-22 12:29:29 +02:00
  • 083ecff791 Adapt tests to the previous tenant logic lukinovec 2023-06-22 11:29:31 +02:00
  • 675eb26981 Bring back the previous tenant logic lukinovec 2023-06-22 11:27:11 +02:00
  • c5d98aee33 Test that the tenant connections get closed after jobs get processed lukinovec 2023-06-22 10:45:27 +02:00
  • 42dc85666f Revert to central context when jobs get processed, delete $previousTenant logic lukinovec 2023-06-22 10:30:05 +02:00
  • d5d2c2475e Test that the context is central after jobs get processed lukinovec 2023-06-22 10:28:47 +02:00
  • a56c70779f Fix: Sync when ID's are duplicated Ion Caliman 2023-06-21 18:59:35 +03:00
  • 4bc82b535a Added a failing test: Duplicate entry Ion Caliman 2023-06-21 18:56:20 +03:00
  • 89b9e1bfd9 Filter out non-model array items lukinovec 2023-06-19 15:30:12 +02:00
  • 033f9a4dca Fix code style (php-cs-fixer) PHP CS Fixer 2023-06-19 13:26:02 +00:00
  • 9262d95ce4 Revert try/catch removal, add/update comments lukinovec 2023-06-19 15:24:39 +02:00
  • 376f7ba0b0 Fix variable name lukinovec 2023-06-19 14:09:40 +02:00
  • 171b01ba9d Fix PHPStan error, update variable names lukinovec 2023-06-19 14:02:18 +02:00
  • 032e29ac79 Fix code style (php-cs-fixer) PHP CS Fixer 2023-06-19 11:55:44 +00:00
  • 42b7ab2bd6 Make tenancy.token config call in the Sevice class default to an empty string lukinovec 2023-06-19 13:55:16 +02:00
  • eddb95c014 Use reflection instead of try/catch, use arrays instead of collections lukinovec 2023-06-19 13:53:27 +02:00
  • 8d13ce7e2f Add/update comments lukinovec 2023-06-19 12:57:16 +02:00
  • 1fd1aa7ad6 Delete dump, use getTenantModels lukinovec 2023-06-16 11:08:07 +02:00
  • 89d9e20c38 Dump dropped policies lukinovec 2023-06-16 10:47:35 +02:00
  • 43d167bb48 Comment out dropping policies lukinovec 2023-06-16 10:35:44 +02:00
  • c25aa221cb Drop policy if exists lukinovec 2023-06-16 10:31:55 +02:00
  • 46b89fd0ec Delete dump, put getModels into transaction lukinovec 2023-06-16 10:26:15 +02:00
  • bd7f885c23 Delete dump lukinovec 2023-06-16 10:22:15 +02:00
  • a9b8f1a299 move dump lukinovec 2023-06-16 10:04:51 +02:00
  • eb5829175e Test if the db statement is incorrect lukinovec 2023-06-16 09:57:58 +02:00
  • 92ed22ef19 Query log lukinovec 2023-06-16 09:41:09 +02:00
  • 9aee480a80 Dump DB statement lukinovec 2023-06-16 09:33:55 +02:00
  • 796a251b7d Check RLS tables lukinovec 2023-06-16 09:28:38 +02:00
  • e024701ab9 Try using getModels() outside of DB::transaction() lukinovec 2023-06-16 09:20:49 +02:00
  • 1fb90129cf Revert CI testing changes lukinovec 2023-06-16 08:42:36 +02:00
  • 8b8cd00ca8 CI testing lukinovec 2023-06-16 08:38:16 +02:00
  • 1f5ed5ba22 Use getModels (testing CI) lukinovec 2023-06-16 08:37:31 +02:00
  • 6bd78b4520 Delete dump() lukinovec 2023-06-15 13:52:18 +02:00
  • b0effa60e7 debug lukinovec 2023-06-15 13:44:39 +02:00
  • 8c87dde85d Use getTenantModels instead of getModels in RLS poilcy creation command lukinovec 2023-06-15 13:44:31 +02:00
  • f0b31d1820 debug lukinovec 2023-06-15 13:36:26 +02:00
  • 9e9e81b69c debug lukinovec 2023-06-15 13:28:17 +02:00
  • 7b092ec9d3 Check RLS policies by name lukinovec 2023-06-15 13:16:57 +02:00
  • 0f9e0f33b0 Move Postgres user permissions to config lukinovec 2023-06-15 13:03:44 +02:00
  • 1ce18d2759 Add basic model discovery test lukinovec 2023-06-15 11:45:38 +02:00
  • 5cb3b5f4c1 Improve query scoping test lukinovec 2023-06-15 11:07:31 +02:00
  • e8b3c23c72 Purge central connection in RLS bootstrapper's bootstrap() lukinovec 2023-06-15 11:06:57 +02:00
  • f859a5da06 Move RLS toggling and model directories config to tenancy.rls lukinovec 2023-06-15 10:27:18 +02:00
  • 6b19a26d2c Automatically scan subdirectories in getModels() lukinovec 2023-06-15 10:20:18 +02:00
  • 37b36430e5 Fix code style (php-cs-fixer) PHP CS Fixer 2023-06-15 07:33:39 +00:00
  • 7d77c171d5 Delete unused method lukinovec 2023-06-15 09:33:05 +02:00
  • 97f227a037 Use instanceof instead of class_parents() lukinovec 2023-06-15 09:32:56 +02:00