Commit Graph

1223 Commits

Author SHA1 Message Date
Vinoth Kirubakaran 07778619b9 chore: ran prettier for environment.ts and auth.ts 2023-03-16 12:43:06 +00:00
Vinoth Kirubakaran 419cd1bff0 Update auth.ts
Updated success and error redirect paths using ENV variables
2023-03-16 12:42:48 +00:00
Vinoth Kirubakaran 93f8c1ca6c Update environment.ts
Added new ENV variables for auth redirect paths
2023-03-16 12:42:29 +00:00
Rory Powell cf0200d695
Rotatable secrets (#9982)
* Rotatable secrets

* Set new api encryption key var

* Lint

* Use fallback keys instead of array

* Point api encryption key to dedicated value

* Add API_ENCRYPTION_KEY to cli

* Lint + add api encryption key to env files
2023-03-13 15:02:59 +00:00
Michael Drury ec8b3c8a95
Disable google auth if no config found (#9983)
* Fix for #9937 - Google config was pre-activated always, even if no google config had been created.

* Fixing test case.
2023-03-10 15:19:46 +00:00
Rory Powell 6f0f0e3493
Update deployment templates to remove unused cdn url and fix empty env vars (#9967) 2023-03-09 16:13:26 +00:00
Rory Powell 37016edc9b
Don't require password on update if user doesn't have one (#9941) 2023-03-08 12:00:02 +00:00
Dean fb7e81fbc9 Review feedback 2023-03-07 16:39:26 +00:00
Dean 2ec35c1739 Review updates 2023-03-07 16:17:29 +00:00
Dean 13cf1bf9d7 Test updates 2023-03-07 14:21:55 +00:00
Dean 34fcf17556 Various fixes for update self behaviour 2023-03-07 13:35:18 +00:00
Martin McKeaveney 72d6845578 update imports 2023-03-07 10:01:19 +00:00
Martin McKeaveney 8f1145ab20 remove array of tenantIds 2023-03-07 09:56:12 +00:00
Martin McKeaveney 4c4f2ac19b return all when in single tenant env 2023-03-07 09:49:58 +00:00
Martin McKeaveney f9e5e11fb4 fix tenant filtering issue 2023-03-07 09:45:39 +00:00
Rory Powell 22d65b004f
Bypass password onboarding for enforced sso (#9851) 2023-03-01 21:56:30 +00:00
Rory Powell 36e6790b61 lint 2023-03-01 15:31:46 +00:00
Rory Powell 45880f2c28 Prevent showing user exists for password disabled actions 2023-03-01 14:49:44 +00:00
Dean 56e74d7400 Fixes for invitation unit tests 2023-02-28 22:27:02 +00:00
Dean 2bb44b05d7 Updated email utility import 2023-02-28 17:05:11 +00:00
Dean be79c753bb Merge remote-tracking branch 'origin/develop' into feature/app-user-onboarding-ux 2023-02-28 16:38:44 +00:00
Dean fad8d5ad51 Enable the feature tour window and extend the invite duration to 1 week 2023-02-28 16:38:11 +00:00
Rory Powell 6594c7d75a lint 2023-02-28 13:37:34 +00:00
Rory Powell aeb38e6c2d Add validation between sso config acivation and sso enforcement 2023-02-28 13:36:54 +00:00
Dean 34b12fd60e Merge remote-tracking branch 'origin/develop' into feature/app-user-onboarding-ux 2023-02-28 09:38:15 +00:00
Dean f818efcc9f Builder user onboarding 2023-02-28 09:37:03 +00:00
mike12345567 706b78b243 Merge branch 'develop' of github.com:Budibase/budibase into feature/audit-logs 2023-02-27 14:51:33 +00:00
mike12345567 43d29ca9a3 Fixing open handle issue - now that the worker has access to queues needs to shut them down. 2023-02-27 14:41:28 +00:00
Rory Powell a6027be943
Enforceable SSO (#9787)
* Add ENFORCEABLE_SSO feature flag

* First draft of enforce sso configuration / show single sign on url

* Reading and writing isSSOEnforced + integration with login page

* Enable CI + lint

* Set correct base branch for CI

* Test fix for expected string changed

* Use tenant aware platform url as SSO link

* Bring in latest pro changes

* Lint

* Add useEnforceableSSO mock helper function

* Update configs.spec.ts with coverage for public settings

* Update users.spec.ts with additional tests for isPreventPasswordActions

* Lint

* Update refresh OAuthToken to use correct enum and add case statement
2023-02-27 13:42:51 +00:00
mike12345567 5b09b15d27 Trying to remove audit log test - see if it fixes test stalling issue. 2023-02-27 13:31:52 +00:00
mike12345567 4803e8b7fe Fixing test case. 2023-02-27 13:17:42 +00:00
mike12345567 30024e7b81 Moving around processors to separate audit logs out of central event handling. 2023-02-24 13:52:54 +00:00
mike12345567 f407e18db6 Main body of PR comments. 2023-02-24 13:32:45 +00:00
mike12345567 a3fd0d84d5 Implementing a few basic tests to create and search the audit logs. 2023-02-23 17:23:06 +00:00
Rory Powell 51c3b6eb45 Fix for real email tests failing silently 2023-02-23 13:42:10 +00:00
Rory Powell 6da72bb2c6 Configs updates: remove circular deps, dedicated module, typing improvements, reduce db reads 2023-02-23 13:41:35 +00:00
Dean 4c10f2144b Merge remote-tracking branch 'origin/develop' into feature/app-user-onboarding-ux 2023-02-23 11:19:29 +00:00
Dean 9677994f78 Merge commit to dev 2023-02-23 10:38:03 +00:00
mike12345567 3a0b3851a9 Getting downloading working correctly, some minor UI updates, adding a new middleware for converting a query string to a body (useful for when a GET has to be used). 2023-02-22 18:50:27 +00:00
mike12345567 5518d8d336 Adding new mechanism to get the ipAddress and userAgent of call for audit logs. 2023-02-21 19:14:57 +00:00
mike12345567 420502a3e7 Merge branch 'develop' of github.com:Budibase/budibase into feature/audit-logs 2023-02-21 17:26:24 +00:00
mike12345567 00e3365847 Updating worker db config to have replication available (for audit logs). 2023-02-21 17:22:23 +00:00
Rory Powell f153fb8e82
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 03af908a72 Re-order deprovisioning sequence to fix platform user removal 2023-02-21 13:36:14 +00:00
Rory Powell 1b041c41c3
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 bd09914e4e Merge branch 'develop' into rory/february 2023-02-20 09:57:17 +00:00
Rory Powell e6e1d31e90
Fix tenant creation on user save (#9725) 2023-02-17 09:16:11 +00:00
mike12345567 ee70944176 Updating events to include a proper friendly map of audited events. 2023-02-15 19:44:32 +00:00
mike12345567 fd41acf984 Adding in event auditing to server/worker. 2023-02-15 18:03:55 +00:00
Jonny McCullagh 9d43b534e5
add datadog apm (#9693)
* add datadog apm

* datadog init not start

* extra env vars for DD APM

* add datadog apm

* datadog init not start

* extra env vars for DD APM

* add datadog apm

* remove space

* Enable typescript integration with apm agents

* Fix typo

---------

Co-authored-by: Jonny <Jonny McCullagh>
Co-authored-by: Rory Powell <rory.codes@gmail.com>
2023-02-15 16:28:20 +00:00