mike12345567
22f42ef898
Adding new mechanism to get the ipAddress and userAgent of call for audit logs.
2023-02-21 19:14:57 +00:00
Rory Powell
940de8b6a0
Run CI steps in parallel ( #9760 )
...
* Parallel CI
* Add build to integration test
* Add checkout to top of each run
* Revert branch update for ci job
* Experiment with --runInBand for CI
* Fix intermittent backend-core migration test failure
* Fix hanging worker redis connection
* Update naming from reset to newTenant
2023-02-21 17:13:24 +00:00
Rory Powell
cacf275a99
Prevent SSO users from setting / resetting a password ( #9672 )
...
* Prevent SSO users from setting / resetting a password
* Add support for ENABLE_SSO_MAINTENANCE_MODE
* Add typing to self api and build out user update sdk
* Integrate sso checks with user sdk. Integrate user sdk with self api
* Test fixes
* Move self update into SDK
* Lock down maintenance mode to admin user
* Fix typo
* Add health status response and return type signature to accounts.getStatus
* Remove some unnecessary comments
* Make sso save user function non optional
* Remove redundant check on sso auth details provider
* Update syncProfilePicture function name to getProfilePictureUrl
* Update packages/worker/src/sdk/users/events.ts
Co-authored-by: Adria Navarro <adria@revityapp.com>
* Add ENABLE_EMAIL_TEST_MODE flag
* Fix for logging in as sso user when existing user has password already
* Hide password update and force reset from ui for sso users
* Always disable sso maintenance mode in cloud
---------
Co-authored-by: Adria Navarro <adria@revityapp.com>
2023-02-21 08:23:53 +00:00
Rory Powell
a57f0c9dea
Merge branch 'develop' into rory/february
2023-02-20 09:57:17 +00:00
Rory Powell
bb1faac62a
Merge master into develop
2023-02-15 15:10:02 +00:00
Rory Powell
cc7eb64a3b
Rename LOG_4XX to ENABLE_4XX_HTTP_LOGGING and enable by default
2023-02-13 14:39:24 +00:00
Rory Powell
0e3a17ab18
Merge pull request #9669 from Budibase/budi-6558-configurable-test-log-levels-and-common
...
Configurable test log levels and common error handling
2023-02-13 14:31:43 +00:00
Rory Powell
ae9979929a
Enable higher concurrency and resiliency in worker tests
2023-02-13 11:57:30 +00:00
Rory Powell
5cd6cb166a
Configurable test log levels and common error handling
2023-02-13 11:53:01 +00:00
Adria Navarro
6ac57d424c
Don't log on CI
2023-02-04 21:04:40 +00:00
adrinr
11a7742d90
Cleanup
2023-02-03 19:23:36 +00:00
adrinr
1d8c27bdc4
Increase timeout
2023-02-01 12:29:03 +00:00
adrinr
1dabf71f68
Run conflicting tests in sequential mode
2023-01-30 13:35:09 +00:00
adrinr
e4c898c327
Use test-containers for backend-core tests
2023-01-27 11:43:36 +00:00
Rory Powell
e5e767f18d
Correlation id's and log context ( #7232 )
...
* Correlation id's and log context
* fix build
* Remove redundant fields from LoggingProcessor.ts
* Only log correlation id when present e.g. this is not present on startup / shutdown / automations
2023-01-11 20:39:33 +00:00
Rory Powell
fba7ef26ad
Replace ts-jest with swc/jest ( #9289 )
...
- Add swc dependencies
- Add transform change to jest.config.ts
- Replace `export =` with `export default` in src code to enable code coverage to work with swc transformer
- Restructure backend-core errors package to allow for exporting error classes with ESM syntax
- Update backend-core to no longer use `export =`, export individual packages instead of replacing with `export default` for backwards compatibility
- Update event publishers to use `export default` - this was required for the `jest.spyOn` usage inside backend-core common mocks
- Restructure some jest.mock usages where declaring the jest.fn as a variable outside of the package mock threw an error
2023-01-11 09:37:37 +00:00
mike12345567
20984e8072
Some fixes based on test failure.
2022-12-07 17:33:26 +00:00
mike12345567
3a6200144a
Fix for account portal.
2022-11-28 14:09:18 +00:00
mike12345567
90362b65c1
Disabling js interop in Typescript build of backend-core and worker, fixing build issues.
2022-11-26 14:46:01 +00:00
mike12345567
d3c4c99e16
Complete conversion of backend-core to Typescript.
2022-11-24 18:48:51 +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
mike12345567
535fab7997
Some major reworks towards higher levels of typescript.
2022-11-16 17:23:12 +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
1612044dc1
Merge branch 'develop' into subdomain-tenancy
2022-11-15 16:18:59 +00:00
Rory Powell
f48ff01045
ensure fetch and aws are always mocked
2022-11-15 15:50:15 +00:00
Rory Powell
9973f2e161
Bump jest and ts-jest to be consistent across backend packages to fix CI issue, test config updates
2022-11-14 22:55:47 +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
Rory Powell
6783fd713e
Update tenancy detection to honour any subdomain pattern according to platform url
2022-11-09 16:35:16 +00:00
Rory Powell
b36634f510
Add extra auth logging to authenticated.ts
2022-11-04 08:30:44 +00:00
Rory Powell
4787f9ccab
Pre-review tidy, add new badge to plugins
2022-09-15 11:23:51 +01:00
Rory Powell
165194658b
Move day pass middleware from authenticated to licensing, sent activity to account portal
2022-09-06 16:24:36 +01:00
Rory Powell
818e7fd5f4
Day pass middleware
2022-09-06 12:25:57 +01:00
Rory Powell
7c2c4a0f94
Add conditional around joiValidator schema.append
2022-08-31 12:24:12 +01:00
Rory Powell
5f022e04a3
Merge branch 'develop' into user-fixes
2022-08-31 11:39:41 +01:00
Rory Powell
59a53736ac
update bulk create and bulk delete backend
2022-08-25 19:41:47 +01:00
mike12345567
1c7f860184
Merge branch 'master' of github.com:Budibase/budibase into develop
2022-08-11 16:28:46 +01:00
mike12345567
b803a3fd93
Replacing all plural TS enumerations with singular - this involves a major rename of the DocumentTypes.
2022-08-11 13:50:05 +01:00
Rory Powell
3b9343b3e6
Merge branch 'master' into develop
2022-08-08 11:50:22 +01:00
mike12345567
2dea5c5614
Some various session fixes based on current data.
2022-08-05 21:35:26 +01:00
mike12345567
52d16d1099
Updating sessions to TS, adding env var to set the session update length, adding reasons for invalidation, making sure errors are never considered authenticated.
2022-08-05 17:13:03 +01:00
mike12345567
b3a6efa2f9
Updating authenticated middleware to typescript and updating the TTL once per minute rather than every API request.
2022-08-05 15:21:12 +01:00
mike12345567
44a6aa85a9
Merge branch 'master' of github.com:Budibase/budibase into develop
2022-08-04 21:35:55 +01:00
mike12345567
f3418c4107
Some more logging, moving middlewares to backend-core.
2022-08-04 19:03:50 +01:00
Rory Powell
09127df617
Add updatedAt and createdAt as optional to all joi middleware
2022-08-02 09:39:30 +01:00
Rory Powell
1dc062a3fb
Merge branch 'master' into develop
2022-07-27 16:32:36 -04:00
mike12345567
d42f3c3385
Adding fix for issue in cloud with user password deletion causing undefined errors.
2022-07-27 17:15:01 +01:00
Peter Clement
af451840ac
move worker middleware to backend-core
2022-07-22 11:50:51 +01:00
Dean
1ff9785498
Code review updates
2022-07-04 12:54:26 +01:00
Dean
129a5c2672
OIDC config test fix
2022-07-03 22:39:16 +01:00
Dean
1e6845d5cb
Refresh the OAuth tokens automatically when making rest calls. Fix to remove the password from the api token authentication.
2022-07-03 21:13:15 +01:00
Dean
5fd385ab30
Merge commit
2022-06-23 14:29:19 +01:00
Rory Powell
0cf777a0cd
Build fixes
2022-06-09 12:33:10 +01:00
Rory Powell
361ffd224f
Merge branch 'release' into feature/event-backfill
2022-06-06 09:50:06 +01:00
Martin McKeaveney
d5540bbd57
update google sheets strategy to use the standard passport strategy
2022-06-05 16:43:04 +01:00
Rory Powell
2a00f6498d
Merge branch 'feature/posthog-v2' into feature/event-backfill
2022-05-29 00:25:40 +01:00
Rory Powell
857cd2d735
Merge branch 'develop' into feature/posthog-v2
2022-05-28 23:03:31 +01:00
Rory Powell
c0d6fa34a4
Identity tenant and installation groups, property updates
2022-05-28 21:38:22 +01:00
Rory Powell
b3f04e7e8f
Identity updates
2022-05-24 20:01:13 +01:00
Rory Powell
ff48aaec6e
User context updates and misc fixes
2022-05-24 09:54:36 +01:00
mike12345567
a7e6eb2851
Merge branch 'master' of github.com:Budibase/budibase into develop
2022-05-23 23:43:57 +01:00
Rory Powell
28b48a88fe
Event identification
2022-05-23 22:14:44 +01:00
Martin McKeaveney
9d813292de
enable clustering on server and worker services, better log output on user not found errors
2022-05-23 16:24:29 +01:00
Rory Powell
70fff5c7b9
Merge branch 'develop' into feature/posthog-v2
2022-05-23 09:04:00 +01:00
Martin McKeaveney
296a327ee9
use platform url env
2022-05-18 21:00:42 +01:00
Rory Powell
99b83a4496
Update getPlatformUrl usage to use a single interface
2022-05-17 09:52:38 +01:00
Martin McKeaveney
b98476349e
editing getPlatformUrl for cloud
2022-05-16 23:22:33 +01:00
mike12345567
08f53591e6
Fixing test cases.
2022-05-16 12:31:07 +01:00
mike12345567
e5922269aa
Switching over to using our own version of cls-hooked which has the memory leak (no async hooks disable call) fixed as well as changing how we use the CLS namespaces to allow us to destroy the namespace we use per request.
2022-05-10 16:37:24 +01:00
Rory Powell
1caf4b1965
Merge branch 'develop' into feature/posthog-v2
2022-04-27 16:32:00 +01:00
Martin McKeaveney
9ca4dacbaa
merge with master
2022-04-26 10:21:45 +01:00
Rory Powell
dd0e6099b8
Fix: google sso
2022-04-25 22:49:56 +01:00
Martin McKeaveney
bbce5a9c7f
Merge branch 'master' into gsheets-updates
2022-04-25 09:27:38 +01:00
Martin McKeaveney
46b424308f
only save refresh token in google auth
2022-04-24 23:33:50 +01:00
Martin McKeaveney
84d2bb3cf5
auto fetch access token in gsheets integration
2022-04-24 23:32:47 +01:00
mike12345567
7083470baa
Adding a dep:clean function, cleaning up lock files and fixing backend-core test which did not utilise tenancy (no global db).
2022-04-21 15:20:23 +01:00
mike12345567
6afe3a28ef
Closing global DB using the standard function - not directly.
2022-04-20 18:07:48 +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
33719fcb09
Merge branch 'feature/licensing' into feature/posthog-v2
2022-04-12 17:12:46 +01:00
Rory Powell
03ba6d914f
Merge branch 'develop' into feature/licensing
2022-04-12 16:18:41 +01:00
Rory Powell
e98e659346
user / rbac events + tests
2022-04-08 01:28:22 +01:00
Rory Powell
0aa141e7c6
Add tests for base db config
2022-03-30 15:43:18 +01:00
Martin McKeaveney
aed9bfc728
fixing google sheets bug, respect google configuration hierarchy
2022-03-28 16:44:33 +01:00
Martin McKeaveney
dc940d33db
fix launch.json
2022-03-28 12:03:44 +01:00
Rory Powell
819f9b75de
Link app context with tenancy, remove app tenancy middleware
2022-03-24 13:04:49 +00:00
Rory Powell
0a4b1eb552
Tests complete + backwards compatibility for deployment
2022-03-22 00:23:22 +00:00
Rory Powell
715d42d3e6
Merge branch 'develop' into feature/licensing
2022-03-21 17:13:16 +00:00
Rory Powell
661367333d
Add developer usage restrictions to SSO user creation
2022-03-18 08:01:31 +00:00
mike12345567
5b79126dbf
Fixing an issue with the public API loading for the first time in a multi-tenant environment, also fixing an issue in self host when switching between environments with different secrets.
2022-03-14 19:05:02 +00:00
mike12345567
83d4994f55
Starting to fix up test cases.
2022-02-25 15:55:19 +00:00
Michael Drury
02479e4112
Using 10K iteration string stretching for encryption.
2022-02-14 21:37:40 +00:00
mike12345567
df4af0fb9a
Adding basic encrypt/decrypt pathway.
2022-02-14 18:32:09 +00:00
mike12345567
249b2dbba8
Adding tenancy to the API key, making the authenticated middleware aware of new user API keys, using a view to lookup the user by API key.
2022-02-11 22:24:48 +00:00
Martin McKeaveney
d1cebc61a9
merge with master
2022-02-10 18:57:26 +01:00
Martin McKeaveney
3a653e9f98
merge with master
2022-02-10 18:24:36 +01:00
Martin McKeaveney
0966720982
use google env variable for client secret and ID, update helm chart to pass variables to worker
2022-02-10 10:28:46 +01:00
Martin McKeaveney
08a3ae0e7c
use env platform URL for datasource auth to prevent tenant overrides
2022-02-09 18:33:29 +01:00
Andrew Kingston
de12e0dc79
Merge branch 'develop' of github.com:Budibase/budibase into frontend-core
2022-02-01 16:46:00 +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