Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
102 commits
Select commit Hold shift + click to select a range
c2b9016
Feature/846 async logging (#100)
lewisdaly Dec 5, 2019
50564a1
Feature/update json rules engine (#101)
partiallyordered Dec 5, 2019
ada4adb
Feature/test fx rules (#102)
partiallyordered Dec 5, 2019
7af1891
updated dependencies (#105)
vgenev Dec 11, 2019
8c1a145
Feature/1003 add container scans (#103)
lewisdaly Dec 12, 2019
396a996
Feature/1047 improve test coverage (#108)
lewisdaly Dec 17, 2019
19f7359
#1147 - Update dependencies (#118)
oderayi Jan 7, 2020
4d8730d
Fix for #1169 - GET /quotes for malformed ID error response is 1001 i…
oderayi Jan 15, 2020
cbf535f
Bugfix/1172empty quote values (#128)
ndonnan Jan 17, 2020
55504e6
Upgrading version to v8.8.0-snapshot (#129)
Jan 17, 2020
b78a016
Feature/1157 anchore report summary (#132)
lewisdaly Jan 20, 2020
856a215
Update dependencies (#133)
oderayi Jan 22, 2020
5cb6955
893-UpdateRegexToValidateIncomingErrorCodeAtEndpointCallbackAndUpdate…
gibaros Jan 24, 2020
a93c8b9
Fix for #1173 - GET /quotes for unknown quote ID error response is 10…
oderayi Feb 10, 2020
148a14d
Upgrade to Node 12.16.0 LTS version (#150)
oderayi Feb 17, 2020
7a8bbda
Added updated Mojaloop license (#151)
lewisdaly Feb 19, 2020
1fda789
Added updated Mojaloop license (#152)
lewisdaly Feb 19, 2020
e156cab
Hotfix: Fix startup failure error (#153)
oderayi Feb 20, 2020
e8b6d7c
Fix/1107 circleci deploy (#154)
lewisdaly Feb 25, 2020
92d2d2a
Fixed /quote/\{id\}/error destination (#156)
partiallyordered Mar 2, 2020
63b2757
Updated package version (#157)
partiallyordered Mar 2, 2020
28d90b0
Updated dependencies (#158)
rmothilal Mar 2, 2020
3f47b36
Feature/updating dependencies (#159)
rmothilal Mar 3, 2020
202a5e2
#1178: Bug fixes for POST /quotes with unknown destination FSP (#160)
oderayi Mar 3, 2020
304bf1a
Hotfix: Revert #1178 changes (#161)
oderayi Mar 5, 2020
1859796
Bugfix/restore handle quote error headers (#168)
Mar 17, 2020
9667b52
Store extensionLists for quote requests and responses. (#184)
bushjames Apr 9, 2020
4f21650
Feature/otc 218 enhance post quote partyIdInfo with extension list (#…
lazolalucas Apr 9, 2020
eb99692
Add custom mojaloop policy for evaluating anchore-cli scans (#192)
lewisdaly Apr 16, 2020
52a60f7
Update dependencies (#200)
oderayi Apr 30, 2020
b96cd31
Hotfix for docker image to support async logging (#202)
mdebarros May 6, 2020
ffe191a
added JWS support for switch generated msg (#203)
shashi165 May 19, 2020
e25fe98
Fixed the arguments passed to `createQuoteExtensions`. (#213)
May 21, 2020
1e1cd38
Fixed issue with `createQuoteExtension` (#214)
May 22, 2020
a544b1a
Updated versions for error-handler, etc... (#218)
aenns May 26, 2020
ea50235
Change CI/CD notifications to their own slack channel, bump package t…
lewisdaly May 27, 2020
79ca56f
Fix DB transaction leaks. Update unit tests (#220)
oderayi Jun 1, 2020
88a8c05
Feature/validation for name place accents (#221)
rmothilal Jun 15, 2020
64a519e
Updated python in Circle CI (#222)
rmothilal Jun 15, 2020
84bdcf0
Updated dependencies and version for issue: https://github.com/mojalo…
aenns Jun 17, 2020
be43446
Removed `quoteId` from error log message as it causes error due its e…
Jun 30, 2020
c62a229
Bugfix/1385 fix post quotes header (#225)
rmothilal Jun 30, 2020
294e090
fix error message (#226)
shashi165 Jun 30, 2020
c4945b0
Bugfix/fix participant lookup to use currency (#227)
rmothilal Jul 2, 2020
63b4a36
Bugfix/fix participant lookup to use currency (#228)
rmothilal Jul 2, 2020
5442493
Bugfix/fix participant lookup to use currency (#230)
rmothilal Jul 2, 2020
9b87b67
Bugfix/fix participant lookup to use currency (#231)
rmothilal Jul 2, 2020
55cc399
Feature/1468 support for bulk quotes post passthrough (#233)
rmothilal Jul 16, 2020
66f2a0b
#1484: Update FSPIOP API version (#235)
oderayi Aug 10, 2020
c9e8b7b
Add ISO test currencies (XTS, XXX) (#238)
bushjames Aug 27, 2020
4db9a82
Convert handlers to async, update deps, and bump version (#239)
oderayi Sep 8, 2020
7021d02
Feature/#1615 content headers (#240)
vgenev Sep 9, 2020
5c4a6db
fixed resource api version to be changed only if message originates f…
vgenev Sep 21, 2020
81eaf70
updated dependencies and removed old audit records (#243)
rmothilal Oct 2, 2020
8bbf5d2
Updated to cater for spans finishing early (#244)
rmothilal Oct 6, 2020
9ac9910
fixes (#245)
rmothilal Oct 6, 2020
d37de6b
#1456: Feature/docker config fixes (#247)
oderayi Nov 18, 2020
0ffc8ed
validate dfsps in payload for simple routing mode (#248)
shashi165 Nov 19, 2020
55b1fd4
#1875: Replace wildcard routes with explicit routes. (#249)
oderayi Nov 27, 2020
ef6da1e
chore: update license file (#251)
lewisdaly Dec 9, 2020
0bbf228
#1885: Add API documentation library (#250)
oderayi Dec 9, 2020
3444c2a
[Security] Bump node-notifier from 8.0.0 to 8.0.1 (#252)
dependabot-preview[bot] Dec 29, 2020
e235f6a
[Security] Bump axios from 0.21.0 to 0.21.1 (#255)
dependabot-preview[bot] Jan 19, 2021
399a442
[Security] Bump urijs from 1.19.2 to 1.19.5 (#254)
dependabot-preview[bot] Jan 19, 2021
6d3f56c
feat(ci/cd): add pr title check (#256)
lewisdaly Feb 5, 2021
2b2ef17
chore: adding codeowners file (#257)
elnyry-sam-k Feb 9, 2021
52846d9
chore: maintenance upgrades, audit check resolve update (#258)
elnyry-sam-k Feb 9, 2021
8143b30
fix(headers)!: made fspiop-destination header mandatory (#259)
shashi165 Feb 17, 2021
4fabb3a
[Security] Bump urijs from 1.19.5 to 1.19.6 (#260)
dependabot-preview[bot] Apr 7, 2021
6ad7250
fix(security): Bump y18n from 3.2.1 to 3.2.2 (#261)
dependabot-preview[bot] Apr 13, 2021
45792af
fix(security): Bump djv from 2.1.2 to 2.1.4 (#263)
dependabot[bot] May 3, 2021
d0fc967
fix: #2103 fix subid functionality in POST quotes request (#264)
vijayg10 May 4, 2021
b435764
feat(#2119): fixes for updated for AJV error objects change (#265)
mdebarros May 6, 2021
157493f
fix(#2182): regex validations against swagger interface spec no longe…
mdebarros May 12, 2021
12ecdb6
fix: helm release v12.1.0 (#269)
mdebarros Jun 1, 2021
b6c4ca9
[Security] Bump hosted-git-info from 2.8.8 to 2.8.9 (#266)
dependabot-preview[bot] Jun 2, 2021
b86b3ed
chore: helm release v12.1.0 (#270)
mdebarros Jun 2, 2021
c96fb58
fix(mojaloop/project#2246): updated dependency version (#272)
JohannWNel Jun 11, 2021
65075f1
fix(#2358): firstname, middlename and lastname regex not supporting m…
mdebarros Aug 11, 2021
0bf7cad
chore(#864): change instanbul to nyc for coverage on all projects (#279)
mdebarros Aug 19, 2021
b0c2cdc
fix(mojaloop/#2439): quoting-service-model.validatequoterequest-doesn…
mdebarros Sep 1, 2021
9ee10d7
fix: updated circleci config to use the SHA1 hash of the last commit …
mdebarros Sep 1, 2021
0cdf026
chore(release): 12.0.8 [skip ci]
Sep 1, 2021
3e6ac84
fix: circleci slack webhook typo fix (#282)
mdebarros Sep 1, 2021
44908b1
chore(release): 12.0.9 [skip ci]
Sep 1, 2021
3f1ad76
chore: updated readme with automated-releases, potential-problems and…
mdebarros Sep 1, 2021
0255b2f
chore(release): 12.0.10 [skip ci]
Sep 1, 2021
737c7b4
fix(mojaloop/#2535): fspiop api version negotiation not handled by qu…
mdebarros Nov 5, 2021
758c39f
chore(release): 13.0.0 [skip ci]
Nov 5, 2021
d4d48c1
fix(mojaloop/#2535): fspiop api version negotiation not handled by qu…
mdebarros Nov 16, 2021
ca5dbeb
chore(release): 13.0.1 [skip ci]
Nov 16, 2021
f92299b
feat: merge mowali branch (#286)
shashi165 Feb 11, 2022
812b75d
feat(mojaloop/#2704): core-services support for non-breaking backward…
mdebarros Mar 4, 2022
acf48a5
fix: #2704 core services support for non breaking backward api compat…
mdebarros Mar 4, 2022
3e8d9ad
chore(release): 14.0.0 [skip ci]
Mar 4, 2022
bc11b7c
feat: upgrade to node LTS v16 (#302)
gibaros Jun 9, 2022
87462b4
chore(release): 15.0.0 [skip ci]
Jun 9, 2022
938bf65
fix: dockerfile typo fix
mdebarros Jun 9, 2022
3c7e0d1
chore(release): 15.0.1 [skip ci]
Jun 9, 2022
802e627
fix: handle unhandled promise rejections (#303)
mdebarros Jun 16, 2022
dd895c6
chore(release): 15.0.2 [skip ci]
Jun 16, 2022
d3aba52
chore(mojaloop/#3438): nodejs upgrade (#309)
oderayi Sep 6, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
971 changes: 650 additions & 321 deletions .circleci/config.yml

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -78,3 +78,8 @@ typings/

# MacOs
.[Dd][Ss]_[Ss]tore
.notes.md

# https://devspace.sh/
devspace*
.devspace/**.*
4 changes: 0 additions & 4 deletions .ncurc.json

This file was deleted.

5 changes: 5 additions & 0 deletions .ncurc.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
## Add a TODO comment indicating the reason for each rejected dependency upgrade added to this list, and what should be done to resolve it (i.e. handle it through a story, etc).
reject: [
"json-rules-engine",
"eslint"
]
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
18.17.1
15 changes: 15 additions & 0 deletions .versionrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"types": [
{"type": "feat", "section": "Features"},
{"type": "fix", "section": "Bug Fixes"},
{"type": "docs", "section": "Documentation"},
{"type": "style", "section": "Styling"},
{"type": "refactor", "section": "Refactors"},
{"type": "perf", "section": "Performance"},
{"type": "test", "section": "Tests"},
{"type": "build", "section": "Build System"},
{"type": "ci", "section": "CI"},
{"type": "chore", "section": "Chore"},
{"type": "revert", "section": "Reverts"}
]
}
116 changes: 116 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,116 @@
# Changelog

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.

### [15.0.2](https://github.com/mojaloop/quoting-service/compare/v15.0.1...v15.0.2) (2022-06-16)


### Bug Fixes

* handle unhandled promise rejections ([#303](https://github.com/mojaloop/quoting-service/issues/303)) ([802e627](https://github.com/mojaloop/quoting-service/commit/802e6276ced1754f7f6cc70861149b80d6558e2d))

### [15.0.1](https://github.com/mojaloop/quoting-service/compare/v15.0.0...v15.0.1) (2022-06-09)


### Bug Fixes

* dockerfile typo fix ([938bf65](https://github.com/mojaloop/quoting-service/commit/938bf65ed781f7c8b950b310a366d06ed0a72781))

## [15.0.0](https://github.com/mojaloop/quoting-service/compare/v14.0.0...v15.0.0) (2022-06-09)


### ⚠ BREAKING CHANGES

* Major version bump for node v16 LTS support, re-structuring of project directories to align to core Mojaloop repositories and docker image now uses /opt/app instead of /opt/quoting-service which will impact config mounts.

### Features

* upgrade to node LTS v16 ([#302](https://github.com/mojaloop/quoting-service/issues/302)) ([bc11b7c](https://github.com/mojaloop/quoting-service/commit/bc11b7cef03d34662e58fab06911ecb82566c3bc)), closes [mojaloop/#2767](https://github.com/mojaloop/project/issues/2767)

## [14.0.0](https://github.com/mojaloop/quoting-service/compare/v13.0.1...v14.0.0) (2022-03-04)


### ⚠ BREAKING CHANGES

* **mojaloop/#2704:** - Config PROTOCOL_VERSIONS.CONTENT has now been modified to support backward compatibility for minor versions (i.e. v1.0 & 1.1) as follows:

> ```
> "PROTOCOL_VERSIONS": {
> "CONTENT": "1.1", <-- used when generating messages from the "SWITCH", and validate incoming FSPIOP API requests/callbacks CONTENT-TYPE headers
> "ACCEPT": {
> "DEFAULT": "1", <-- used when generating messages from the "SWITCH"
> "VALIDATELIST": [ <-- used to validate incoming FSPIOP API requests/callbacks ACCEPT headers
> "1",
> "1.0",
> "1.1"
> ]
> }
> },
> ```
>
> to be consistent with the ACCEPT structure as follows:
>
> ```
> "PROTOCOL_VERSIONS": {
> "CONTENT": {
> "DEFAULT": "1.1", <-- used when generating messages from the "SWITCH"
> "VALIDATELIST": [ <-- used to validate incoming FSPIOP API requests/callbacks CONTENT-TYPE headers
> "1.1",
> "1.0"
> ]
> },
> "ACCEPT": {
> "DEFAULT": "1", <-- used when generating messages from the "SWITCH"
> "VALIDATELIST": [ <-- used to validate incoming FSPIOP API requests/callbacks ACCEPT headers
> "1",
> "1.0",
> "1.1"
> ]
> }
> },
> ```

### Features

* merge mowali branch ([#286](https://github.com/mojaloop/quoting-service/issues/286)) ([f92299b](https://github.com/mojaloop/quoting-service/commit/f92299bb2ad66bd89c00a04c382183b7845d881c)), closes [#100](https://github.com/mojaloop/quoting-service/issues/100) [#101](https://github.com/mojaloop/quoting-service/issues/101) [#102](https://github.com/mojaloop/quoting-service/issues/102) [#127](https://github.com/mojaloop/quoting-service/issues/127)
* **mojaloop/#2704:** core-services support for non-breaking backward api compatibility ([#295](https://github.com/mojaloop/quoting-service/issues/295)) ([812b75d](https://github.com/mojaloop/quoting-service/commit/812b75d616c87792bab7c80b6552ac894424ec5d)), closes [mojaloop/#2704](https://github.com/mojaloop/project/issues/2704)


### Bug Fixes

* [#2704](https://github.com/mojaloop/quoting-service/issues/2704) core services support for non breaking backward api compatibility ([#297](https://github.com/mojaloop/quoting-service/issues/297)) ([acf48a5](https://github.com/mojaloop/quoting-service/commit/acf48a5ba7b482c126bc345df121e5b0044921b1))

### [13.0.1](https://github.com/mojaloop/quoting-service/compare/v13.0.0...v13.0.1) (2021-11-16)


### Bug Fixes

* **mojaloop/#2535:** fspiop api version negotiation not handled by quoting service ([#289](https://github.com/mojaloop/quoting-service/issues/289)) ([#290](https://github.com/mojaloop/quoting-service/issues/290)) ([d4d48c1](https://github.com/mojaloop/quoting-service/commit/d4d48c179391ba956d9555432d4738652788190c)), closes [mojaloop/#2535](https://github.com/mojaloop/project/issues/2535)

## [13.0.0](https://github.com/mojaloop/quoting-service/compare/v12.0.10...v13.0.0) (2021-11-05)


### ⚠ BREAKING CHANGES

* **mojaloop/#2535:** Forcing a major version change for awareness of the config changes. The `LIB_RESOURCE_VERSIONS` env var is now deprecated, and this is now also controlled by the PROTOCOL_VERSIONS config in the default.json. This has been done for consistency between all API services going forward and unifies the config for both inbound and outbound Protocol API validation/transformation features.

### Bug Fixes

* **mojaloop/#2535:** fspiop api version negotiation not handled by quoting service ([#289](https://github.com/mojaloop/quoting-service/issues/289)) ([737c7b4](https://github.com/mojaloop/quoting-service/commit/737c7b48e5ba0b80cef3e6b5ae701df1cb3440b6)), closes [mojaloop/#2535](https://github.com/mojaloop/project/issues/2535)

### [12.0.10](https://github.com/mojaloop/quoting-service/compare/v12.0.9...v12.0.10) (2021-09-01)

### [12.0.9](https://github.com/mojaloop/quoting-service/compare/v12.0.8...v12.0.9) (2021-09-01)


### Bug Fixes

* circleci slack webhook typo fix ([#282](https://github.com/mojaloop/quoting-service/issues/282)) ([3e6ac84](https://github.com/mojaloop/quoting-service/commit/3e6ac841727ffc5c133fee35387e4781c8253779))

### [12.0.8](https://github.com/mojaloop/quoting-service/compare/v12.0.7...v12.0.8) (2021-09-01)


### Bug Fixes

* **mojaloop/#2439:** quoting-service-model.validatequoterequest-doesnt-perform-correct-validation ([#280](https://github.com/mojaloop/quoting-service/issues/280)) ([b0c2cdc](https://github.com/mojaloop/quoting-service/commit/b0c2cdc42422ecf604a58d48e9e5e9c2402d4341)), closes [mojaloop/#2439](https://github.com/mojaloop/project/issues/2439)
* updated circleci config to use the SHA1 hash of the last commit of the current build ([#281](https://github.com/mojaloop/quoting-service/issues/281)) ([9ee10d7](https://github.com/mojaloop/quoting-service/commit/9ee10d72b5941b973e15e97633835aa6d34d20eb))
38 changes: 38 additions & 0 deletions CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# This is a comment.
# Each line is a file pattern followed by one or more owners.

## These owners will be the default owners for everything in
## the repo. Unless a later match takes precedence,
## @global-owner1 and @global-owner2 will be requested for
## review when someone opens a pull request.
#* @global-owner1 @global-owner2
* @vgenev @mdebarros @elnyry-sam-k @lewisdaly @oderayi @shashi165 @vijayg10 @eoln @bushjames

## Order is important; the last matching pattern takes the most
## precedence. When someone opens a pull request that only
## modifies JS files, only @js-owner and not the global
## owner(s) will be requested for a review.
# *.js @js-owner

## You can also use email addresses if you prefer. They'll be
## used to look up users just like we do for commit author
## emails.
#*.go [email protected]

# In this example, @doctocat owns any files in the build/logs
# directory at the root of the repository and any of its
# subdirectories.
# /build/logs/ @doctocat

## The `docs/*` pattern will match files like
## `docs/getting-started.md` but not further nested files like
## `docs/build-app/troubleshooting.md`.
# docs/* [email protected]

## In this example, @octocat owns any file in an apps directory
## anywhere in your repository.
#apps/ @octocat

## In this example, @doctocat owns any file in the `/docs`
## directory in the root of your repository.
#/docs/ @doctocat
50 changes: 40 additions & 10 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,19 +1,49 @@
FROM node:10.15.3-alpine
WORKDIR /opt/quoting-service
# Arguments
ARG NODE_VERSION=lts-alpine

RUN apk add --no-cache -t build-dependencies git make gcc g++ python libtool autoconf automake \
# NOTE: Ensure you set NODE_VERSION Build Argument as follows...
#
# export NODE_VERSION="$(cat .nvmrc)-alpine" \
# docker build \
# --build-arg NODE_VERSION=$NODE_VERSION \
# -t mojaloop/sdk-scheme-adapter:local \
# . \
#

# Build Image
FROM node:${NODE_VERSION} as builder
USER root

WORKDIR /opt/app

RUN apk --no-cache add git
RUN apk add --no-cache -t build-dependencies make gcc g++ python3 libtool openssl-dev autoconf automake bash \
&& cd $(npm root -g)/npm \
&& npm config set unsafe-perm true \
&& npm install -g node-gyp

COPY package.json package-lock.json* /opt/quoting-service/
COPY package.json package-lock.json* /opt/app/

RUN npm install --production
RUN npm ci

RUN apk del build-dependencies

COPY config /opt/quoting-service/config
COPY src /opt/quoting-service/src
COPY src /opt/app/src
COPY config /opt/app/config

FROM node:${NODE_VERSION}

WORKDIR /opt/app

# Create empty log file & link stdout to the application log file
RUN mkdir ./logs && touch ./logs/combined.log
# Links combined to stdout
RUN ln -sf /dev/stdout ./logs/combined.log

# Create a non-root user:app-user
RUN adduser -D app-user
USER app-user

COPY --chown=app-user --from=builder /opt/app .
RUN npm prune --production

EXPOSE 3002
CMD ["npm", "run", "start"]
CMD ["npm", "start"]
10 changes: 10 additions & 0 deletions LICENSE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# LICENSE

Copyright © 2020 Mojaloop Foundation

The Mojaloop files are made available by the Mojaloop Foundation under the Apache License, Version 2.0
(the "License") and you may not use these files except in compliance with the [License](http://www.apache.org/licenses/LICENSE-2.0).

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)

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).
Loading