Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Snyk] Upgrade com.fasterxml.jackson.core:jackson-databind from 2.11.3 to 2.13.4 #3

Open
wants to merge 232 commits into
base: public
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
232 commits
Select commit Hold shift + click to select a range
c165e06
project skeleton including dockerfile
Apr 15, 2021
bafb3b4
feat. skeleton updates
Apr 15, 2021
6376534
keycloak setup using atos keycloak server and i3market realm
Apr 16, 2021
343de22
update index.html to fix swagger.json url
Apr 16, 2021
a97395d
minor update on index.html swagger url
Apr 16, 2021
07c564a
update on index.html
Apr 16, 2021
a073cfb
fix. remove "/" from index.html in swagger.json url
Apr 16, 2021
9a95c16
readme file update
Apr 16, 2021
d379ad1
fix. api server var removed
Apr 16, 2021
67c3db9
update with skeleton structure
Apr 21, 2021
4556d4b
new project packages structure
Apr 21, 2021
81795ba
readme file update
Apr 21, 2021
06dbea2
new pom file with sdk-core artifacy name updated
Apr 22, 2021
93a6b88
update pome file to use i3m-maven-snapshots repo for sdk-core artifacts
Apr 22, 2021
6f3519c
feat. update configuration file, constants and properties for SK-RI
Apr 27, 2021
eb0809b
A service skeleton
Apr 27, 2021
ade33a8
Merge remote-tracking branch 'origin/master' into Subscription-cs#21
Apr 27, 2021
98dfc27
Update README.md
Apr 27, 2021
6f9ba88
Update README.md
Apr 27, 2021
8c57431
Update README.md
Apr 27, 2021
f74ec27
Merge remote-tracking branch 'origin/master' into Subscription-cs#21
Apr 27, 2021
493788b
feat. propertie file and utility classes to setup sdk-ri using a
Apr 27, 2021
ddd9360
Merge branch 'master' of https://gitlab.com/i3-market/code/sdk/i3m-sd…
Apr 27, 2021
8459814
update on readme file including config section
Apr 27, 2021
5e1a072
minor update on readme file config section
Apr 27, 2021
3a4aaaf
Merge remote-tracking branch 'origin/master' into Subscription-cs#21
Apr 28, 2021
0906e4e
Add a services as reference
Apr 28, 2021
b903705
feat. new properties to support data access and wallet endpoints
Apr 30, 2021
6e334ed
Merge remote-tracking branch 'origin/master' into Subscription-cs#21
May 5, 2021
3b1d0ce
minor update including poc
May 5, 2021
6975316
minor update on SdkRiHub
May 5, 2021
852bbcb
update with backplane and oidc examples and new maven dependencies
May 5, 2021
3666293
Merge remote-tracking branch 'origin/master' into Subscription-cs#21
May 6, 2021
cced201
feat.: update including JWT query param in rest methods.
May 10, 2021
ed266a6
fix.: update on bearer auth workflow
May 10, 2021
da298b4
fix.: update on aunthetications map
May 10, 2021
826e150
update auth map reusing key basic auth to support jwt
May 10, 2021
36fcf5b
update using replace auth conf in authentictions map
May 10, 2021
2133198
update using a modifiable map for authentications
May 10, 2021
d5cace4
minor update on modifiable map for authentications
May 10, 2021
2c8a648
update on setup auth jwt in poc oidc example
May 10, 2021
a2ea97f
update setup auth jwt on backplane example
May 10, 2021
66772df
Merge remote-tracking branch 'origin/master' into Subscription-cs#21
May 11, 2021
7a3378c
minor update on authentications key associated to bearer auths (key=jwt)
May 11, 2021
1783eb2
first commit
May 11, 2021
4b85527
RI for register offering
May 12, 2021
c5ccb97
added migbase64 to fix telesto issue with http basic auth
May 13, 2021
bef3c2a
Add LICENSE
ivanmr May 27, 2021
30aaaa7
added license headers
May 27, 2021
b7754bf
Reference implementation for semantic engine
Jun 2, 2021
055cfad
Reference implementation for semantic engine
Jun 9, 2021
3f21caf
Merge branch 'createOfering' of https://gitlab.com/i3-market/code/sdk…
Jun 9, 2021
adf60b0
conflict resolved
Jun 9, 2021
1570586
Merge branch 'createOfering' into 'master'
qaimeh Jun 9, 2021
eb707a2
update openapi lib to 4.3.0
Jun 10, 2021
072c3f8
added provider registration RI
Jun 10, 2021
a340e79
.
Jun 10, 2021
0090fa0
.
Jun 10, 2021
425c251
tags updated in web resource
Jun 10, 2021
9f85a7f
minor update for grouping services using tags
Jun 10, 2021
cc8c46a
fix: typo in SdkRuHub
Jun 10, 2021
46f2192
new tagging for common services rest api
Jun 10, 2021
d63f701
update on pom file to add jackon libs
Jun 11, 2021
592f43e
updates to fix List<DTO> issue when list it is empty
Jun 11, 2021
c65ee5d
Merge branch 'master' of gitlab.com:i3-market/code/sdk/i3m-sdk-refere…
FurtunaIosif Jun 16, 2021
12e5c3d
first implementation of create user subscription to category
Jul 8, 2021
bda9f92
Implementation of creating a user's subscription to a category
Jul 12, 2021
21a297a
first implementation of activate user subscription
Jul 12, 2021
3629f31
first implementation of activate user subscription
Jul 12, 2021
9bda3ba
first implementation of delete user subscription
Jul 12, 2021
848fe2b
first implementation of delete user subscription
Jul 12, 2021
8241e35
first implementation of delete user subscription
Jul 12, 2021
32884ce
first implementation of get user subscriptions
Jul 12, 2021
08f07dd
first implementation of get user subscriptions
Jul 12, 2021
92bc8ac
first implementation of get user subscriptions
Jul 13, 2021
3d7b5e8
new features update
FurtunaIosif Oct 7, 2021
0bad072
ignored files
FurtunaIosif Oct 7, 2021
c3aa16f
hash match & data access endpoint
FurtunaIosif Oct 7, 2021
f5b3bf5
dockerfile revert
FurtunaIosif Oct 7, 2021
8b9cd4b
dockerfile revert
FurtunaIosif Oct 7, 2021
e465b1e
fix. issue related with DataOfferingDTO in semantic engine
Oct 7, 2021
bab27d1
feat: rest assured testing based including routes and test endopints
Oct 13, 2021
2af86e2
removed swagger.json
Oct 14, 2021
fd17bfb
Delete .gitignore
ivanmr Oct 14, 2021
3cf54e5
Delete pom.xml.orig
ivanmr Oct 14, 2021
e2e2b78
merged common service cs#11
ivanmr Oct 14, 2021
1550380
update including skip test var in dockerfile
Oct 14, 2021
3e30d2c
updated semantic_engine functionalities
Oct 19, 2021
7d9a3ce
updated semantic_engine functionalities
Oct 19, 2021
820b124
uncomment original code
Oct 19, 2021
37b2c30
feat: new semantic common services including category and provider lists
Oct 19, 2021
bdfde4f
fix. issue with ContractsParametersForOfferings
Oct 21, 2021
71cc27d
fixed json keys
FurtunaIosif Oct 25, 2021
50b221f
.gitignore
FurtunaIosif Oct 25, 2021
8fff0ee
removed
FurtunaIosif Oct 25, 2021
a6ee050
removed keys
FurtunaIosif Oct 25, 2021
f56230f
implementation of offering integration tests
Nov 10, 2021
0296b75
fix. update offering route on tests
Nov 10, 2021
08202d9
fix. issue related with jdk at offering update
Nov 11, 2021
6371e76
Merge branch 'master' of https://gitlab.com/i3-market/code/sdk/i3m-sd…
Nov 12, 2021
c184881
updated sdkrihub from master branch
Nov 12, 2021
0ae49f9
Merge branch 'master' of https://gitlab.com/i3-market/code/sdk/i3m-sd…
Nov 12, 2021
6b51558
updated from master branch
Nov 12, 2021
3049b8f
Merge branch 'master' of https://gitlab.com/i3-market/code/sdk/i3m-sd…
Nov 12, 2021
027c91b
updated from master branch
Nov 12, 2021
1580d0d
Merge branch 'master' of https://gitlab.com/i3-market/code/sdk/i3m-sd…
Nov 12, 2021
e54d182
updated from master branch
Nov 12, 2021
c042b58
Merge branch 'CreateSearchAlertAndStore-cs#4' into ActivateSearchAler…
Nov 12, 2021
49279c2
updated from master branch
Nov 12, 2021
146ca66
update name
Nov 12, 2021
04676f7
added tokenizer api
lucma Nov 17, 2021
5160398
Merge branch 'master' into 'Subscription-cs#21'
Nov 17, 2021
2177bb1
updated function names in OAS
lucma Nov 18, 2021
17dd7ed
added vc endpoints
gobberr Nov 22, 2021
d887a7e
updated object references
gobberr Nov 22, 2021
03151b4
minor fix on query param
gobberr Nov 22, 2021
f507ba1
Retrieve notifications added
Nov 24, 2021
e04d57d
First version of create service notification
Nov 24, 2021
64bca4f
updated tokenizer return types
lucma Nov 24, 2021
2a4bc02
Merge remote-tracking branch 'origin/tokenizer'
Nov 24, 2021
48ec9ca
fix. data schema issue with vc
Nov 24, 2021
1dce8b0
Merge branch 'master' into createNotifications-cs#34
Nov 24, 2021
d2c611a
first version of create user notification
Nov 24, 2021
e017482
working version of create user notification
Nov 24, 2021
f6384ae
working version of modify notifications
Nov 25, 2021
7a21f43
first version of delete notification
Nov 25, 2021
3019183
first version of delete notification
Nov 25, 2021
241e228
working version of delete notification
Nov 25, 2021
c12b083
Merge branch 'master' into CreateSearchAlertAndStore-cs#4
Nov 25, 2021
4b82a00
Merge remote-tracking branch 'origin/deleteNotification-cs#34'
Nov 25, 2021
658293b
Merge remote-tracking branch 'origin/getNotifications-cs#34'
Nov 25, 2021
2393611
Merge remote-tracking branch 'origin/modifyNotification-cs#34'
Nov 25, 2021
83cfe02
working version of create and store alert
Nov 25, 2021
97fb366
working version of modify alerts
Nov 25, 2021
b9db736
working version of delete user subscriptions
Nov 25, 2021
cc3309a
working version of delete user subscriptions
Nov 25, 2021
5aa928c
Added new endpoint to get contract template
Nov 25, 2021
55da1a1
Merge branch 'master' into GetContractTemplate
Nov 25, 2021
107d23b
feat. get contract template
Nov 25, 2021
ffd32e1
working version of get user subscriptions
Nov 25, 2021
911b358
removed comments
Nov 25, 2021
8d05035
first version of get users subscribed to category
Nov 25, 2021
a994234
changed endpoint
Nov 25, 2021
5097685
changed endpoint
Nov 25, 2021
6a90763
changed endpoint
Nov 25, 2021
2971351
changed endpoint
Nov 25, 2021
46085aa
changed endpoint
Nov 25, 2021
4607e70
update on get contract template in authorization header param
Nov 25, 2021
cd4758a
Merge branch 'ModifySearchAlert-cs#6' into alertSubscriptions-cs#4-6-7-8
Nov 26, 2021
181e98e
Merge branch 'DeleteUserSubscription-cs#7' into alertSubscriptions-cs…
Nov 26, 2021
4f8a63c
Merge branch 'GetSubscriptions-cs#8' into alertSubscriptions-cs#4-6-7-8
Nov 26, 2021
298b224
Merge remote-tracking branch 'origin/alertSubscriptions-cs#4-6-7-8'
Nov 26, 2021
ad85491
Merge branch 'master' into 'Subscription-cs#21'
Dec 1, 2021
20f92e9
removed contract parameters by provierId
Dec 6, 2021
bb706f3
update DataOfferingDTO on semantics common services
Dec 9, 2021
a39865e
add shell script to generate dynamically properties on sdk ri in
Dec 10, 2021
49d7b77
update on web.xml to add CORS filter
Dec 13, 2021
d296aa9
Changed API call for endpoint to get contract template
Dec 14, 2021
a8b1f23
Added new tests of the rest of the currently integrated common servic…
Dec 14, 2021
a44ae76
Merge remote-tracking branch 'origin/TestingCommonServices'
Dec 14, 2021
8554dd2
Merge remote-tracking branch 'origin/GetContractTemplate'
Dec 14, 2021
bda9359
Changed token authentication logic to get contract template
Dec 14, 2021
1326794
uncomment working method
Dec 14, 2021
bfc36f1
changed from queryparam to pathparam in subscription methods related …
Dec 14, 2021
f2eb906
added a GenericExceptionMapper for error handling
Dec 14, 2021
6b18087
Merge remote-tracking branch 'origin/Subscription-cs#21'
Dec 14, 2021
9e165f1
Merge remote-tracking branch 'origin/GetContractTemplate'
Dec 14, 2021
852a621
Update README.md
ivanmr Dec 14, 2021
caf4ba4
Update README.md
ivanmr Dec 14, 2021
79442b2
revised new offering for semantic engine
Dec 15, 2021
16f19ca
Include License
kaarelGT Dec 15, 2021
e32ec49
Update README.md
ivanmr Dec 16, 2021
23866bf
Update README.md
ivanmr Dec 16, 2021
04c22cb
Update README.md
ivanmr Dec 16, 2021
d88d4b0
update on readme file
Dec 16, 2021
2ca109c
Merge remote-tracking branch 'origin/public'
Dec 16, 2021
e51c18e
Added information about routes
Dec 20, 2021
7924ce1
methods fixed
Dec 20, 2021
ea33c1b
added the tests that are currently working
Dec 20, 2021
961f1d2
Merge remote-tracking branch 'origin/TestingCommonServices'
Dec 20, 2021
0214332
minor update on org.wildfly.plugins version
Dec 23, 2021
6669126
minor update on wildfly-maven-plugin
Dec 23, 2021
78c9cc7
minor update on jboss-as-maven-plugin
Dec 23, 2021
9ef7b14
update on maven-clean-plugin
Dec 23, 2021
63ec148
minor update in pom.xml
Dec 23, 2021
f4c2462
minor update in dockerfile
Dec 23, 2021
8911efc
update on pom.xml
Dec 23, 2021
a2afead
Update settings.xml
ivanmr Dec 23, 2021
b5559d4
Update src/test/java/api/engine/endpoints/CommonServicesEndpoints.java
ivanmr Dec 23, 2021
06fd4fa
Update src/test/java/api/engine/endpoints/Routes.java
ivanmr Dec 23, 2021
9310562
Update src/main/java/com/i3market/sdk/ri/common_services/data/exchang…
ivanmr Dec 23, 2021
796c6f3
Update src/main/resources/sdk_ri_config.properties
ivanmr Dec 23, 2021
b0fc818
Update src/main/webapp/WEB-INF/jetty-web.xml
ivanmr Dec 23, 2021
fef0082
Update src/main/webapp/WEB-INF/keycloak.json
ivanmr Dec 23, 2021
7286ed5
updated semantic-engine
Jan 27, 2022
0ee5b50
update on semantic engine methods
Jan 27, 2022
a2a2982
Merge remote-tracking branch 'origin/semantic-engine'
Jan 27, 2022
653204b
minor updates on offering methods
Jan 31, 2022
67d38ee
update to fix issues coming from semantic engine data types and API
Feb 3, 2022
72c5923
update on managing exceptions approach
Feb 7, 2022
92bc15b
update to fix all issues related with semantic engine and exceptions
Feb 9, 2022
7a19e31
update fixing semantic engine issues
Feb 10, 2022
0eed919
minor update on dockerfile
Feb 10, 2022
e3c88cf
update on pom file
Feb 10, 2022
3b47f8a
update on retrieve offerings
Feb 10, 2022
c68da68
major update to support global auth approach using access_token and
Feb 15, 2022
b82dd8f
update on header params in web resource
Feb 15, 2022
cc53c84
update to integrate new version of offerings based on mongoDB
Mar 8, 2022
3e4e4c3
Merge branch 'master' into 'Subscription-cs#21'
Mar 31, 2022
58bcd64
minor update in dockerfile to define env var for node
Apr 4, 2022
930e358
fix. security vulnerabilities detected with trivy
Apr 5, 2022
97df951
update jackson-databind to 2.11.3
Apr 5, 2022
035d5e3
Create data purchase request service
Apr 8, 2022
523e4a9
send the messages in the "Agreement pending" queue
Apr 20, 2022
30a263b
put the right baseURI
Apr 20, 2022
dc47345
change port
Apr 20, 2022
458c77a
Merge remote-tracking branch 'origin/Subscription-cs#21'
Apr 22, 2022
f7f4966
Change templateOfferingIdGet
Apr 22, 2022
0994576
update on semantic engine integration tests
Apr 25, 2022
c68a444
Merge branch 'master' into public
Apr 25, 2022
3684bdb
Update pom.xml
Apr 25, 2022
55ddc15
Update settings.xml
Apr 25, 2022
964e466
Update src/main/java/com/i3market/sdk/ri/bean/package-info.java, src/…
Apr 25, 2022
80de367
Update src/main/resources/sdk_ri_config.properties
Apr 25, 2022
c8429d2
Update src/main/webapp/WEB-INF/jetty-web.xml
Apr 25, 2022
3fef2c4
Update src/main/webapp/WEB-INF/keycloak.json
Apr 25, 2022
1dae499
Update src/main/webapp/WEB-INF/web.xml
Apr 25, 2022
b887dae
Update src/test/java/api/engine/endpoints/Routes.java
Apr 25, 2022
a880bfb
Update src/test/java/api/test/TestEndpoints.java
Apr 25, 2022
31f62d8
Update src/test/java/api/engine/endpoints/CommonServicesEndpoints.java
Apr 27, 2022
8993ccc
delete swagger.json
Apr 27, 2022
5d1ec36
fix: upgrade com.fasterxml.jackson.core:jackson-databind from 2.11.3 …
snyk-bot Oct 7, 2022
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
3 changes: 3 additions & 0 deletions .idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 14 additions & 0 deletions .idea/compiler.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions .idea/encodings.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

30 changes: 30 additions & 0 deletions .idea/jarRepositories.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 12 additions & 0 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

34 changes: 34 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
FROM maven:3.8.4-jdk-8 as initial
ARG TEST
ARG BACKPLANE_URL
ARG OIDC_URL
ARG VC_URL
ARG DATA_ACCESS_URL

ENV NODE_VERSION=17.7.1

RUN mkdir -p /root/.m2 \
&& mkdir /root/.m2/repository

COPY settings.xml /root/.m2

COPY . /sdk-ri

WORKdir /sdk-ri

RUN chmod +x setup-sdk-ri.sh
RUN bash setup-sdk-ri.sh

RUN mvn clean install -U $TEST

FROM jetty:9.4-jdk8

USER root
ADD https://github.com/keycloak/keycloak/releases/download/13.0.0/keycloak-oidc-jetty94-adapter-13.0.0.tar.gz /var/lib/jetty/keycloak-oidc-jetty94-adapter-13.0.0.tar.gz
RUN tar -xzf /var/lib/jetty/keycloak-oidc-jetty94-adapter-13.0.0.tar.gz
USER jetty
RUN echo $JETTY_HOME
RUN java -jar "$JETTY_HOME/start.jar" --add-to-start=keycloak
COPY --from=initial /sdk-ri/target/SdkRefImpl.war /var/lib/jetty/webapps/SdkRefImpl.war

EXPOSE 8080
99 changes: 96 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,96 @@
# i3m-sdk-reference-implementation

SDK reference implementation that includes common services.
# i3m-sdk-reference-implementation

SDK reference implementation that includes common services.

WEB REOURCE: com.i3market.sdk.ri.resource.SdkRiHub

## Setup

Clone the repository, and download the dependencies:

```shell script
[email protected]:i3-market/code/sdk/i3m-sdk-reference-implementation.git
```

## Keycloak Setup
default config file is palced in /src/main/wabapp/WEB-INF/keycloak.json

{
"realm": "i3market",
"auth-server-url": "http://X.X.X.X",
"ssl-required": "none",
"resource": "SDK-RI_Client",
"credentials": {
"secret": "XXXXXXXXXXXXX"
},
"use-resource-role-mappings": true,
"confidential-port": 0
}

To provide your keycloak setup you should updated providing a realm, auth-server-url, resource and credentials.

## Running the SDK-RI with docker

You can use docker to run the SDK-RI.
To do so, follow the same setup instructions as above.

Then, just build and run using:

```shell
docker build --no-cache -t i3m/i3market-sdk-ri:latest .
docker push i3m/i3market-sdk-ri:latest
docker run --name sdk-ri -p 8181:8080 i3m/i3market-sdk-ri
```

SDK-RI container is built over a jetty image and deploy the SdkREfIMpl war file into jetty.

Finally just go to http:/$deploy_host/SdkRefImpl for accesing to SDK-RI REST API.


# Contributing to the SDK-RI project

- The developer includes the service (as a get method) in the SdkRiHUB. i.e:

```
@GET
@Path("/requestDataItemPurchase")
@ApiOperation(value = "")
@ApiResponses(value={@ApiResponse(code = 401, message = "Unauthorized")})
@Produces({ "application/json", "application/xml" })
public void requestDataItemPurchase() throws Exception {
RequestingDataItemPurchase.requestDataItemPurchase();
}
```

- The developer includes the logic behind the service in classes (each per service) in the corresponding module


# Configuring and using SDK-RI

- The marketplace will have all the common services exposed in a sdk-ri/ endpoint
- Each marketplace-end user, which pursues making use of the SDK-RI, should configure the SDK-RI by means of:
- Pointing to the Backplane endpoint(s) hosted in a concrete i3-Market node (i.e: Backplane API node1, OpenID Connect Provider API node1, Verifying Credential service API node1)
- pointing to the Wallet endpoint hosted locally.
- This configuration should be defined in the SDK-RI properties file placed at "src/resources/sdk_ri_config.properties"

- An example of setup could be the following:

- backplane.url = xxxx
- oidc.url = xxxx
- verifiable_credentials.url = xxxxx

# Contact us if you have any issue with the SDK-RI
Ivan Martinez: [email protected]
or
Nines : [email protected]

# License
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is 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.
Loading