Commit Graph

24 Commits

Author SHA1 Message Date
Ivar Conradi Østhus 26b7da8b5c feat: add support for cdnPrefix for static assets (#1191) 2022-01-06 10:31:00 +01:00
Ivar Conradi Østhus c051eb9149 fix: expose ApiUser out of Unleash 2022-01-04 20:01:18 +01:00
Ivar Conradi Østhus 4a9939ccb1 feat: remove old metrics service 2021-12-10 09:31:54 +01:00
Ivar Conradi Østhus 4fb1bcb524 feat: Disable password based login (#1046)
This commit will introduce a new setting used to disbaled
simple password based authention.

The setting itself is an enterprise setting.
2021-10-29 10:25:42 +02:00
Ivar Conradi Østhus fc455811f8 feat/metricsV2 (#1005)
Adds a new way of handling usage metrics where we push it directly to the database and performs aggregation on the fly. All metrics are aggregated in to buckets of hours. We will for now store metrics for the 48 hours with the following dimensions:

- featureName
- projectName
- envrionment
- yes (the actual count)
- no (the actual count)
2021-10-08 10:09:22 +02:00
Ivar Conradi Østhus c4b697b57d Feat/api key scoping (#941)
Co-authored-by: Christopher Kolstad <chriswk@getunleash.ai>
2021-09-15 20:28:10 +02:00
Fredrik Strand Oseberg 26c9d53b89 feat: Move environments to enterprise (#935)
- Adding, updating and renaming environments are meant to be
  enterprise only features, as such, this PR moves these operations out
  of this server

- We still keep sortOrder updating, toggling on/off and getting one,
  getting all, so we can still work with environments in the OSS version
  as well.

Co-authored-by: Christopher Kolstad <chriswk@getunleash.ai>

Co-authored-by: Christopher Kolstad <chriswk@getunleash.ai>
2021-09-13 15:57:38 +02:00
Ivar Conradi Østhus dff86fcfff fix: add resetDb to migrator 2021-09-10 12:25:12 +02:00
Ivar Conradi Østhus 11640e882b fix: fine tune db-config based on experience 2021-09-03 12:57:25 +02:00
Ivar Conradi Østhus 8cbf378286 feat: sync fields when logging in via SSO (#916) 2021-08-23 12:11:29 +02:00
Ivar Conradi Østhus 721baa7657 fix: Clean up exported types even more 2021-08-13 19:22:15 +02:00
Ivar Conradi Østhus aaa5e056e5 fix: exported types x2 2021-08-13 13:51:29 +02:00
Ivar Conradi Østhus 1f9d31ea17 fix: export types from main entry 2021-08-13 13:42:08 +02:00
Ivar Conradi Østhus 2bcdb5ec31 fix: Controller wraps handler with try/catch (#909)
By having the controller perform try/catch around the
handler function allows us to add extra safety to all
our controllers and safeguards that we will always catch
exceptions thrown by a controller method.
2021-08-13 10:36:19 +02:00
Christopher Kolstad ff7be7696c fix: Stores as typescript and with interfaces. (#902)
Co-authored-by: Ivar Conradi Østhus <ivarconr@gmail.com>
2021-08-12 15:04:37 +02:00
Ivar Conradi Østhus 2da26e7f14 fix: refactor code 2021-06-18 11:53:52 +02:00
Ivar Conradi Østhus 4f9deee2ed fix: add option for graceful shutdown (#872)
* fix: add option for graceful shutdown

* fix: gracefulShutdown should close idle keep-alive connections

* fix: eslint import order

* docs: add config options to docs as well
2021-06-17 20:33:34 +02:00
Ivar Conradi Østhus 6c2ec59fa4 fix: Do gracefull shutdown of Unleash on 'SIGINT' & 'SIGTERM' (#870)
Unleash will listen for 'SIGINT' & 'SIGTERM'  and close background tasks and db connections before shutting down. 

Co-authored-by: Christopher Kolstad <chriswk@getunleash.ai>

Co-authored-by: Christopher Kolstad <chriswk@getunleash.ai>
2021-06-15 12:32:35 +02:00
Ivar Conradi Østhus 4b48c08e0e fix: move permission to types 2021-05-02 20:58:02 +02:00
Ivar Conradi Østhus df2e23c282 fix: refactor event types 2021-04-29 10:21:29 +02:00
Ivar Conradi Østhus 88a56b8569 fix: move AuthenticationRequired to types 2021-04-29 09:57:45 +02:00
Ivar Conradi Østhus b0e6d8c363 fix: User should require a ID field set (#799) 2021-04-22 23:40:52 +02:00
Ivar Conradi Østhus 185091174f fix: convert AUTH_TYPE to uppercase (#797)
Make sure we support both `AUTH_TYPE=demo` and `AUTH_TYPE=DEMO`

Co-authored-by: Christopher Kolstad <chriswk@getunleash.ai>
2021-04-22 15:04:08 +02:00
Christopher Kolstad 240c6a77a1 Feat/options need types (#794)
feat: options are now typed

- This makes it easier to know what to send to unleash.start / unleash.create
- Using a Partial to instantiate the config, then melding it with defaults to get a config object with all fields set either to their defaults or to whatever is passed in.


Co-authored-by: Fredrik Strand Oseberg <fredrik.no@gmail.com>
Co-authored-by: Ivar Conradi Østhus <ivarconr@gmail.com>
2021-04-22 10:07:10 +02:00