@mojaloop/connection-manager-api 3.1.2-snapshot.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +653 -0
- package/LICENSE +10 -0
- package/README.md +171 -0
- package/package.json +157 -0
- package/src/index.js +58 -0
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,653 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
|
+
|
|
5
|
+
### [3.1.1](https://github.com/pm4ml/connection-manager-api/compare/v3.1.0...v3.1.1) (2025-10-27)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* add config for winston meta data ([#146](https://github.com/pm4ml/connection-manager-api/issues/146)) ([7aa190b](https://github.com/pm4ml/connection-manager-api/commit/7aa190b38bdfb62eea4fec073a44d047cc04bec0))
|
|
11
|
+
|
|
12
|
+
## [3.1.0](https://github.com/pm4ml/connection-manager-api/compare/v3.0.3...v3.1.0) (2025-10-10)
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### Features
|
|
16
|
+
|
|
17
|
+
* add health checks and automated db migration ([b92c519](https://github.com/pm4ml/connection-manager-api/commit/b92c519b17afd6b5c0fd7caaa9b6af5a821d3984))
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Bug Fixes
|
|
21
|
+
|
|
22
|
+
* docker profile usage ([ae2c207](https://github.com/pm4ml/connection-manager-api/commit/ae2c207b2c013c1090c18bb303c38d3c117ebbfd))
|
|
23
|
+
* update health check path to /api/health ([3d4c22e](https://github.com/pm4ml/connection-manager-api/commit/3d4c22eca787e9c9e3bbbf23323473d2be2049d1))
|
|
24
|
+
* use imported docker image ([648216b](https://github.com/pm4ml/connection-manager-api/commit/648216b6389e61ce53a1a256ec504022f2ca1e90))
|
|
25
|
+
* use SELECT query for db health check instead of ping ([dc78a67](https://github.com/pm4ml/connection-manager-api/commit/dc78a6751580a3d52341df305ce3720b2565f98a))
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
### Refactor
|
|
29
|
+
|
|
30
|
+
* use dependency injection for database in health check ([296da19](https://github.com/pm4ml/connection-manager-api/commit/296da195a32ca87c176b00632aafacd0f7daf857))
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
### Chore
|
|
34
|
+
|
|
35
|
+
* bump ci version ([630b75f](https://github.com/pm4ml/connection-manager-api/commit/630b75f33d5b1c3749f300198960396f050a913b))
|
|
36
|
+
* bump deps ([4ef8626](https://github.com/pm4ml/connection-manager-api/commit/4ef8626afc76f73a7b42d213554338ce276c75b1))
|
|
37
|
+
* cleanup ([60a065c](https://github.com/pm4ml/connection-manager-api/commit/60a065c7975ce2dc6c7189c4cfa77534e39f92ba))
|
|
38
|
+
* update copyright headers in health files ([b93d901](https://github.com/pm4ml/connection-manager-api/commit/b93d90160a2daa61e3db8639d9f367e876ecba27))
|
|
39
|
+
|
|
40
|
+
### [3.0.3](https://github.com/pm4ml/connection-manager-api/compare/v3.0.2...v3.0.3) (2025-10-03)
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
### Bug Fixes
|
|
44
|
+
|
|
45
|
+
* **csi-1851:** ignored some grype vulnerabilities ([c50c4b2](https://github.com/pm4ml/connection-manager-api/commit/c50c4b2c65ed2111494c421569723c9fbcc5e70b))
|
|
46
|
+
* **csi-1851:** log constants and process.env with debug level ([713c174](https://github.com/pm4ml/connection-manager-api/commit/713c1742e4d74485dca12ecb13f7135dc7454dad))
|
|
47
|
+
|
|
48
|
+
### [3.0.2](https://github.com/pm4ml/connection-manager-api/compare/v3.0.1...v3.0.2) (2025-09-29)
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
### Bug Fixes
|
|
52
|
+
|
|
53
|
+
* check for existing DFSP inbound enrollment ([#141](https://github.com/pm4ml/connection-manager-api/issues/141)) ([00c1c20](https://github.com/pm4ml/connection-manager-api/commit/00c1c20e8fc9039726df918147752161a69bbcf4))
|
|
54
|
+
|
|
55
|
+
### [3.0.1](https://github.com/pm4ml/connection-manager-api/compare/v3.0.0...v3.0.1) (2025-09-11)
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
### Chore
|
|
59
|
+
|
|
60
|
+
* address new logs ([90de1d1](https://github.com/pm4ml/connection-manager-api/commit/90de1d19003825032d261e5f958a22211541fe86))
|
|
61
|
+
* bump dep ([5308b4f](https://github.com/pm4ml/connection-manager-api/commit/5308b4fca56e2380f7c566308ed3c17ce9835292))
|
|
62
|
+
* fix ([0815f99](https://github.com/pm4ml/connection-manager-api/commit/0815f997d0ca9455f92d50b4c62f0c7d0a74a138))
|
|
63
|
+
* fix ([1f4f935](https://github.com/pm4ml/connection-manager-api/commit/1f4f935a4278d0cc0d126949d798bd53060e96d7))
|
|
64
|
+
* fix ([24fdab6](https://github.com/pm4ml/connection-manager-api/commit/24fdab6ed1c42bbdc529590b8ddb52fd90daf278))
|
|
65
|
+
* int tests ([90b918b](https://github.com/pm4ml/connection-manager-api/commit/90b918b7335db0d3beda73f412b29a8d2769629b))
|
|
66
|
+
* lock ([a7eaa2b](https://github.com/pm4ml/connection-manager-api/commit/a7eaa2b847cd6523dbc0dfbabaca9ec612b1c129))
|
|
67
|
+
* lock ([06482cc](https://github.com/pm4ml/connection-manager-api/commit/06482cc0c0999e5a99c54d15cde3e8b87cd5ff96))
|
|
68
|
+
* lock ([71a9dca](https://github.com/pm4ml/connection-manager-api/commit/71a9dcaff0254c855e58a3d212ce310fbf1769b1))
|
|
69
|
+
* update logging ([a5417de](https://github.com/pm4ml/connection-manager-api/commit/a5417dea955f3cbb05deb41c027e29379088060a))
|
|
70
|
+
|
|
71
|
+
## [3.0.0](https://github.com/pm4ml/connection-manager-api/compare/v2.14.1...v3.0.0) (2025-09-10)
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
### Bug Fixes
|
|
75
|
+
|
|
76
|
+
* deps ([f1a30a5](https://github.com/pm4ml/connection-manager-api/commit/f1a30a532cd3c9998420134b445a23f72b6a757c))
|
|
77
|
+
* docker compose ([35bef43](https://github.com/pm4ml/connection-manager-api/commit/35bef43b1dcca0d0ea649cdcf447f02c9a0ff05c))
|
|
78
|
+
|
|
79
|
+
## [3.0.0-snapshot.25](https://github.com/pm4ml/connection-manager-api/compare/v3.0.0-snapshot.24...v3.0.0-snapshot.25) (2025-07-18)
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
### Bug Fixes
|
|
83
|
+
|
|
84
|
+
* test ([fd5e43b](https://github.com/pm4ml/connection-manager-api/commit/fd5e43b7a30c2bcd0f34c67e6f7d43a87ab25aa7))
|
|
85
|
+
|
|
86
|
+
## [3.0.0-snapshot.24](https://github.com/pm4ml/connection-manager-api/compare/v3.0.0-snapshot.23...v3.0.0-snapshot.24) (2025-07-18)
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
### Bug Fixes
|
|
90
|
+
|
|
91
|
+
* keycloak group assignment ([20b2afe](https://github.com/pm4ml/connection-manager-api/commit/20b2afe4fb5d431d7dea264ed165f16dea7c0ca9))
|
|
92
|
+
|
|
93
|
+
## [3.0.0-snapshot.23](https://github.com/pm4ml/connection-manager-api/compare/v2.14.0...v3.0.0-snapshot.23) (2025-07-18)
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
### Bug Fixes
|
|
97
|
+
|
|
98
|
+
* don't assign dfsp to MTA group ([1292b46](https://github.com/pm4ml/connection-manager-api/commit/1292b46b401cc79af98e7826af0e5c202fe1908b))
|
|
99
|
+
* tests ([c26c50f](https://github.com/pm4ml/connection-manager-api/commit/c26c50f74a2a47b1fc096de5d8421ab5cb611bc5))
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
### Chore
|
|
103
|
+
|
|
104
|
+
* bump deps ([a1b2f91](https://github.com/pm4ml/connection-manager-api/commit/a1b2f91eb072572ff8794cc98ecd9e8da6196142))
|
|
105
|
+
|
|
106
|
+
## [3.0.0-snapshot.22](https://github.com/pm4ml/connection-manager-api/compare/v3.0.0-snapshot.21...v3.0.0-snapshot.22) (2025-07-15)
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
### Bug Fixes
|
|
110
|
+
|
|
111
|
+
* assigning keto client roles ([99fb231](https://github.com/pm4ml/connection-manager-api/commit/99fb2315cf04076572acf97a4390e268b773434d))
|
|
112
|
+
|
|
113
|
+
## [3.0.0-snapshot.21](https://github.com/pm4ml/connection-manager-api/compare/v3.0.0-snapshot.20...v3.0.0-snapshot.21) (2025-07-13)
|
|
114
|
+
|
|
115
|
+
## [3.0.0-snapshot.20](https://github.com/pm4ml/connection-manager-api/compare/v3.0.0-snapshot.19...v3.0.0-snapshot.20) (2025-07-13)
|
|
116
|
+
|
|
117
|
+
## [3.0.0-snapshot.19](https://github.com/pm4ml/connection-manager-api/compare/v3.0.0-snapshot.18...v3.0.0-snapshot.19) (2025-07-12)
|
|
118
|
+
|
|
119
|
+
## [3.0.0-snapshot.18](https://github.com/pm4ml/connection-manager-api/compare/v3.0.0-snapshot.17...v3.0.0-snapshot.18) (2025-07-12)
|
|
120
|
+
|
|
121
|
+
|
|
122
|
+
### Features
|
|
123
|
+
|
|
124
|
+
* extract user roles from request headers ([1058907](https://github.com/pm4ml/connection-manager-api/commit/1058907d27352ebee40073eabf34231bcc2609f9))
|
|
125
|
+
|
|
126
|
+
## [3.0.0-snapshot.17](https://github.com/pm4ml/connection-manager-api/compare/v3.0.0-snapshot.16...v3.0.0-snapshot.17) (2025-07-12)
|
|
127
|
+
|
|
128
|
+
|
|
129
|
+
### Bug Fixes
|
|
130
|
+
|
|
131
|
+
* import ([fdc5afe](https://github.com/pm4ml/connection-manager-api/commit/fdc5afecc4bd5f45b9ee5409e0a2c8c33b35c489))
|
|
132
|
+
|
|
133
|
+
## [3.0.0-snapshot.16](https://github.com/pm4ml/connection-manager-api/compare/v3.0.0-snapshot.15...v3.0.0-snapshot.16) (2025-07-12)
|
|
134
|
+
|
|
135
|
+
## [3.0.0-snapshot.15](https://github.com/pm4ml/connection-manager-api/compare/v3.0.0-snapshot.14...v3.0.0-snapshot.15) (2025-07-12)
|
|
136
|
+
|
|
137
|
+
|
|
138
|
+
### Bug Fixes
|
|
139
|
+
|
|
140
|
+
* tests ([7dcd5cc](https://github.com/pm4ml/connection-manager-api/commit/7dcd5cc4cab1887d42956bd89a0d282f7b857eb3))
|
|
141
|
+
* tests ([38f4e8a](https://github.com/pm4ml/connection-manager-api/commit/38f4e8a3fb010a7799cf46749bf7d0073d1ee6ff))
|
|
142
|
+
* tests ([026ae06](https://github.com/pm4ml/connection-manager-api/commit/026ae06a8dc8b3ca46c6133762f53509a80b9899))
|
|
143
|
+
* tests ([81a81f0](https://github.com/pm4ml/connection-manager-api/commit/81a81f04704c2b3a9329043b9cd5d01c6e85f543))
|
|
144
|
+
|
|
145
|
+
## [3.0.0-snapshot.14](https://github.com/pm4ml/connection-manager-api/compare/v3.0.0-snapshot.13...v3.0.0-snapshot.14) (2025-07-12)
|
|
146
|
+
|
|
147
|
+
|
|
148
|
+
### Bug Fixes
|
|
149
|
+
|
|
150
|
+
* tests ([e2baf6a](https://github.com/pm4ml/connection-manager-api/commit/e2baf6a19a717b206a220e5b7f9f4b78becefc2f))
|
|
151
|
+
|
|
152
|
+
## [3.0.0-snapshot.13](https://github.com/pm4ml/connection-manager-api/compare/v3.0.0-snapshot.12...v3.0.0-snapshot.13) (2025-07-12)
|
|
153
|
+
|
|
154
|
+
|
|
155
|
+
### Bug Fixes
|
|
156
|
+
|
|
157
|
+
* user removal ([39d4cdc](https://github.com/pm4ml/connection-manager-api/commit/39d4cdc7e14ed74e8efd6b37cc8f5346932c428c))
|
|
158
|
+
|
|
159
|
+
## [3.0.0-snapshot.12](https://github.com/pm4ml/connection-manager-api/compare/v3.0.0-snapshot.11...v3.0.0-snapshot.12) (2025-07-12)
|
|
160
|
+
|
|
161
|
+
## [3.0.0-snapshot.11](https://github.com/pm4ml/connection-manager-api/compare/v3.0.0-snapshot.10...v3.0.0-snapshot.11) (2025-07-12)
|
|
162
|
+
|
|
163
|
+
## [3.0.0-snapshot.10](https://github.com/pm4ml/connection-manager-api/compare/v3.0.0-snapshot.9...v3.0.0-snapshot.10) (2025-07-12)
|
|
164
|
+
|
|
165
|
+
|
|
166
|
+
### Bug Fixes
|
|
167
|
+
|
|
168
|
+
* config ([e4add2b](https://github.com/pm4ml/connection-manager-api/commit/e4add2b506bf646a7c5a2cab9675af9de9d40ada))
|
|
169
|
+
|
|
170
|
+
## [3.0.0-snapshot.9](https://github.com/pm4ml/connection-manager-api/compare/v3.0.0-snapshot.8...v3.0.0-snapshot.9) (2025-07-11)
|
|
171
|
+
|
|
172
|
+
|
|
173
|
+
### Bug Fixes
|
|
174
|
+
|
|
175
|
+
* keto user id ([5b301a1](https://github.com/pm4ml/connection-manager-api/commit/5b301a111fe404a14ab7e8f1bb0277062aee543c))
|
|
176
|
+
|
|
177
|
+
## [3.0.0-snapshot.8](https://github.com/pm4ml/connection-manager-api/compare/v3.0.0-snapshot.7...v3.0.0-snapshot.8) (2025-07-08)
|
|
178
|
+
|
|
179
|
+
|
|
180
|
+
### Features
|
|
181
|
+
|
|
182
|
+
* add docker publish github workflow ([427c662](https://github.com/pm4ml/connection-manager-api/commit/427c6629749c82eda224fea4a1c9ee65ced5583b))
|
|
183
|
+
|
|
184
|
+
## [3.0.0-snapshot.7](https://github.com/pm4ml/connection-manager-api/compare/v3.0.0-snapshot.6...v3.0.0-snapshot.7) (2025-07-08)
|
|
185
|
+
|
|
186
|
+
## [3.0.0-snapshot.6](https://github.com/pm4ml/connection-manager-api/compare/v3.0.0-snapshot.5...v3.0.0-snapshot.6) (2025-07-08)
|
|
187
|
+
|
|
188
|
+
|
|
189
|
+
### Bug Fixes
|
|
190
|
+
|
|
191
|
+
* audit ([41757cb](https://github.com/pm4ml/connection-manager-api/commit/41757cbeebf86279260a910447f652ca24342fb7))
|
|
192
|
+
* test ([25c8e87](https://github.com/pm4ml/connection-manager-api/commit/25c8e876a5bc2755ca7d9f8204ac2a7b977c94d5))
|
|
193
|
+
* tests ([60b7b0c](https://github.com/pm4ml/connection-manager-api/commit/60b7b0c4fe931b865ff8c1c8a07ced144e37cfb7))
|
|
194
|
+
|
|
195
|
+
## [3.0.0-snapshot.5](https://github.com/pm4ml/connection-manager-api/compare/v3.0.0-snapshot.4...v3.0.0-snapshot.5) (2025-07-08)
|
|
196
|
+
|
|
197
|
+
## [3.0.0-snapshot.4](https://github.com/pm4ml/connection-manager-api/compare/v2.13.0...v3.0.0-snapshot.4) (2025-07-08)
|
|
198
|
+
|
|
199
|
+
|
|
200
|
+
### Features
|
|
201
|
+
|
|
202
|
+
* add keto support ([9bad7fe](https://github.com/pm4ml/connection-manager-api/commit/9bad7fe2e64a762fd71a30b8d2f3b83e1a844997))
|
|
203
|
+
|
|
204
|
+
## [3.0.0-snapshot.3](https://github.com/pm4ml/connection-manager-api/compare/v3.0.0-snapshot.2...v3.0.0-snapshot.3) (2025-07-03)
|
|
205
|
+
|
|
206
|
+
## [3.0.0-snapshot.2](https://github.com/pm4ml/connection-manager-api/compare/v2.12.0...v3.0.0-snapshot.2) (2025-07-03)
|
|
207
|
+
|
|
208
|
+
|
|
209
|
+
### Features
|
|
210
|
+
|
|
211
|
+
* add test cases ([948cf1e](https://github.com/pm4ml/connection-manager-api/commit/948cf1ef2311c7121e7d03dc6f66b91e04126749))
|
|
212
|
+
* implement OpenID Connect authentication and session management ([7ef2757](https://github.com/pm4ml/connection-manager-api/commit/7ef27574c1529d916fee0a3ce96c06de5bdaccc8))
|
|
213
|
+
* implement pm4ml credentials management ([1d8cc2e](https://github.com/pm4ml/connection-manager-api/commit/1d8cc2e8cea299fd88299b4979641a6da9cc2872))
|
|
214
|
+
|
|
215
|
+
|
|
216
|
+
### Bug Fixes
|
|
217
|
+
|
|
218
|
+
* debug ([35ef711](https://github.com/pm4ml/connection-manager-api/commit/35ef7110642baa90f2b6840478ea17d68772ce4e))
|
|
219
|
+
* disable dfsp watcher by default ([a33b2a5](https://github.com/pm4ml/connection-manager-api/commit/a33b2a55e7f17521394c3c02789245c4e25cbf18))
|
|
220
|
+
* docker envs ([5dda5a9](https://github.com/pm4ml/connection-manager-api/commit/5dda5a900bd485ef1f081796cbb5dc6a165c9503))
|
|
221
|
+
* env ([4f12944](https://github.com/pm4ml/connection-manager-api/commit/4f12944b75df45768c523fc372bb640c74d4e260))
|
|
222
|
+
* env ([435c527](https://github.com/pm4ml/connection-manager-api/commit/435c5279820b8f996ed6c3e917de820f90328ad8))
|
|
223
|
+
* envs ([c5498fa](https://github.com/pm4ml/connection-manager-api/commit/c5498faf0d7fb412686fb03d7dfb8d0be00c47c1))
|
|
224
|
+
* esm dep import ([c15bd14](https://github.com/pm4ml/connection-manager-api/commit/c15bd1485bbbf6a752dacc211b0fe8812e642aa3))
|
|
225
|
+
* gitignore ([5feb5cb](https://github.com/pm4ml/connection-manager-api/commit/5feb5cb3f1cd992059d1da42d0292d7ce7ca7aa6))
|
|
226
|
+
* health check ([ceded2d](https://github.com/pm4ml/connection-manager-api/commit/ceded2d8c81d1b4c2c03b7af8ad4a1f51e9a0fd4))
|
|
227
|
+
* increase test timeout ([41a9d3e](https://github.com/pm4ml/connection-manager-api/commit/41a9d3e088fe72292091571e5378ebc02c562c24))
|
|
228
|
+
* node ver ([af51f39](https://github.com/pm4ml/connection-manager-api/commit/af51f39fef4dc16f52814b37513b6e3433b382f4))
|
|
229
|
+
* prev commit ([6a812e3](https://github.com/pm4ml/connection-manager-api/commit/6a812e3e8f7c8b8ae6a58f8910d880cd91be8ad4))
|
|
230
|
+
* tests ([0da9c93](https://github.com/pm4ml/connection-manager-api/commit/0da9c932657f98b45d92ddc87f9b10d631a0179f))
|
|
231
|
+
* timeout ([0463891](https://github.com/pm4ml/connection-manager-api/commit/046389194e3de5053918b21eac0b34fe944226a5))
|
|
232
|
+
|
|
233
|
+
|
|
234
|
+
### Chore
|
|
235
|
+
|
|
236
|
+
* add example env file ([03c1f02](https://github.com/pm4ml/connection-manager-api/commit/03c1f02111aae77d52a0bf8c1e92e0ff9b6dcd8e))
|
|
237
|
+
* bump deps ([95532f9](https://github.com/pm4ml/connection-manager-api/commit/95532f99fbae3fd467f6d4af975ff324b6023165))
|
|
238
|
+
* bump deps ([e739c3c](https://github.com/pm4ml/connection-manager-api/commit/e739c3c4e87ef5c96a613a476849fc9703e731f5))
|
|
239
|
+
* cleanup ([f6001f9](https://github.com/pm4ml/connection-manager-api/commit/f6001f9263fda3a46309e7bf47a2b02cd024a50b))
|
|
240
|
+
* cleanup ([d2b032d](https://github.com/pm4ml/connection-manager-api/commit/d2b032d19c6f3951f9bb1102b47cc2c9476265ea))
|
|
241
|
+
* cleanup ([33e86f3](https://github.com/pm4ml/connection-manager-api/commit/33e86f30a5bfeffb5d353694e86d59363f9f6700))
|
|
242
|
+
* cleanup ([597be0d](https://github.com/pm4ml/connection-manager-api/commit/597be0dc68d9cc04b2f25a604d7cd8a5e10e5d42))
|
|
243
|
+
* cleanup ([c9f2644](https://github.com/pm4ml/connection-manager-api/commit/c9f26441c0da771f4128b9aeb558ab95abdb9b7d))
|
|
244
|
+
* cleanup ([f69f46c](https://github.com/pm4ml/connection-manager-api/commit/f69f46c8b9a789df366b17825f0285d6eb111ba6))
|
|
245
|
+
* cleanup ([1033324](https://github.com/pm4ml/connection-manager-api/commit/10333242c537be12063f44bbccf16b279b3d1199))
|
|
246
|
+
* cleanup auth config ([e78b613](https://github.com/pm4ml/connection-manager-api/commit/e78b613fb2c738b3f7bf0fed8b5ef0cbecc16343))
|
|
247
|
+
* fix cmd ([572a661](https://github.com/pm4ml/connection-manager-api/commit/572a661a09dde0e1ce1a20d422bf0e532f19638d))
|
|
248
|
+
* fix format ([a771eee](https://github.com/pm4ml/connection-manager-api/commit/a771eee29215d064657910c4119a51a72f5f812b))
|
|
249
|
+
* merge 'origin/main' into feat/keycloak ([6f054b1](https://github.com/pm4ml/connection-manager-api/commit/6f054b1b96ae826503f99cb37e7ac37a990b8392))
|
|
250
|
+
* skip wso2 tests ([201ede2](https://github.com/pm4ml/connection-manager-api/commit/201ede247a6938a21458d378ba2657898b2175c5))
|
|
251
|
+
|
|
252
|
+
### [2.14.1](https://github.com/pm4ml/connection-manager-api/compare/v2.14.0...v2.14.1) (2025-07-30)
|
|
253
|
+
|
|
254
|
+
|
|
255
|
+
### Bug Fixes
|
|
256
|
+
|
|
257
|
+
* dep ([48782b9](https://github.com/pm4ml/connection-manager-api/commit/48782b9776f8c0fc73132d62da8cc6c00fabb1e6))
|
|
258
|
+
* dep issues ([39dd0c2](https://github.com/pm4ml/connection-manager-api/commit/39dd0c2fb102f415a697a3848c93e172c5bd5c6a))
|
|
259
|
+
* issue with var format ([6ef13d5](https://github.com/pm4ml/connection-manager-api/commit/6ef13d57188ed22cd6b38a263c9d38a208bc804b))
|
|
260
|
+
|
|
261
|
+
## [2.14.0](https://github.com/pm4ml/connection-manager-api/compare/v2.13.0...v2.14.0) (2025-07-18)
|
|
262
|
+
|
|
263
|
+
|
|
264
|
+
### Features
|
|
265
|
+
|
|
266
|
+
* enabled ssl in db config ([8b8652f](https://github.com/pm4ml/connection-manager-api/commit/8b8652f775bd7ff280af9739bdee315637cb737a))
|
|
267
|
+
|
|
268
|
+
|
|
269
|
+
### Bug Fixes
|
|
270
|
+
|
|
271
|
+
* audit ([361207e](https://github.com/pm4ml/connection-manager-api/commit/361207ebc86b05e9dfe156a9b6b0772c747bcd25))
|
|
272
|
+
* int tests ([7fc6d29](https://github.com/pm4ml/connection-manager-api/commit/7fc6d2941fc0242be458eb1c437b7ac45cd2de01))
|
|
273
|
+
|
|
274
|
+
|
|
275
|
+
### Chore
|
|
276
|
+
|
|
277
|
+
* improvements ([3a8299a](https://github.com/pm4ml/connection-manager-api/commit/3a8299a146d59f131fff9e0a9c9aae41b5ce1f28))
|
|
278
|
+
|
|
279
|
+
## [2.13.0](https://github.com/pm4ml/connection-manager-api/compare/v2.13.0-snapshot.1...v2.13.0) (2025-07-08)
|
|
280
|
+
|
|
281
|
+
|
|
282
|
+
### Features
|
|
283
|
+
|
|
284
|
+
* **csi-1461:** updated deps ([776e91e](https://github.com/pm4ml/connection-manager-api/commit/776e91e6fe9825c239074d26c174b69aa8f334aa))
|
|
285
|
+
|
|
286
|
+
## [2.12.0](https://github.com/pm4ml/connection-manager-api/compare/v2.11.1...v2.12.0) (2025-06-17)
|
|
287
|
+
|
|
288
|
+
|
|
289
|
+
### Features
|
|
290
|
+
|
|
291
|
+
* add support for UPLOAD_PEER_JWS state machine ([#127](https://github.com/pm4ml/connection-manager-api/issues/127)) ([2d8cd74](https://github.com/pm4ml/connection-manager-api/commit/2d8cd74191a65140f0a986f9a667c6d981be1e6c))
|
|
292
|
+
|
|
293
|
+
### [2.11.1](https://github.com/pm4ml/connection-manager-api/compare/v2.11.0...v2.11.1) (2025-06-02)
|
|
294
|
+
|
|
295
|
+
## [2.11.0](https://github.com/pm4ml/connection-manager-api/compare/v2.11.0-snapshot.1...v2.11.0) (2025-06-02)
|
|
296
|
+
|
|
297
|
+
|
|
298
|
+
### Features
|
|
299
|
+
|
|
300
|
+
* **csi-1470:** updated deps ([f956050](https://github.com/pm4ml/connection-manager-api/commit/f9560507d4d6573cf78a0557f65baf9f19fef0d8))
|
|
301
|
+
|
|
302
|
+
### [2.10.5](https://github.com/pm4ml/connection-manager-api/compare/v2.10.4...v2.10.5) (2025-05-30)
|
|
303
|
+
|
|
304
|
+
### [2.10.5](https://github.com/pm4ml/connection-manager-api/compare/v2.10.4...v2.10.5) (2025-05-30)
|
|
305
|
+
|
|
306
|
+
### [2.10.4-snapshot.10](https://github.com/pm4ml/connection-manager-api/compare/v2.10.4-snapshot.9...v2.10.4-snapshot.10) (2025-05-29)
|
|
307
|
+
|
|
308
|
+
|
|
309
|
+
### Bug Fixes
|
|
310
|
+
|
|
311
|
+
* **csi-1519:** code cleanup ([c67557e](https://github.com/pm4ml/connection-manager-api/commit/c67557ec59389bf53d619db86e6ed4ef79030cb6))
|
|
312
|
+
|
|
313
|
+
### [2.10.4-snapshot.9](https://github.com/pm4ml/connection-manager-api/compare/v2.10.4-snapshot.8...v2.10.4-snapshot.9) (2025-05-29)
|
|
314
|
+
|
|
315
|
+
|
|
316
|
+
### Bug Fixes
|
|
317
|
+
|
|
318
|
+
* **csi-1519:** moved currency and monetaryZone seeds to migrations ([b11f381](https://github.com/pm4ml/connection-manager-api/commit/b11f38137c7edae61a5c5f72088bc696198f0c90))
|
|
319
|
+
|
|
320
|
+
### [2.10.4-snapshot.8](https://github.com/pm4ml/connection-manager-api/compare/v2.10.4-snapshot.7...v2.10.4-snapshot.8) (2025-05-29)
|
|
321
|
+
|
|
322
|
+
|
|
323
|
+
### Bug Fixes
|
|
324
|
+
|
|
325
|
+
* **csi-1519:** skipped the last seed ([7eb0627](https://github.com/pm4ml/connection-manager-api/commit/7eb0627f6c8c6277f7b74e0130c72151214437fb))
|
|
326
|
+
|
|
327
|
+
### [2.10.4-snapshot.7](https://github.com/pm4ml/connection-manager-api/compare/v2.10.4-snapshot.6...v2.10.4-snapshot.7) (2025-05-29)
|
|
328
|
+
|
|
329
|
+
|
|
330
|
+
### Bug Fixes
|
|
331
|
+
|
|
332
|
+
* **csi-1519:** run only seeds ([c1ebd55](https://github.com/pm4ml/connection-manager-api/commit/c1ebd5581f48e69777a7dacf3decaf80d29c1546))
|
|
333
|
+
|
|
334
|
+
### [2.10.4-snapshot.6](https://github.com/pm4ml/connection-manager-api/compare/v2.10.4-snapshot.5...v2.10.4-snapshot.6) (2025-05-29)
|
|
335
|
+
|
|
336
|
+
|
|
337
|
+
### Bug Fixes
|
|
338
|
+
|
|
339
|
+
* **csi-1519:** run only migrations ([14a5ddf](https://github.com/pm4ml/connection-manager-api/commit/14a5ddf3a41f046f4bba4c10e5f293566678dfb5))
|
|
340
|
+
|
|
341
|
+
### [2.10.4-snapshot.5](https://github.com/pm4ml/connection-manager-api/compare/v2.10.4-snapshot.4...v2.10.4-snapshot.5) (2025-05-29)
|
|
342
|
+
|
|
343
|
+
|
|
344
|
+
### Bug Fixes
|
|
345
|
+
|
|
346
|
+
* **csi-1519:** moved new migrations back ([3543e4f](https://github.com/pm4ml/connection-manager-api/commit/3543e4f3e7c7d99f4917cb7cb1e80f81bd0c24a1))
|
|
347
|
+
|
|
348
|
+
### [2.10.4-snapshot.4](https://github.com/pm4ml/connection-manager-api/compare/v2.10.4-snapshot.3...v2.10.4-snapshot.4) (2025-05-29)
|
|
349
|
+
|
|
350
|
+
|
|
351
|
+
### Bug Fixes
|
|
352
|
+
|
|
353
|
+
* **csi-1519:** disabled asyncStackTraces in knexfile.js ([e7857d6](https://github.com/pm4ml/connection-manager-api/commit/e7857d6a536c68eab84671c7ca5952c986aa4774))
|
|
354
|
+
|
|
355
|
+
### [2.10.4-snapshot.3](https://github.com/pm4ml/connection-manager-api/compare/v2.10.4-snapshot.2...v2.10.4-snapshot.3) (2025-05-29)
|
|
356
|
+
|
|
357
|
+
|
|
358
|
+
### Bug Fixes
|
|
359
|
+
|
|
360
|
+
* **csi-1519:** reverted npm scripts for migrations and seeds ([5f96fae](https://github.com/pm4ml/connection-manager-api/commit/5f96faed08e4c16172f2f662a696a1b860198878))
|
|
361
|
+
|
|
362
|
+
### [2.10.4-snapshot.2](https://github.com/pm4ml/connection-manager-api/compare/v2.10.4-snapshot.1...v2.10.4-snapshot.2) (2025-05-29)
|
|
363
|
+
|
|
364
|
+
|
|
365
|
+
### Bug Fixes
|
|
366
|
+
|
|
367
|
+
* **csi-1519:** disable migrations for testing ([7b56cf5](https://github.com/pm4ml/connection-manager-api/commit/7b56cf53fd07298ee199dbf3bb178565b77467a5))
|
|
368
|
+
|
|
369
|
+
### [2.10.4-snapshot.1](https://github.com/pm4ml/connection-manager-api/compare/v2.10.4-snapshot.0...v2.10.4-snapshot.1) (2025-05-28)
|
|
370
|
+
|
|
371
|
+
|
|
372
|
+
### Bug Fixes
|
|
373
|
+
|
|
374
|
+
* **csi-1519:** updated upsertStatesStatus DB logic to use insert instead of upsert ([e4f7504](https://github.com/pm4ml/connection-manager-api/commit/e4f7504397342ec5db9366958caec3f6f5e32b1c))
|
|
375
|
+
|
|
376
|
+
### [2.10.4-snapshot.0](https://github.com/pm4ml/connection-manager-api/compare/v2.10.3...v2.10.4-snapshot.0) (2025-05-28)
|
|
377
|
+
|
|
378
|
+
|
|
379
|
+
### Bug Fixes
|
|
380
|
+
|
|
381
|
+
* **csi-1519:** used insert to avoid possible locking ([b436a8c](https://github.com/pm4ml/connection-manager-api/commit/b436a8c86aa66b49e13722e5d3401be7e251457c))
|
|
382
|
+
|
|
383
|
+
### [2.10.4](https://github.com/pm4ml/connection-manager-api/compare/v2.10.3...v2.10.4) (2025-05-29)
|
|
384
|
+
|
|
385
|
+
|
|
386
|
+
### Chore
|
|
387
|
+
|
|
388
|
+
* reenable ci, int tests, func tests and switch to jest ([#116](https://github.com/pm4ml/connection-manager-api/issues/116)) ([0883109](https://github.com/pm4ml/connection-manager-api/commit/088310943db6e19c9e8805ec24e9dfa79a0c23ab))
|
|
389
|
+
|
|
390
|
+
### [2.10.3](https://github.com/pm4ml/connection-manager-api/compare/v2.10.2...v2.10.3) (2025-05-28)
|
|
391
|
+
|
|
392
|
+
|
|
393
|
+
### Bug Fixes
|
|
394
|
+
|
|
395
|
+
* **csi-1519:** added migration recreate create_gid procedure ([fd470d2](https://github.com/pm4ml/connection-manager-api/commit/fd470d26d04183100bf41e834aa4ef3e451bf9fe))
|
|
396
|
+
* **csi-1519:** added migration to add primary key to gid table ([cd1e251](https://github.com/pm4ml/connection-manager-api/commit/cd1e251a78b87e9a178ce918cdccbbfb11827015))
|
|
397
|
+
* **csi-1519:** added migration to add primary key to gid table ([0ab27fd](https://github.com/pm4ml/connection-manager-api/commit/0ab27fdd9a9979b02bc94f9f7bc8c87ddef507bc))
|
|
398
|
+
* **csi-1519:** addressed PR comments ([8b01622](https://github.com/pm4ml/connection-manager-api/commit/8b01622b70876e437102faff1a7c7a5e3d163977))
|
|
399
|
+
* **csi-1519:** renamed [@update](https://github.com/update)_id to [@counter](https://github.com/counter) ([9f5eb38](https://github.com/pm4ml/connection-manager-api/commit/9f5eb38d1ba283e79bbfbe22d7e2df20f92a852a))
|
|
400
|
+
|
|
401
|
+
### [2.10.2](https://github.com/pm4ml/connection-manager-api/compare/v2.10.1...v2.10.2) (2025-05-23)
|
|
402
|
+
|
|
403
|
+
|
|
404
|
+
### Bug Fixes
|
|
405
|
+
|
|
406
|
+
* **csi-1483:** fix request data extraction mapping ([4997498](https://github.com/pm4ml/connection-manager-api/commit/49974988b7a57c3e1339a00947d3d5e51491550d))
|
|
407
|
+
* fix request data mapping ([fbf7d64](https://github.com/pm4ml/connection-manager-api/commit/fbf7d6438e3895f900357da4fe64a83b188d0e48))
|
|
408
|
+
* update api spec ([107ee06](https://github.com/pm4ml/connection-manager-api/commit/107ee06657e0e06b0e510b44bd5b9e3f0f9c82f7))
|
|
409
|
+
|
|
410
|
+
|
|
411
|
+
### Refactor
|
|
412
|
+
|
|
413
|
+
* simplify getRequestData function ([5b3da33](https://github.com/pm4ml/connection-manager-api/commit/5b3da33da516d527737e7b6b4d0002122248cd8c))
|
|
414
|
+
* simplify getRequestData function ([281db43](https://github.com/pm4ml/connection-manager-api/commit/281db432d4a515c94748ff4c7cb4b11ef9fecbb6))
|
|
415
|
+
|
|
416
|
+
|
|
417
|
+
### Chore
|
|
418
|
+
|
|
419
|
+
* override multer to fix audit ([e1af61c](https://github.com/pm4ml/connection-manager-api/commit/e1af61ca4a5878141e6e74b3c1ac701babeb13ee))
|
|
420
|
+
* update license ([c610dd6](https://github.com/pm4ml/connection-manager-api/commit/c610dd6dd449729e230cad330c6200f8df94d53e))
|
|
421
|
+
* upgrade node ([9780398](https://github.com/pm4ml/connection-manager-api/commit/9780398948a407d319bd13c5e4a65c6048a52519))
|
|
422
|
+
|
|
423
|
+
### [2.10.1](https://github.com/pm4ml/connection-manager-api/compare/v2.10.1-snapshot.5...v2.10.1) (2025-05-23)
|
|
424
|
+
|
|
425
|
+
## [2.10.0](https://github.com/pm4ml/connection-manager-api/compare/v2.10.0-snapshot.0...v2.10.0) (2025-05-16)
|
|
426
|
+
|
|
427
|
+
### [2.9.6](https://github.com/pm4ml/connection-manager-api/compare/v2.9.4...v2.9.6) (2025-05-13)
|
|
428
|
+
|
|
429
|
+
|
|
430
|
+
### Bug Fixes
|
|
431
|
+
|
|
432
|
+
* debug ([edebde7](https://github.com/pm4ml/connection-manager-api/commit/edebde7690e7cf91aa6c60f3977efaf32c4ab635))
|
|
433
|
+
* disable dfsp watcher by default ([3c86c5d](https://github.com/pm4ml/connection-manager-api/commit/3c86c5dd7721095a198c8ddd374cdffaf57d08ab))
|
|
434
|
+
* gitignore ([e418f59](https://github.com/pm4ml/connection-manager-api/commit/e418f596f8fd839ece19fcd156042d958fd6dc8b))
|
|
435
|
+
* node ver ([27abc69](https://github.com/pm4ml/connection-manager-api/commit/27abc699f050eb00beeb465e1555bae68b3ca65b))
|
|
436
|
+
* package-lock ([7bff099](https://github.com/pm4ml/connection-manager-api/commit/7bff09986b3550e96ae8d1033254ca24603df47f))
|
|
437
|
+
* tests ([1e36352](https://github.com/pm4ml/connection-manager-api/commit/1e363528a96482edc35290b43bbc7598733f709e))
|
|
438
|
+
|
|
439
|
+
|
|
440
|
+
### Chore
|
|
441
|
+
|
|
442
|
+
* bump ver ([c2fc88e](https://github.com/pm4ml/connection-manager-api/commit/c2fc88e043e5b8ae481302f1c37d102f938bf2fa))
|
|
443
|
+
* cleanup ([f31ccab](https://github.com/pm4ml/connection-manager-api/commit/f31ccab69503ac823eedefc32be478d1ee076e95))
|
|
444
|
+
|
|
445
|
+
### [2.9.4](https://github.com/pm4ml/connection-manager-api/compare/v2.9.3...v2.9.4) (2025-05-08)
|
|
446
|
+
|
|
447
|
+
|
|
448
|
+
### Chore
|
|
449
|
+
|
|
450
|
+
* added migrate:rollback script ([2d8829f](https://github.com/pm4ml/connection-manager-api/commit/2d8829f8de5113f9e65bc6677cb53b251df6584e))
|
|
451
|
+
|
|
452
|
+
### [2.9.3](https://github.com/pm4ml/connection-manager-api/compare/v2.9.2...v2.9.3) (2025-05-08)
|
|
453
|
+
|
|
454
|
+
|
|
455
|
+
### Chore
|
|
456
|
+
|
|
457
|
+
* removed label "component" from errorCounter ([97ae9ac](https://github.com/pm4ml/connection-manager-api/commit/97ae9ace761f1f4dce97c0ca89dba3aa5cca6c30))
|
|
458
|
+
|
|
459
|
+
### [2.9.2](https://github.com/pm4ml/connection-manager-api/compare/v2.9.1...v2.9.2) (2025-05-08)
|
|
460
|
+
|
|
461
|
+
|
|
462
|
+
### Chore
|
|
463
|
+
|
|
464
|
+
* added possibility to disable dfsp-watcher ([08d6166](https://github.com/pm4ml/connection-manager-api/commit/08d6166f4b55080c526b78019da618b8872c135a))
|
|
465
|
+
|
|
466
|
+
### [2.9.1](https://github.com/pm4ml/connection-manager-api/compare/v2.9.0...v2.9.1) (2025-05-08)
|
|
467
|
+
|
|
468
|
+
|
|
469
|
+
### Bug Fixes
|
|
470
|
+
|
|
471
|
+
* k8s is not defined error ([5e2a2e3](https://github.com/pm4ml/connection-manager-api/commit/5e2a2e32b9861aed728c8090503041b22585ae19))
|
|
472
|
+
|
|
473
|
+
## [2.9.0](https://github.com/pm4ml/connection-manager-api/compare/v2.8.4...v2.9.0) (2025-05-08)
|
|
474
|
+
|
|
475
|
+
|
|
476
|
+
### Features
|
|
477
|
+
|
|
478
|
+
* **csi-1443:** added POST /states endpoint ([#104](https://github.com/pm4ml/connection-manager-api/issues/104)) ([6aecbce](https://github.com/pm4ml/connection-manager-api/commit/6aecbced01d715773c48196df170c93bbf3549fa))
|
|
479
|
+
|
|
480
|
+
### [2.8.4](https://github.com/modusbox/connection-manager-api/compare/v2.8.3...v2.8.4) (2025-05-06)
|
|
481
|
+
|
|
482
|
+
|
|
483
|
+
### Chore
|
|
484
|
+
|
|
485
|
+
* remove image scan override ([#103](https://github.com/modusbox/connection-manager-api/issues/103)) ([d7004fa](https://github.com/modusbox/connection-manager-api/commit/d7004fae63743fea23f80767c143ac390106eed7))
|
|
486
|
+
|
|
487
|
+
### [2.8.3](https://github.com/modusbox/connection-manager-api/compare/v2.8.2...v2.8.3) (2025-05-05)
|
|
488
|
+
|
|
489
|
+
|
|
490
|
+
### Chore
|
|
491
|
+
|
|
492
|
+
* try to fix vulnerabilities ([#102](https://github.com/modusbox/connection-manager-api/issues/102)) ([b2f3228](https://github.com/modusbox/connection-manager-api/commit/b2f3228cda8e940b49d27bd058f8b54d81f459ab))
|
|
493
|
+
|
|
494
|
+
### [2.8.2](https://github.com/modusbox/connection-manager-api/compare/v2.8.1...v2.8.2) (2025-05-05)
|
|
495
|
+
|
|
496
|
+
|
|
497
|
+
### Chore
|
|
498
|
+
|
|
499
|
+
* remove test folder ([#101](https://github.com/modusbox/connection-manager-api/issues/101)) ([90dea1e](https://github.com/modusbox/connection-manager-api/commit/90dea1e92ea6f77bc067015ceddad943459a8e40))
|
|
500
|
+
|
|
501
|
+
### [2.8.1](https://github.com/modusbox/connection-manager-api/compare/v2.8.0...v2.8.1) (2025-05-03)
|
|
502
|
+
|
|
503
|
+
|
|
504
|
+
### Chore
|
|
505
|
+
|
|
506
|
+
* update docker file ([#100](https://github.com/modusbox/connection-manager-api/issues/100)) ([244073d](https://github.com/modusbox/connection-manager-api/commit/244073d85b2e8ed10c4c55f3d8435ae63b5d6a38))
|
|
507
|
+
|
|
508
|
+
## [2.8.0](https://github.com/modusbox/connection-manager-api/compare/v2.4.2...v2.8.0) (2025-05-02)
|
|
509
|
+
|
|
510
|
+
|
|
511
|
+
### Features
|
|
512
|
+
|
|
513
|
+
* **csi-1413:** added DfspWatcher ([#97](https://github.com/modusbox/connection-manager-api/issues/97)) ([4d55cf3](https://github.com/modusbox/connection-manager-api/commit/4d55cf3923772ad56dedfcf3269ef034ddca7038))
|
|
514
|
+
* implement 2FA with Keycloak and DFSP user invitation emails ([0fb4250](https://github.com/modusbox/connection-manager-api/commit/0fb4250b0ecfeb6227b56f965e910f6db1ff49c3))
|
|
515
|
+
* integrate IME-519 adoption features ([#94](https://github.com/modusbox/connection-manager-api/issues/94)) ([3e83010](https://github.com/modusbox/connection-manager-api/commit/3e830101ca8329554a94ac3e6f77fe19282b5337))
|
|
516
|
+
* integrate keycloak for DFSP lifecycle ([d3913f8](https://github.com/modusbox/connection-manager-api/commit/d3913f815f0d4a216f109345f030703a35d7baa0))
|
|
517
|
+
|
|
518
|
+
|
|
519
|
+
### Bug Fixes
|
|
520
|
+
|
|
521
|
+
* envs ([00e5c57](https://github.com/modusbox/connection-manager-api/commit/00e5c57e5302d81b12b80556e69e9f643a2670da))
|
|
522
|
+
|
|
523
|
+
|
|
524
|
+
### Chore
|
|
525
|
+
|
|
526
|
+
* bump package-lock.json ([090639e](https://github.com/modusbox/connection-manager-api/commit/090639eef85b6f3f0546cb54aede7cdaa8f884b4))
|
|
527
|
+
* bump to unblock ci ([#99](https://github.com/modusbox/connection-manager-api/issues/99)) ([00f3e28](https://github.com/modusbox/connection-manager-api/commit/00f3e28c1fb58765abd1cc6f58865ad845fa784d))
|
|
528
|
+
* cleanup ([acd4f15](https://github.com/modusbox/connection-manager-api/commit/acd4f155334e57060c272396fc4ad936d9442b50))
|
|
529
|
+
* version bump ([5e6e383](https://github.com/modusbox/connection-manager-api/commit/5e6e3839f70648a34b4d946af5b37d305b5a5abf))
|
|
530
|
+
|
|
531
|
+
## [2.7.0](https://github.com/modusbox/connection-manager-api/compare/v2.4.2...v2.7.0) (2025-05-02)
|
|
532
|
+
|
|
533
|
+
|
|
534
|
+
### Features
|
|
535
|
+
|
|
536
|
+
* **csi-1413:** added DfspWatcher ([#97](https://github.com/modusbox/connection-manager-api/issues/97)) ([4d55cf3](https://github.com/modusbox/connection-manager-api/commit/4d55cf3923772ad56dedfcf3269ef034ddca7038))
|
|
537
|
+
* implement 2FA with Keycloak and DFSP user invitation emails ([0fb4250](https://github.com/modusbox/connection-manager-api/commit/0fb4250b0ecfeb6227b56f965e910f6db1ff49c3))
|
|
538
|
+
* integrate IME-519 adoption features ([#94](https://github.com/modusbox/connection-manager-api/issues/94)) ([3e83010](https://github.com/modusbox/connection-manager-api/commit/3e830101ca8329554a94ac3e6f77fe19282b5337))
|
|
539
|
+
* integrate keycloak for DFSP lifecycle ([d3913f8](https://github.com/modusbox/connection-manager-api/commit/d3913f815f0d4a216f109345f030703a35d7baa0))
|
|
540
|
+
|
|
541
|
+
|
|
542
|
+
### Bug Fixes
|
|
543
|
+
|
|
544
|
+
* envs ([00e5c57](https://github.com/modusbox/connection-manager-api/commit/00e5c57e5302d81b12b80556e69e9f643a2670da))
|
|
545
|
+
|
|
546
|
+
|
|
547
|
+
### Chore
|
|
548
|
+
|
|
549
|
+
* bump package-lock.json ([090639e](https://github.com/modusbox/connection-manager-api/commit/090639eef85b6f3f0546cb54aede7cdaa8f884b4))
|
|
550
|
+
* cleanup ([acd4f15](https://github.com/modusbox/connection-manager-api/commit/acd4f155334e57060c272396fc4ad936d9442b50))
|
|
551
|
+
* version bump ([5e6e383](https://github.com/modusbox/connection-manager-api/commit/5e6e3839f70648a34b4d946af5b37d305b5a5abf))
|
|
552
|
+
|
|
553
|
+
### [2.3.1](https://github.com/modusbox/connection-manager-api/compare/v2.3.0...v2.3.1) (2024-08-15)
|
|
554
|
+
|
|
555
|
+
## [2.3.0](https://github.com/modusbox/connection-manager-api/compare/v2.1.2...v2.3.0) (2024-08-15)
|
|
556
|
+
|
|
557
|
+
|
|
558
|
+
### Features
|
|
559
|
+
|
|
560
|
+
* **iprod-416:** added int test for hub jws-certs ([e28360b](https://github.com/modusbox/connection-manager-api/commit/e28360b4db77c305f249ead64fbcbf92ddbfcfe2))
|
|
561
|
+
* **iprod-416:** added SWITCH_ID=switch to .env for testing ([aa3cb3f](https://github.com/modusbox/connection-manager-api/commit/aa3cb3f8a69c5995ab5caa193fc346c7734efdfc))
|
|
562
|
+
* **iprod-416:** fixed new test-int ([e8cb1c7](https://github.com/modusbox/connection-manager-api/commit/e8cb1c7b38f1829aeeb7a1432da982274f419be7))
|
|
563
|
+
* **iprod-416:** fixed new test-int ([95f11aa](https://github.com/modusbox/connection-manager-api/commit/95f11aa7108cbb97ec8b7367c017c2578680799d))
|
|
564
|
+
* **iprod-416:** updated deps ([796f062](https://github.com/modusbox/connection-manager-api/commit/796f0623127930c333233a3490e96f5d46208502))
|
|
565
|
+
* **iprod-416:** updated from main ([7df568f](https://github.com/modusbox/connection-manager-api/commit/7df568f8746f04cdda5c625e67f43472a7a4e504))
|
|
566
|
+
|
|
567
|
+
|
|
568
|
+
### Chore
|
|
569
|
+
|
|
570
|
+
* updated deps ([4ecaa00](https://github.com/modusbox/connection-manager-api/commit/4ecaa00fefa1f2cbebfdc740d1158ccfb6a49069))
|
|
571
|
+
* updated from main ([c582ea6](https://github.com/modusbox/connection-manager-api/commit/c582ea6c39bc4d8e35698495c721e7feedf9dc21))
|
|
572
|
+
|
|
573
|
+
### [1.9.8-snapshot.0](https://github.com/modusbox/connection-manager-api/compare/v1.9.7-snapshot.5...v1.9.8-snapshot.0) (2024-02-27)
|
|
574
|
+
|
|
575
|
+
|
|
576
|
+
### Features
|
|
577
|
+
|
|
578
|
+
* **iprod-416:** removed unused code ([e0d4f55](https://github.com/modusbox/connection-manager-api/commit/e0d4f55c447292a44fbf3453424e8b28835f0e4b))
|
|
579
|
+
* **iprod-416:** updated deps ([e6cb537](https://github.com/modusbox/connection-manager-api/commit/e6cb537135f04d8f8fdc0175a374de51691e60ff))
|
|
580
|
+
|
|
581
|
+
### [1.9.6](https://github.com/modusbox/connection-manager-api/compare/v1.9.5...v1.9.6) (2022-06-17)
|
|
582
|
+
|
|
583
|
+
|
|
584
|
+
### Chore
|
|
585
|
+
|
|
586
|
+
* Add repository info ([35db681](https://github.com/modusbox/connection-manager-api/commit/35db6817db35087157b2dbe6f67d1af6b84512bf))
|
|
587
|
+
* add repository info and remove dist dir ([52d2bf5](https://github.com/modusbox/connection-manager-api/commit/52d2bf5374085605c31f0d744d86eedd8d62268a))
|
|
588
|
+
* Remove dist dir from files ([d092626](https://github.com/modusbox/connection-manager-api/commit/d09262696200c89a38a6ad78eb1d4cdc10373a03))
|
|
589
|
+
|
|
590
|
+
### [1.9.5](https://github.com/modusbox/connection-manager-api/compare/v1.9.4...v1.9.5) (2022-06-17)
|
|
591
|
+
|
|
592
|
+
|
|
593
|
+
### Chore
|
|
594
|
+
|
|
595
|
+
* forget to remove some lib references from ci config ([9ac1823](https://github.com/modusbox/connection-manager-api/commit/9ac1823a94dc43ba5b9e33b5c4a273ffd02c4009))
|
|
596
|
+
|
|
597
|
+
### [1.9.4](https://github.com/modusbox/connection-manager-api/compare/v1.9.3...v1.9.4) (2022-06-17)
|
|
598
|
+
|
|
599
|
+
|
|
600
|
+
### Chore
|
|
601
|
+
|
|
602
|
+
* fix ci release flow to correctly report notifications ([a57c2d6](https://github.com/modusbox/connection-manager-api/commit/a57c2d6374d7dcb6c5fc4186b4ad27177d5eedfa))
|
|
603
|
+
|
|
604
|
+
### [1.9.3](https://github.com/modusbox/connection-manager-api/compare/v1.9.2...v1.9.3) (2022-06-17)
|
|
605
|
+
|
|
606
|
+
|
|
607
|
+
### Chore
|
|
608
|
+
|
|
609
|
+
* fixed typo in readme ([418e068](https://github.com/modusbox/connection-manager-api/commit/418e0681d7ad4b40d014741860f5b0fa377d3783))
|
|
610
|
+
|
|
611
|
+
### [1.9.2](https://github.com/modusbox/connection-manager-api/compare/v1.9.1...v1.9.2) (2022-06-16)
|
|
612
|
+
|
|
613
|
+
|
|
614
|
+
### Chore
|
|
615
|
+
|
|
616
|
+
* align gh workflows ([0dacc37](https://github.com/modusbox/connection-manager-api/commit/0dacc3735ede67a086eca1b321ac7edbd6a802b6))
|
|
617
|
+
* align test scripts ([f102d45](https://github.com/modusbox/connection-manager-api/commit/f102d45fde8ce29b48f15487917dc4803ba72992))
|
|
618
|
+
* fix lint issues ([82bcbbc](https://github.com/modusbox/connection-manager-api/commit/82bcbbc25262e2bc22ce0ee0abc4b9f46b918e61))
|
|
619
|
+
* fixes for int tests ([b76ab8f](https://github.com/modusbox/connection-manager-api/commit/b76ab8fec6486ac0a41e7d79fcdd04da7e5b4b82))
|
|
620
|
+
* postpone audit check ([c89637c](https://github.com/modusbox/connection-manager-api/commit/c89637ca5c30d0c3589d06dd585ed6badb4042c5))
|
|
621
|
+
* update audit check script ([2c4832e](https://github.com/modusbox/connection-manager-api/commit/2c4832e88b8f86f92e236bcce6147656ac48327d))
|
|
622
|
+
* update audit resolve ([53f3f05](https://github.com/modusbox/connection-manager-api/commit/53f3f05773e0b51a1c7ee44a625aa11e976522f2))
|
|
623
|
+
* update audit resolve script ([e843599](https://github.com/modusbox/connection-manager-api/commit/e84359998c7fff6c1c6b654a7d2650370e5caeb6))
|
|
624
|
+
* update audit resolve script ([03cc745](https://github.com/modusbox/connection-manager-api/commit/03cc745296c4fd236a409d16fd5e572e22cf1066))
|
|
625
|
+
* update audit resolve script ([9508c3b](https://github.com/modusbox/connection-manager-api/commit/9508c3b9adbcee7d863bc58cc5e5607e12c8967d))
|
|
626
|
+
* update audit resolve script and add dep ([1b6903c](https://github.com/modusbox/connection-manager-api/commit/1b6903c860da6d728f90ba2842c504f4635b6fee))
|
|
627
|
+
* update dependencies ([2fb7a40](https://github.com/modusbox/connection-manager-api/commit/2fb7a40abca89124b584cbd25a535c4baa8a2a9a))
|
|
628
|
+
* update dependencies ([79311ff](https://github.com/modusbox/connection-manager-api/commit/79311ffe10da02efe162f6ce0aaed6c66ae4528b))
|
|
629
|
+
* Update README to reference new GH Workflow name ([02f8c52](https://github.com/modusbox/connection-manager-api/commit/02f8c52232864ce20a6329fdfb074f9cd93dd1ce))
|
|
630
|
+
* Update README to reference new GH Workflow name ([45434b8](https://github.com/modusbox/connection-manager-api/commit/45434b8a2aa35497ce9b3185d84321f15a258fa2))
|
|
631
|
+
|
|
632
|
+
## [1.5.3] - 2019-09-11
|
|
633
|
+
|
|
634
|
+
### Changed
|
|
635
|
+
- MBXCONNMAN-72 Reset password
|
|
636
|
+
|
|
637
|
+
## [1.5.2] - 2019-09-09
|
|
638
|
+
|
|
639
|
+
### Changed
|
|
640
|
+
- MBXCONNMAN-168 Rename PKI to Connection Manager API and remove private/internal code before going to GitHub public
|
|
641
|
+
- MBXCONNMAN-177 Log git commit on api server start
|
|
642
|
+
- MBXCONNMAN-236 Copyright and Apache 2 license headers on all files
|
|
643
|
+
- MBXCONNMAN-252 Publish Modusintegration/cfssl on public repository
|
|
644
|
+
- MBXCONNMAN-254 Refactor Knex
|
|
645
|
+
|
|
646
|
+
## [1.5.1] - 2019-08-20
|
|
647
|
+
|
|
648
|
+
### Changed
|
|
649
|
+
- Update oauth2.md
|
|
650
|
+
- adding 2FA env variables to README
|
|
651
|
+
|
|
652
|
+
### Fixed
|
|
653
|
+
- BOX-222 fixing bug intermediate chain
|
package/LICENSE
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# LICENSE
|
|
2
|
+
|
|
3
|
+
Copyright © 2020-2025 Mojaloop Foundation
|
|
4
|
+
|
|
5
|
+
The Mojaloop files are made available by the Mojaloop Foundation under the Apache License, Version 2.0
|
|
6
|
+
(the "License") and you may not use these files except in compliance with the [License](http://www.apache.org/licenses/LICENSE-2.0).
|
|
7
|
+
|
|
8
|
+
You may obtain a copy of the License at [http://www.apache.org/licenses/LICENSE-2.0](http://www.apache.org/licenses/LICENSE-2.0)
|
|
9
|
+
|
|
10
|
+
Unless required by applicable law or agreed to in writing, the Mojaloop files are distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the [License](http://www.apache.org/licenses/LICENSE-2.0).
|
package/README.md
ADDED
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
# Connection Manager API
|
|
2
|
+
|
|
3
|
+
[](https://github.com/modusbox/connection-manager-api/actions/workflows/releaseWorkflow.yml)
|
|
4
|
+
|
|
5
|
+
Connection Manager API is a component of the Mojaloop ecosystem that allows an administrator to manage the network configuration and PKI information for the Hub and a set of DFSPs.
|
|
6
|
+
|
|
7
|
+
It provides a REST API, described using a [Swagger/OpenAPI document](./src/api/swagger.yaml).
|
|
8
|
+
|
|
9
|
+
The current version uses both [cfssl](https://github.com/modusintegration/cfssl) and [openssl](https://www.openssl.org/) as the PKI engines which issue and process CSRs and Certificates. The specific version of cfssl that MCM depends on is kept in the [Dockerfile](./Dockerfile) as the value of the `branch` argument ( as in `--branch=v1.3.4` ) and can also be specified as an environment variable ( see `CFSSL_VERSION` below ).
|
|
10
|
+
|
|
11
|
+
## Authentication
|
|
12
|
+
|
|
13
|
+
The Connection Manager API supports two types of authentication methods for different client types:
|
|
14
|
+
|
|
15
|
+
1. **Browser Clients (SPA)**: Cookie-based authentication with MySQL session store
|
|
16
|
+
2. **Machine Clients**: JWT/Bearer token authentication via Keycloak
|
|
17
|
+
|
|
18
|
+
Authentication is implemented using OpenID Connect (OIDC) with PKCE for enhanced security.
|
|
19
|
+
|
|
20
|
+
See [Authentication Documentation](docs/authentication.md) for details.
|
|
21
|
+
|
|
22
|
+
### OpenID Connect Authentication
|
|
23
|
+
|
|
24
|
+
The system uses OpenID Connect authentication, which is a provider-agnostic approach for authentication and authorization. Configure the following environment variables to enable OpenID Connect:
|
|
25
|
+
|
|
26
|
+
|Environment variable|Description|Default Value
|
|
27
|
+
:---|:---|:---
|
|
28
|
+
|OPENID_ENABLED|Enable OpenID Connect authentication|false
|
|
29
|
+
|OPENID_DISCOVERY_URL|OpenID Connect discovery URL|
|
|
30
|
+
|OPENID_CLIENT_ID|Client ID for OpenID authentication|
|
|
31
|
+
|OPENID_CLIENT_SECRET|Client secret for OpenID authentication|
|
|
32
|
+
|OPENID_REDIRECT_URI|Redirect URI for OpenID authentication|http://localhost:3001/api/auth/callback
|
|
33
|
+
|OPENID_JWT_COOKIE_NAME|Cookie name for storing the JWT token|MCM-API_ACCESS_TOKEN
|
|
34
|
+
|OPENID_EVERYONE_ROLE|Role assigned to all authenticated users|everyone
|
|
35
|
+
|OPENID_MTA_ROLE|DFSP Admin role mapping for OpenID|mta
|
|
36
|
+
|OPENID_PTA_ROLE|HUB Admin role mapping for OpenID|pta
|
|
37
|
+
|
|
38
|
+
#### Password Reset
|
|
39
|
+
|
|
40
|
+
For OpenID Connect authentication, password reset functionality is handled by the identity provider's own interface rather than through the Connection Manager API. This approach ensures compatibility with any standards-compliant OpenID provider.
|
|
41
|
+
|
|
42
|
+
## Running the server locally
|
|
43
|
+
|
|
44
|
+
To run the server with all the defaults and no security, the simplest way is to run:
|
|
45
|
+
|
|
46
|
+
```bash
|
|
47
|
+
P12_PASS_PHRASE="choose your own password" npm start
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
The default config requires a `mysql` db running on the default port.
|
|
51
|
+
|
|
52
|
+
Once running, you can access the [Swagger UI interface](http://localhost:3001/docs)
|
|
53
|
+
|
|
54
|
+
## Running the server + db + web UI locally while developing
|
|
55
|
+
|
|
56
|
+
The API server requires a mysql db. There's also a Web UI [https://github.com/modusbox/connection-manager-ui](https://github.com/modusbox/connection-manager-ui).
|
|
57
|
+
|
|
58
|
+
To run them together, you can use the following setup:
|
|
59
|
+
|
|
60
|
+
- Clone this repo and the Web UI repo at the same level
|
|
61
|
+
- Use the `docker-compose` config in this repo to run a mysql DB, the WebUI and the API server
|
|
62
|
+
|
|
63
|
+
```bash
|
|
64
|
+
mkdir modusbox
|
|
65
|
+
cd modusbox
|
|
66
|
+
git clone https://github.com/modusbox/connection-manager-ui
|
|
67
|
+
git clone https://github.com/modusbox/connection-manager-api
|
|
68
|
+
cd connection-manager-api/docker
|
|
69
|
+
docker-compose build
|
|
70
|
+
docker-compose up
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
Once the docker containers are confirmed to be stable and up, you will need to create the initial HUB environment. From a new terminal
|
|
74
|
+
session, execute the following;
|
|
75
|
+
|
|
76
|
+
```bash
|
|
77
|
+
curl -X POST "http://localhost:3001/api/environments" -H "accept: application/json" -H "Content-Type: application/json" -d "{ \"name\": \"DEV\", \"defaultDN\": { \"CN\": \"tes1.centralhub.modusbox.live\", \"O\": \"Modusbox\", \"OU\": \"MCM\" }}"
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
The UI 'localhost' can now be opened in your local browser.
|
|
81
|
+
|
|
82
|
+
If you want to start the app with auth enabled:
|
|
83
|
+
|
|
84
|
+
1) create a local copy of `docker-compose-auth.yml` as in:
|
|
85
|
+
|
|
86
|
+
`cp docker-compose-auth.yml docker-compose-auth.local.yml`
|
|
87
|
+
|
|
88
|
+
( `docker-compose-auth.local.yml` is git-ignored )
|
|
89
|
+
|
|
90
|
+
1) Edit `docker-compose-auth.local.yml` and enter the security details.
|
|
91
|
+
|
|
92
|
+
1) Run the bundle with:
|
|
93
|
+
|
|
94
|
+
`docker-compose build && docker-compose -f docker-compose.yml -f docker-compose-auth.local.yml up`
|
|
95
|
+
|
|
96
|
+
## Configuration
|
|
97
|
+
|
|
98
|
+
There's a [Constants.js file](./src/constants/Constants.js) that pulls the values from the environment or uses defaults if not defined.
|
|
99
|
+
|
|
100
|
+
Variables:
|
|
101
|
+
|
|
102
|
+
|Environment variable|Description|Default Value
|
|
103
|
+
:---|:---|:---
|
|
104
|
+
| **MCM API server configuration**
|
|
105
|
+
|PORT|mcm API HTTP port|3001
|
|
106
|
+
| **Authentication features**
|
|
107
|
+
|OPENID_ENABLED|Enables support for OAuth2. 'TRUE' to enable| (disabled)
|
|
108
|
+
|OPENID_ENABLE_2FA|Enables two-factor authentication 'TRUE' to enable| (disabled)
|
|
109
|
+
| **Session configuration**
|
|
110
|
+
|SESSION_STORE_SECRET|Secret for encrypting session data|
|
|
111
|
+
|SESSION_MAX_AGE|Session timeout in milliseconds|86400000 (24 hours)
|
|
112
|
+
|SESSION_SAME_SITE|SameSite cookie setting|'strict'
|
|
113
|
+
|SESSION_SECURE|Whether session cookies require HTTPS|true in production
|
|
114
|
+
| **OAuth2 roles**
|
|
115
|
+
|MTA_ROLE|DFSP Admin role|'Application/MTA'
|
|
116
|
+
|PTA_ROLE|HUB Admin Role|'Application/PTA'
|
|
117
|
+
|EVERYONE_ROLE|Authenticated users role|'Internal/everyone'
|
|
118
|
+
| **Database configuration**
|
|
119
|
+
|DATABASE_HOST|mysql host|localhost
|
|
120
|
+
|DATABASE_PORT|mysql port|3306
|
|
121
|
+
|DATABASE_USER|mysql user|mcm
|
|
122
|
+
|DATABASE_PASSWORD|mysql password|mcm
|
|
123
|
+
|DATABASE_SCHEMA|mysql schema|mcm
|
|
124
|
+
|DATABASE_SSL_ENABLED|Enable SSL for MySQL connection|false
|
|
125
|
+
|DATABASE_SSL_VERIFY|Verify server certificate when using SSL|false
|
|
126
|
+
|DATABASE_SSL_CA|CA certificate string for MySQL SSL|''
|
|
127
|
+
|DB_RETRIES|Times the initial connection to the DB will be retried|10,
|
|
128
|
+
|DB_CONNECTION_RETRY_WAIT_MILLISECONDS|Pause between retries|5000,
|
|
129
|
+
|RUN_MIGRATIONS|If true, run db schema migration at startup. Can always be true as the schema creation is idempotent|true,
|
|
130
|
+
|CURRENCY_CODES|Path to file containing all the supported currency codes|'./data/currencyCodes.json',
|
|
131
|
+
|DATA_CONFIGURATION_FILE|Initial data configuration path. See specific doc|'./data/sampleConfiguration.json'
|
|
132
|
+
| **MCM Internal Certificate Authority configuration**
|
|
133
|
+
|P12_PASS_PHRASE|Pass phrase used to save the internal CA Key in the DB.|
|
|
134
|
+
| **Support for self-signed certificates on OAuth Server and other TLS client connections**
|
|
135
|
+
|EXTRA_CERTIFICATE_CHAIN_FILE_NAME|Extra trusted server certificate chain file name ( PEM-encoded, as explained in https://nodejs.org/api/tls.html#tls_tls_createsecurecontext_options )|
|
|
136
|
+
|EXTRA_ROOT_CERT_FILE_NAME|Extra trusted server root certificate file name|
|
|
137
|
+
| **CFSSL**
|
|
138
|
+
|CFSSL_VERSION|Expected CFSSL version to use. Should be updated to keep in sync with the cfssl development|1.3.4
|
|
139
|
+
|CFSSL_COMMAND_PATH|cfssl command; it should be just cfssl if it's in the PATH or the full path|cfssl
|
|
140
|
+
| **Keycloak Integration**
|
|
141
|
+
|KEYCLOAK_ENABLED|Enable Keycloak integration for DFSP account creation|false
|
|
142
|
+
|KEYCLOAK_BASE_URL|Base URL of the Keycloak server|http://localhost:8080
|
|
143
|
+
|KEYCLOAK_DISCOVERY_URL|OpenID Connect discovery URL for Keycloak|http://localhost:8080/realms/dfsps/.well-known/openid-configuration
|
|
144
|
+
|KEYCLOAK_ADMIN_CLIENT_ID|Client ID for Keycloak admin operations|connection-manager-client
|
|
145
|
+
|KEYCLOAK_ADMIN_CLIENT_SECRET|Client secret for Keycloak admin operations|
|
|
146
|
+
|KEYCLOAK_DFSPS_REALM|Keycloak realm for DFSP accounts|dfsps
|
|
147
|
+
|KEYCLOAK_AUTO_CREATE_ACCOUNTS|Automatically create Keycloak accounts when DFSPs are created|true
|
|
148
|
+
|
|
149
|
+
## Testing
|
|
150
|
+
|
|
151
|
+
- Unit testing:
|
|
152
|
+
- run `npm run backend:start` as a pre-requisite to `npm test`
|
|
153
|
+
- run `npm test`. The tests are implemented using `jest`. If you need some test certificates, see the [test resources readme](./test/resources/README.md)
|
|
154
|
+
- Smoke testing ( `zsh` script ): run the [cmd-line-tester.sh](./scripts/cmd-line-tester.sh) script from a tmp directory
|
|
155
|
+
- swagger: see "running the server" below
|
|
156
|
+
|
|
157
|
+
### Functional Tests
|
|
158
|
+
|
|
159
|
+
Refer to [README](./test/functional-tests/README.md).
|
|
160
|
+
|
|
161
|
+
## Style
|
|
162
|
+
|
|
163
|
+
[](https://github.com/Flet/semistandard)
|
|
164
|
+
( + dangling commas on Objects )
|
|
165
|
+
|
|
166
|
+
## Building a docker image
|
|
167
|
+
|
|
168
|
+
The server includes a [Dockerfile](./Dockerfile).
|
|
169
|
+
|
|
170
|
+
There's a set of scripts to build the image and tag it for a local minikube or other environments. Take a look at
|
|
171
|
+
[./docker-build.sh](./docker-build.sh)
|
package/package.json
ADDED
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@mojaloop/connection-manager-api",
|
|
3
|
+
"version": "3.1.2-snapshot.2",
|
|
4
|
+
"description": "Mojaloop Connection Manager API",
|
|
5
|
+
"license": "Apache-2.0",
|
|
6
|
+
"author": "ModusBox",
|
|
7
|
+
"contributors": [
|
|
8
|
+
"@Yevhen Kyriukha <yevhen.kyriukha@modusbox.com>",
|
|
9
|
+
"Miguel de Barros <miguel.debarros@modusbox.com>",
|
|
10
|
+
"Juan Correa <juan.correa@modusbox.com>"
|
|
11
|
+
],
|
|
12
|
+
"main": "src/index.js",
|
|
13
|
+
"files": [
|
|
14
|
+
"README.md",
|
|
15
|
+
"LICENSE",
|
|
16
|
+
"CHANGELOG.md"
|
|
17
|
+
],
|
|
18
|
+
"scripts": {
|
|
19
|
+
"prepare": "husky || true",
|
|
20
|
+
"test": "TEST=true TEST_INT=true SWITCH_ID=switch node --experimental-vm-modules node_modules/.bin/jest --forceExit --runInBand",
|
|
21
|
+
"test:int": "echo 'WARNING: Run \"npm run backend:start\" before executing...\n' && TEST=true TEST_INT=true SWITCH_ID=switch node --experimental-vm-modules node_modules/.bin/jest --forceExit --runInBand --testMatch '**/test/int/**/*.test.js'",
|
|
22
|
+
"test-self-signed-server": "TEST_START_SELF_SIGNED_SERVER=true jest --testMatch '**/test/int/**/*self.test.js'",
|
|
23
|
+
"test:unit": "jest --testMatch '**/test/unit/**/*.test.js'",
|
|
24
|
+
"test:xunit": "npm run test:unit",
|
|
25
|
+
"test-with-coverage": "./docker compose up -d --wait vault-dev && nyc --reporter=text jest --timeout 20000 --colors -exit ; docker compose down -v",
|
|
26
|
+
"test:coverage": "NODE_ENV=test DOTENV_CONFIG_PATH=.env.test nyc --clean jest --require dotenv/config --testMatch '**/test/**/*.test.js' --timeout 20000",
|
|
27
|
+
"test:coverage-check": "true",
|
|
28
|
+
"test:integration": "./test/scripts/test-integration.sh",
|
|
29
|
+
"test:functional": "./scripts/run-functional-tests.sh",
|
|
30
|
+
"precoverage": "rm -rf .nyc_output coverage",
|
|
31
|
+
"lint": "npx eslint ./src ./test/int",
|
|
32
|
+
"lint:fix": "npm run lint -- --fix",
|
|
33
|
+
"audit:check": "npx audit-ci --config ./audit-ci.jsonc",
|
|
34
|
+
"audit:fix": "npm audit fix",
|
|
35
|
+
"clean": "rm -rf ./dist",
|
|
36
|
+
"dep:check": "npx ncu -e 2",
|
|
37
|
+
"dep:update": "npx ncu -u",
|
|
38
|
+
"release": "npx standard-version --no-verify --releaseCommitMessageFormat 'ci(release): {{currentTag}} [skip ci]'",
|
|
39
|
+
"snapshot": "npx standard-version --no-verify --skip.changelog --prerelease snapshot --releaseCommitMessageFormat 'ci(snapshot): {{currentTag}}'",
|
|
40
|
+
"start": "node src/index.js",
|
|
41
|
+
"start:dev": "node -r dotenv/config src/index.js",
|
|
42
|
+
"start-with-oauth-enabled": "source oauth.env && node src/index.js",
|
|
43
|
+
"migrate": "npm run knex-cli migrate:latest",
|
|
44
|
+
"seed": "npm run knex-cli seed:run",
|
|
45
|
+
"migrate-and-seed": "npm run migrate && npm run seed",
|
|
46
|
+
"migrate:rollback": "npm run knex-cli migrate:rollback",
|
|
47
|
+
"migrate:new": "npm run knex-cli migrate:make",
|
|
48
|
+
"knex-cli": "DOTENV_CONFIG_PATH=$(pwd)/.env npx knex --knexfile src/knexfile.js ",
|
|
49
|
+
"backend:start": "docker compose --profile functional up -d --wait",
|
|
50
|
+
"backend:stop": "docker compose down -v",
|
|
51
|
+
"backend:restart": "npm run backend:stop && npm run backend:start"
|
|
52
|
+
},
|
|
53
|
+
"keywords": [
|
|
54
|
+
"swagger"
|
|
55
|
+
],
|
|
56
|
+
"overrides": {
|
|
57
|
+
"cookie": "1.0.2",
|
|
58
|
+
"multer": "^2.0.0",
|
|
59
|
+
"nanoid": "5.1.5",
|
|
60
|
+
"ejs": "3.1.10",
|
|
61
|
+
"sanitize-html": "2.12.1",
|
|
62
|
+
"postcss": {
|
|
63
|
+
"nanoid": "5.1.5"
|
|
64
|
+
},
|
|
65
|
+
"shins": {
|
|
66
|
+
"ejs": "3.1.10",
|
|
67
|
+
"sanitize-html": "2.12.1",
|
|
68
|
+
"jsonpointer": "5.0.0",
|
|
69
|
+
"markdown-it": "12.3.2",
|
|
70
|
+
"postcss": "8.4.31"
|
|
71
|
+
},
|
|
72
|
+
"widdershins": {
|
|
73
|
+
"markdown-it": "12.3.2",
|
|
74
|
+
"swagger2openapi": "7.0.8"
|
|
75
|
+
},
|
|
76
|
+
"markdown-it": "12.3.2",
|
|
77
|
+
"trim": "0.0.3",
|
|
78
|
+
"cross-spawn": "7.0.6",
|
|
79
|
+
"yargs-parser": "21.1.1",
|
|
80
|
+
"tar-fs": ">=3.1.1",
|
|
81
|
+
"tough-cookie": ">=4.1.3"
|
|
82
|
+
},
|
|
83
|
+
"dependencies": {
|
|
84
|
+
"@hapi/hapi": "21.4.4",
|
|
85
|
+
"@keycloak/keycloak-admin-client": "^26.4.5",
|
|
86
|
+
"@kubernetes/client-node": "^1.4.0",
|
|
87
|
+
"@mojaloop/central-services-logger": "11.10.1",
|
|
88
|
+
"@mojaloop/central-services-metrics": "12.8.1",
|
|
89
|
+
"@mojaloop/central-services-shared": "18.34.3",
|
|
90
|
+
"@ory/keto-client": "^25.4.0",
|
|
91
|
+
"async-exit-hook": "^2.0.1",
|
|
92
|
+
"async-retry": "^1.3.3",
|
|
93
|
+
"axios": "1.13.2",
|
|
94
|
+
"body-parser": "^2.2.0",
|
|
95
|
+
"connect": "^3.7.0",
|
|
96
|
+
"convict": "6.2.4",
|
|
97
|
+
"cookies": "^0.9.1",
|
|
98
|
+
"cors": "^2.8.5",
|
|
99
|
+
"dotenv": "^17.2.3",
|
|
100
|
+
"env-var": "^7.5.0",
|
|
101
|
+
"express-mysql-session": "^3.0.3",
|
|
102
|
+
"express-session": "^1.18.2",
|
|
103
|
+
"express-winston": "^4.2.0",
|
|
104
|
+
"form-data": "^4.0.5",
|
|
105
|
+
"joi": "^18.0.1",
|
|
106
|
+
"js-yaml": "^4.1.1",
|
|
107
|
+
"jsonwebtoken": "^9.0.2",
|
|
108
|
+
"knex": "^3.1.0",
|
|
109
|
+
"moment": "^2.30.1",
|
|
110
|
+
"mysql2": "^3.15.3",
|
|
111
|
+
"node-forge": "^1.3.1",
|
|
112
|
+
"node-vault": "^0.10.9",
|
|
113
|
+
"oas3-tools": "^2.2.3",
|
|
114
|
+
"openid-client": "^6.8.1",
|
|
115
|
+
"passport": "^0.7.0",
|
|
116
|
+
"passport-jwt": "^4.0.1",
|
|
117
|
+
"qs": "^6.14.0",
|
|
118
|
+
"request": "^2.88.2",
|
|
119
|
+
"request-promise-native": "^1.0.9",
|
|
120
|
+
"soap": "^1.6.0",
|
|
121
|
+
"ulid": "3.0.1",
|
|
122
|
+
"winston": "^3.18.3",
|
|
123
|
+
"xml2js": "^0.6.2"
|
|
124
|
+
},
|
|
125
|
+
"devDependencies": {
|
|
126
|
+
"@commitlint/cli": "^20.1.0",
|
|
127
|
+
"@commitlint/config-conventional": "^20.0.0",
|
|
128
|
+
"@types/jest": "30.0.0",
|
|
129
|
+
"audit-ci": "^7.1.0",
|
|
130
|
+
"axios-mock-adapter": "2.1.0",
|
|
131
|
+
"eslint": "^8.57.0",
|
|
132
|
+
"eslint-config-standard": "^17.1.0",
|
|
133
|
+
"eslint-plugin-import": "^2.32.0",
|
|
134
|
+
"eslint-plugin-node": "^11.1.0",
|
|
135
|
+
"eslint-plugin-promise": "^6.4.0",
|
|
136
|
+
"husky": "^9.1.7",
|
|
137
|
+
"jest": "^30.0.2",
|
|
138
|
+
"jest-extended": "^7.0.0",
|
|
139
|
+
"npm-check-updates": "^19.1.2",
|
|
140
|
+
"nyc": "^17.1.0",
|
|
141
|
+
"sinon": "^21.0.0",
|
|
142
|
+
"snazzy": "^9.0.0",
|
|
143
|
+
"source-map-support": "^0.5.21",
|
|
144
|
+
"standard-version": "^9.5.0",
|
|
145
|
+
"standardx": "^7.0.0",
|
|
146
|
+
"supertest": "^7.1.4",
|
|
147
|
+
"tap-xunit": "^2.4.1",
|
|
148
|
+
"tmp": "^0.2.5"
|
|
149
|
+
},
|
|
150
|
+
"standardx": {
|
|
151
|
+
"semistandard": true
|
|
152
|
+
},
|
|
153
|
+
"imports": {
|
|
154
|
+
"#src/*": "./src/*.js",
|
|
155
|
+
"#test/*": "./test/*.js"
|
|
156
|
+
}
|
|
157
|
+
}
|
package/src/index.js
ADDED
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
/******************************************************************************
|
|
2
|
+
* Copyright 2019 ModusBox, Inc. *
|
|
3
|
+
* *
|
|
4
|
+
* info@modusbox.com *
|
|
5
|
+
* *
|
|
6
|
+
* Licensed under the Apache License, Version 2.0 (the "License"); *
|
|
7
|
+
* you may not use this file except in compliance with the License. *
|
|
8
|
+
* You may obtain a copy of the License at *
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0 *
|
|
10
|
+
* *
|
|
11
|
+
* Unless required by applicable law or agreed to in writing, software *
|
|
12
|
+
* distributed under the License is distributed on an "AS IS" BASIS, *
|
|
13
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. *
|
|
14
|
+
* See the License for the specific language governing permissions and *
|
|
15
|
+
* limitations under the License *
|
|
16
|
+
******************************************************************************/
|
|
17
|
+
|
|
18
|
+
const nodeHttp = require('http');
|
|
19
|
+
const Constants = require('./constants/Constants');
|
|
20
|
+
const appLoader = require('./appLoader');
|
|
21
|
+
const { createDFSP: defaultCreateDFSP } = require('./service/PkiService');
|
|
22
|
+
const { createMetricsServer } = require('./mertics-server');
|
|
23
|
+
const { logger } = require('./log/logger');
|
|
24
|
+
const serverPort = Constants.SERVER.PORT;
|
|
25
|
+
|
|
26
|
+
const run = async ({
|
|
27
|
+
connect = appLoader.connect,
|
|
28
|
+
constants = Constants,
|
|
29
|
+
createDFSP = defaultCreateDFSP,
|
|
30
|
+
http = nodeHttp,
|
|
31
|
+
} = {}) => {
|
|
32
|
+
logger.debug('connection-manager-api starting with constants:', constants);
|
|
33
|
+
logger.debug('connection-manager-api starting with process env:', process.env);
|
|
34
|
+
|
|
35
|
+
const appConnected = await connect();
|
|
36
|
+
|
|
37
|
+
// Start the server
|
|
38
|
+
http.createServer(appConnected).listen(serverPort, function () {
|
|
39
|
+
logger.info('Connection-Manager API server is listening on port %d...', serverPort);
|
|
40
|
+
logger.info('Swagger-ui is available on http://localhost:%d/docs', serverPort);
|
|
41
|
+
});
|
|
42
|
+
|
|
43
|
+
const metricsServer = createMetricsServer();
|
|
44
|
+
await metricsServer.start();
|
|
45
|
+
|
|
46
|
+
if (Constants.dfspWatcherEnabled) {
|
|
47
|
+
const { createDfspWatcher } = require('./dfsp-watcher');
|
|
48
|
+
const watcher = createDfspWatcher();
|
|
49
|
+
await watcher.start();
|
|
50
|
+
}
|
|
51
|
+
};
|
|
52
|
+
|
|
53
|
+
// This structure enables us to mock and test
|
|
54
|
+
if (require.main === module) {
|
|
55
|
+
run();
|
|
56
|
+
} else {
|
|
57
|
+
module.exports = run;
|
|
58
|
+
}
|