1
0
Fork 0
mirror of synced 2024-09-18 18:28:33 +12:00
Commit graph

42 commits

Author SHA1 Message Date
mike12345567
a7410020c7 Adding cookie clearing/logout for when a cross tenant session is detected, make sure that the cookie cannot be used/considered valid after the call is made. 2023-12-04 16:47:41 +00:00
mike12345567
c4a4bdc9da Fixing tenancy.spec.ts - mocking was a bit messed up, moving it all around to work as expected. 2023-04-11 10:54:04 +01:00
Mateus Badan de Pieri
de613d2b28 latest version 2023-04-11 10:22:47 +01:00
Mateus Badan de Pieri
f1b7ff0f7c fixing expect on throw 2023-04-05 16:30:00 +01:00
Mateus Badan de Pieri
b0df710a2a tweaks on some tests 2023-04-05 16:13:39 +01:00
Mateus Badan de Pieri
6bd950717c mocked correctly 2023-04-05 14:14:55 +01:00
Mateus Badan de Pieri
b6fd3b7cf7 primary tests cases 2023-04-03 11:28:20 +01:00
Mateus Badan de Pieri
e6ac534fca isUserInAppTenant tests working 2023-03-31 15:07:28 +01:00
Mateus Badan de Pieri
6404f07cfe first tenancy tests working 2023-03-30 17:27:13 +01:00
Mateus Badan de Pieri
d03b27f79f first 2 tests passing 2023-03-30 17:08:18 +01:00
mike12345567
47897c8afa Basic moving around of assets. 2023-03-30 16:07:59 +01:00
Rory Powell
ae9979929a Enable higher concurrency and resiliency in worker tests 2023-02-13 11:57:30 +00:00
Rory Powell
786039055e File authentication using presigned URLs (#8883)
* file auth wip

* Private plugin bucket wip

* Add etag to logo request, fix circular dependency

* Resolve cyclic dependency

* Ensure browser doesn't cache custom component

* Global file fixes

* File fixes / remove permaUrl

* Add ctx local storage

* Enable presigned url to work from any host

* Test fix

* Self hosting w/ S3 + other fixes

* Fix for serving dev app in multi tenant

* Fix backup restore and import attachment url processing, never store attachment urls

* Test fixes

* Unit tests WIP

* Replace file path with base64 encoded private key

* Multi tenancy tests for files

* Environment files fixes

* Post-merge build and test fixes

* Add debug conditional to all jest logging and revert/fix prod minio proxy_pass

* Re-add default '/' minio route :(

* Rename iconFile -> iconFileName

* Add cloudfront vars to k8s templates

* Remove public bucket policy

* Remove duplicated test
2022-12-15 11:35:22 +00:00
mike12345567
d6e9380c06 General work after running some tests in CI - general refactoring as well. 2022-11-28 17:54:04 +00:00
mike12345567
f5760b6601 Fixes post merge. 2022-11-16 18:28:45 +00:00
mike12345567
29dd98a7fc Merge branch 'develop' of github.com:Budibase/budibase into feature/replace-pouch 2022-11-16 18:12:31 +00:00
Rory Powell
9c169087e6 Add copy button to sso callback urls, e2e unit testing for OIDC, stub out other auth tests 2022-11-16 11:34:16 +00:00
Rory Powell
c6fba4de3d Test fixes 2022-11-11 15:43:41 +00:00
Rory Powell
72562278c0 Support path variable tenancy detection, add /api/system/* tests, update no tenancy matchers to be more accurate 2022-11-11 11:10:07 +00:00
mike12345567
c63c3b48c5 Typescript conversions, as well as updating context to just use an object map. 2022-11-10 17:38:26 +00:00
Rory Powell
6783fd713e Update tenancy detection to honour any subdomain pattern according to platform url 2022-11-09 16:35:16 +00:00
mike12345567
9b29bd6709 Merge branch 'develop' of github.com:Budibase/budibase into group-fixes 2022-09-22 18:44:16 +01:00
mike12345567
c382b86fb2 Self API in worker conversion to typescript. 2022-09-22 14:09:20 +01:00
Rory Powell
f7ec431a45 Move tenancy/utils to db/tenancy to resolve circular imports between tenancy and db package. This should remove all reliance on the tenancy package from the db package 2022-09-20 10:20:36 +01:00
Martin McKeaveney
110211c53a fixing tests 2022-09-14 14:22:53 +01:00
Martin McKeaveney
7d9253b8d4 fix circular dependency issues 2022-09-13 17:29:31 +01:00
Martin McKeaveney
07f2f66b04 convert views to typescript 2022-09-13 12:22:03 +01:00
Martin McKeaveney
2991d05d5b PR comments 2022-09-07 23:21:14 +01:00
Martin McKeaveney
381622aa7a revert back to circular dep 2022-09-02 18:44:03 +01:00
Martin McKeaveney
7e5252e2e2 remove unnecessary files 2022-09-02 16:07:30 +01:00
Martin McKeaveney
9e2fd5222b platform user casing view 2022-09-02 09:12:03 +01:00
Rory Powell
ee9a19a1d5 Back populate no-op migrations on new app and tenant create 2022-06-13 10:51:29 +01:00
mike12345567
192fb1307e Initial version of memory leak protection, making sure that PouchDB databases are closed correctly after use, using a combination of closures wrapping DB gets (this replaces the getDB, leaving only a dangerousGetDB function which can be used in very very specific scenarios) and then closing the DB as part of CLS hooked functions finishing. Also moving the GlobalDB init to the tenancy middleware as this is used everywhere in the worker/app services - means that not all getGlobalDB calls require an async closure around them. 2022-04-19 19:42:52 +01:00
Rory Powell
819f9b75de Link app context with tenancy, remove app tenancy middleware 2022-03-24 13:04:49 +00:00
mike12345567
72534c6ed2 Refactoring backend-core tenancy to context, splitting out tenancy functionality to its own area. 2022-01-31 17:53:19 +00:00
mike12345567
dbc048b365 Review comments, renaming deployed -> prod in terms of app IDs. 2022-01-31 17:42:51 +00:00
mike12345567
476f34fb93 Merge branch 'develop' of github.com:Budibase/budibase into lab-day/refactor-app-db 2022-01-31 17:16:59 +00:00
mike12345567
d5f8cc1023 Tests updating, all now passing, fixed some issues discovered by them. 2022-01-28 15:43:51 +00:00
Michael Drury
d3a90acc55 Final pass refactoring - need to test but all code in server converted. 2022-01-28 00:05:39 +00:00
mike12345567
d2fe119d90 Main body of work, refactoring most usages. 2022-01-27 18:18:31 +00:00
Rory Powell
3fdce44d56 Migrations 2.0 2022-01-24 10:48:59 +00:00
mike12345567
12ae9993ca Changing directory. 2022-01-10 19:30:35 +00:00