1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-10-18 20:09:08 +02:00
Commit Graph

328 Commits

Author SHA1 Message Date
Jakob Heuser
d2a3e72bd8
Feat: Adds server.create() (#606) 2020-06-17 08:03:02 +02:00
Ivar Conradi Østhus
04b416bdd7 fix: add 'options' field to AuthenticationRequired 2020-05-14 22:32:33 +02:00
Ivar Conradi Østhus
5675f99e78
fix: add user-store (#590) 2020-05-12 23:05:26 +02:00
Ivar Conradi Østhus
5600b3fd61 fix: we are not ready for node 14 2020-05-02 09:12:36 +02:00
Ivar Conradi Østhus
770336e181 fix: add missing await for node 14 2020-05-02 09:00:08 +02:00
Ivar Conradi Østhus
7599553a90
fix: stop measure responsetime for unknown paths (#591) 2020-04-30 23:04:06 +02:00
Ivar Conradi Østhus
924edc8109 fix: expose evaluated config and permissions object
To make it easier to extend unleash we should expose
evaluated configuration.
2020-04-28 08:20:29 +02:00
Ivar Conradi Østhus
bf7a246707 fix: user should not crash if email is missing 2020-04-28 08:17:04 +02:00
Ivar Conradi Østhus
2c90d3fbff chore: reduce log-level for metrics 2020-04-19 20:57:54 +02:00
Ivar Conradi Østhus
562321175d
fix: add users-table to store user details (#586) 2020-04-19 20:51:15 +02:00
Hendy Irawan
1e9db236c4
fix: Support proper SSL settings using DATABASE_SSL (#585)
As described in https://node-postgres.com/features/ssl , `ssl` is an object which will be passed to Node TLS socket.
Also:

```
(node:1) DeprecationWarning: Implicit disabling of certificate verification is deprecated and will be removed in pg 8. Specify `rejectUnauthorized: true` to require a valid CA or `rejectUnauthorized: false` to explicitly opt out of MITM protection.
```

This change makes it possible to configure accepted SSL CA certificate, or to accept self-signed certificate.
2020-04-18 16:29:05 +02:00
Ivar Conradi Østhus
d01c9d2dac
fix: use airbnb lint rules directly (#583)
This drops usage of finn-eslint rules as they are no
longer maintained.
2020-04-14 22:29:11 +02:00
Ivar Conradi Østhus
636270b54e fix: upgrade ava to version 3.7.0
closes #552
2020-04-13 22:53:06 +02:00
Jessica Schalz
e42b0c7801
feat: Update "enableLegacyRoutes" to false (#580)
Defining "enableLegacyRoutes" as "true" is less secure than setting it to "false" by default, according to the documentation in "Securing Unleash" (https://unleash.github.io/docs/securing_unleash).
2020-04-13 22:43:14 +02:00
Ivar Conradi Østhus
b912768923
feat: move secrets to settings (#577)
* feat: move secrets to settings

* feat: Add better support for detailed db options.

Added db field in options to allow better control of
db-options. Especially important to allow special chars
in database password which might lead to an invaid url
when defined as a database-url.

* fix: integrate logger with knex logger

* fix: remove secret option from all examples

* fix: more options.js unit tests

* fix: added settings-store e2e tests
2020-04-13 22:38:46 +02:00
Ivar Conradi Østhus
333601eaea
fix: Logout should not be xhr call (#576)
closes #520
2020-03-29 22:22:19 +02:00
Ivar Conradi Østhus
aac12fbee8
fix: metrics for toggle count and version (#565) 2020-02-28 14:50:32 +01:00
Ivar Conradi Østhus
7a410508cb
feat: api supports context fields (#564)
* feat: api supports context fields

* fix: typo for cotnext group in event-differ
2020-02-27 21:26:18 +01:00
Ivar Conradi Østhus
2a1bcdf937 fix: failing user.test on gravatar url 2020-02-21 23:26:44 +01:00
Ivar Conradi Østhus
93aa34256e fix: use gravatar-url instead of gravatar dep 2020-02-21 23:20:06 +01:00
Ivar Conradi Østhus
8d90aa1b0b fix: upgrade @hapi/joi to version 17.1.0 2020-02-21 22:14:40 +01:00
Ivar Conradi Østhus
7720ce5ee8 fix: remove prometheus-gc-stats 2020-02-21 16:53:57 +01:00
Ivar Conradi Østhus
9e79d70060 fix: variant weights can be up to 1000 2020-02-20 08:34:33 +01:00
Ivar Conradi Østhus
b532c86695 fix: Upgrade to @hapi/joi (#543) 2020-02-20 08:34:32 +01:00
Tim Peeters
ee0941a405 Fix typo environment variable instead of environemnt variable. (#537) 2020-02-20 08:34:32 +01:00
Ivar Conradi Østhus
ef17338f70 fix: failing test 2020-02-20 08:34:32 +01:00
Ivar Conradi Østhus
150e484eda fix: add appName as label 2020-02-20 08:34:32 +01:00
ivaosthu
459f49866c fix: constraints should be part of toggle schema 2020-02-20 08:34:31 +01:00
Shobhit Khandelwal
80a4d41f0f fix: Add option to disable database migrations #526 (#527)
Closes #526
2020-02-20 08:34:31 +01:00
Ivar Conradi Østhus
c961796441 fix: lint error 2020-02-20 08:34:30 +01:00
Ivar Conradi Østhus
c9c26e249c fix: Add admin api for context-field definitions 2020-02-20 08:34:30 +01:00
ivaosthu
a182460242 fix: upgrade prettier to version 1.18.2 2020-02-20 08:34:30 +01:00
ivaosthu
704c3afc15 Revert "debug: test not destroying db in test-setup"
This reverts commit 9fe70f84dc.
2020-02-20 08:34:29 +01:00
ivaosthu
96d5413b70 debug: test not destroying db in test-setup 2020-02-20 08:34:29 +01:00
ivaosthu
4ce23e4f7f chore: move metrics-helper.js 2020-02-20 08:34:27 +01:00
Moritz Johner
d0f57a68b2 feat: add db query latency metrics (#473)
* feat: add db metrics
Signed-off-by: Moritz Johner <beller.moritz@googlemail.com>

* fix: use base unit

Signed-off-by: Moritz Johner <beller.moritz@googlemail.com>
2020-02-20 08:34:27 +01:00
ivaosthu
f4667fa767 chore: add a test to verify eventHook registration 2020-02-20 08:34:26 +01:00
Ran Magen
d917e8018f feat: add option and functionality that allows a user to hook into feature mutations (#457)
* Add option and functionality that allows a user to hook into feature mutations.

* Fix function argument to include the entire event.
2020-02-20 08:34:26 +01:00
Ran Magen
79741f78e5 fix: Add DATABASE_URL_FILE for loading a db url from a file (#455) 2020-02-20 08:34:26 +01:00
Ivar Conradi Østhus
8cb93920d9 chore: remove console.log in test 2020-02-20 08:34:25 +01:00
Ivar Conradi Østhus
62b97ca828 fix: none authentication should have a mock user (#449)
This also fix the bug introduces where authentication mode triggers readOnly mode in the UI.
2020-02-20 08:34:25 +01:00
ivaosthu
8ce662e8a9 chore: Make options more testable 2020-02-20 08:34:25 +01:00
ivaosthu
70911e4013 chore: use undefined instead of null 2020-02-20 08:34:25 +01:00
Thinh Tran
484b10029d feat: Separate DATABASE_URL to multiple DATABASE_* variable (#437)
* Support construct database by multiple env variable
* fix typo for test
* Add small change for passord and support ssl
* consider ssl should be true always
2020-02-20 08:34:24 +01:00
ivaosthu
9c32a28597 fix: Application fields should be optional. 2020-02-20 08:34:24 +01:00
ivaosthu
06186a7638 fix: should be more allow about empty metrics 2020-02-20 08:34:24 +01:00
ivaosthu
ccaab0c47b fix: LogProvider as option injected to unleash.
Instead of instructing users to do static calls
in to Unleash, she should instead be allwed to
specify the log provider as an option to Unleash.

This commit introduces the "getLogger" option,
a function responsible for creating a logger.
2020-02-20 08:34:24 +01:00
ivaosthu
09a9212dca fix: Session cookie should set path to baseUriPath 2020-02-20 08:34:23 +01:00
ivaosthu
c66545e11e fix(package): update mime to version 2.4.1
closes #418
2020-02-20 08:34:23 +01:00
ivaosthu
ccce6056dd Fix: Add support for IPC connections.
Read this for more details:
https://nodejs.org/api/net.html#net_identifying_paths_for_ipc_connections
2020-02-20 08:34:23 +01:00
Ivar Conradi Østhus
42cfd93820 fix: trigger actual logout on request 2020-02-20 08:34:22 +01:00
Benjamin Ludewig
e11e036d2d fix: import should use mime.lookup() for filename 2020-02-20 08:34:22 +01:00
Benjamin Ludewig
a06d2c04bb Refactored state-service, schemas, added e2e tests #395 2020-02-20 08:34:22 +01:00
Benjamin Ludewig
9065c5ee88 feat: Added import & export through stateService #395 2020-02-20 08:34:22 +01:00
ivaosthu
bb396b6c62 feat: Add customizable ui config 2020-02-20 08:34:22 +01:00
ivaosthu
f5d4f618ae fix: Application list should be alphabetically sorted
closes #403
2020-02-20 08:34:21 +01:00
ivaosthu
1c1b1edd83 fix: Add explicit endpoints for toggle on/off
closes #394
2020-02-20 08:34:21 +01:00
ivaosthu
e14d7fc5f0 fix: SimpleAuthentication should work with custom basePaths 2020-02-20 08:34:21 +01:00
ivaosthu
227c6c2e7a fix: Metrics poller should start even if inital fetch fails.
Currently if the intial metrics-fetch fails unleash will not
setup a metrics-poller. This fix ensures that the metrics
poller will start regardless of whether the inital fetch
fails or succeeds.

closes #396
2020-02-20 08:34:21 +01:00
ivaosthu
c3798d5858 fix: Variants should be allowed to be 'null' 2020-02-20 08:34:21 +01:00
ivaosthu
f6af62528b fix: metric-schema for variant counts 2020-02-20 08:34:20 +01:00
ivaosthu
f51500ec78 fix: override field changed name to contextName 2020-02-20 08:34:20 +01:00
ivaosthu
df5ef09008 feat: Add suppport for variant overrides 2020-02-20 08:34:20 +01:00
sveisvei
a95a2b0973 fix: Gracefully handle variant metrics 2020-02-20 08:34:20 +01:00
ivaosthu
c25e994322 fix: Update variant protocol 2020-02-20 08:34:20 +01:00
ivaosthu
82bf748341 fix: variant tests more stable 2020-02-20 08:34:20 +01:00
Juan Hoyos
3623052c36 feat: Added feature toggle variants 2020-02-20 08:34:20 +01:00
ivaosthu
81c33312a2 fix: Critical bugfix 'databaseSchema' not defaulting to 'public' 2020-02-20 08:34:19 +01:00
ivaosthu
8b9f9dbd2c fix: Database migrator does use the databaseSchema option
closes #387
2020-02-20 08:34:19 +01:00
Benjamin Ludewig
175208c105 Refactored controllers, moved checkPermission to permission-checker.js middleware 2020-02-20 08:34:19 +01:00
Benjamin Ludewig
b38da68d28 Don't expose user permissions when extendedPermissions is disabled, cleanup controller.js 2020-02-20 08:34:19 +01:00
Benjamin Ludewig
abe4f8cf16 Use full name instead of perms, 403 error message now includes expected permission 2020-02-20 08:34:19 +01:00
Benjamin Ludewig
e81f4a01eb Removed REVIVE_FEATURE permission in favor of UPDATE_FEATURE 2020-02-20 08:34:19 +01:00
Benjamin Ludewig
df7509e381 feature: Add action specific user permissions 2020-02-20 08:34:19 +01:00
ivaosthu
e256db29a5 fix(http-status): Client errors should use 400 status codes 2020-02-20 08:34:19 +01:00
ivaosthu
cdf623e70f chore: Upgrade ava to 1.0.1 2020-02-20 08:34:18 +01:00
ivaosthu
d5db78d140 chore(modernize): Use joi for url-friendly name validation 2020-02-20 08:34:18 +01:00
ivaosthu
62e6d1075a chore(modernize): remove express-validator 2020-02-20 08:34:18 +01:00
ivaosthu
3c8e51118e chore(modernize): Admin cleanup error-handlers 2020-02-20 08:34:18 +01:00
ivaosthu
ed14e3ed8b chore(modernize): Admin StrategyController 2020-02-20 08:34:18 +01:00
ivaosthu
984bb14351 fix(strategy): Correct error message 2020-02-20 08:34:18 +01:00
ivaosthu
738c26fd62 chore(modernize): Admin MetricsController 2020-02-20 08:34:18 +01:00
ivaosthu
a2c330f92e chore(modernize): UserController 2020-02-20 08:34:17 +01:00
ivaosthu
a8de54dd73 chore(modernize): Use base controller for all client controllers 2020-02-20 08:34:17 +01:00
ivaosthu
39bc265daf chore(modernize): Use joi schema-validation in FeatureController 2020-02-20 08:34:17 +01:00
ivaosthu
e285f39bcb chore(modernize): Admin FeatureController 2020-02-20 08:34:17 +01:00
ivaosthu
4a98d718cf chore(modernize): Spin out base class for Controllers 2020-02-20 08:34:17 +01:00
ivaosthu
be5cf15cf8 chore(modernize): Admin ArchiveController 2020-02-20 08:34:17 +01:00
ivaosthu
a7382419d5 chore(modernize): Remove unused files 2020-02-20 08:34:17 +01:00
ivaosthu
307b68a67e chore(modernize): cleanup api-def 2020-02-20 08:34:17 +01:00
ivaosthu
e4cfd54529 chore: Simplify client-controller constructor 2020-02-20 08:34:17 +01:00
ivaosthu
8ca233a722 chore(modernize): Modernize ClientRegisterController 2020-02-20 08:34:17 +01:00
ivaosthu
80a5d5c581 chore(modernize): Modernize ClientMetricsController 2020-02-20 08:34:17 +01:00
ivaosthu
8913c4fac5 chore(modernize): Modernize ClientIndexController 2020-02-20 08:34:17 +01:00
ivaosthu
461011b894 chore(modernize): Modernize FeaturesController 2020-02-20 08:34:17 +01:00
ivaosthu
2dde9c4b95 chore(modernize): Modernize IndexController 2020-02-20 08:34:17 +01:00
ivaosthu
b870e209a9 chore(modernize): Modernize BackstageController 2020-02-20 08:34:17 +01:00
ivaosthu
3903015cbb chore(modernize): Modernize HealthCheckController 2020-02-20 08:34:17 +01:00
Benjamin Ludewig
822d718a9b Add prometheus compatible feature metrics endpoint 2020-02-20 08:34:16 +01:00
Ivar Conradi Østhus
3a2771bd75 chore: fix lint 2020-02-20 08:34:15 +01:00