Commit Graph

14 Commits

Author SHA1 Message Date
rijkvanzanten
142b250c8d Use pino error instead of fatal
Fatal throws flushing error when using 'pretty' log style
2021-02-23 11:29:37 -05:00
rijkvanzanten
435d6ec84a Validate DB_CLIENT env var before creating DB connection
Fixes #3556
2021-02-23 11:28:56 -05:00
rijkvanzanten
81bb7cfa53 Allow configuring the connection pool size
Closes #3165
2021-02-22 20:19:08 -05:00
Rijk van Zanten
b7d87e581a System permissions for app access (#4004)
* Pass relations through schema, instead of individual reads

* Fetch field transforms upfront

* Fix length check

* List if user has app access or not in accountability

* Load permissions up front, merge app access minimal permissions

* Show app access required permissions in permissions overview

* Show system minimal permissions in permissions detail

* Fix app access check in authenticate for jwt use

* Fix minimal permissions for presets

* Remove /permissions/me in favor of root use w/ permissions

* Fix logical nested OR in an AND

* Use root permissions endpoint with filter instead of /me

* Allow filter query on /permissions

* Add system minimal app access permissions into result of /permissions

* Remove stray console log

* Remove stray console.dir

* Set current role as role for minimal permissions

* Fix no-permissions state for user detail

* Add filter items function that allows altering existing result set
2021-02-11 12:50:56 -05:00
rijkvanzanten
e3d289b7a4 Add CLI bootstrap command 2020-12-02 15:27:54 -05:00
rijkvanzanten
0002393486 Allow nested objects in env vars
FE: DB_SSL__CA=example
2020-11-20 15:19:38 -05:00
rijkvanzanten
528112314d Remove outdated tests, fix imports 2020-11-09 12:29:01 -05:00
rijkvanzanten
ad56b8b556 Rename schema to specs, add schema package 2020-11-09 11:19:03 -05:00
rijkvanzanten
b02c2d85d5 Add more descriptive error on startup on empty DB 2020-11-04 17:28:29 -05:00
rijkvanzanten
7185cd48cb Allow searchPath / connection string in PG
Fixes #676
2020-10-15 17:44:50 -04:00
rijkvanzanten
33192e4ab3 Use pino for mysql logging 2020-08-04 16:39:33 -04:00
rijkvanzanten
cf5a49a9f5 Add validateDBConnection function 2020-08-04 13:16:14 -04:00
rijkvanzanten
2252d5a35f Use centralized env export with validator function 2020-08-04 13:10:49 -04:00
rijkvanzanten
bde7069cce Move api into api subdirectory 2020-07-29 11:22:56 -04:00