Skip to content

Commit bd3ce8e

Browse files
committed
Updated License to AGPLv3,
DockerFiles to Java OpenJDK 15 Generated openapi.yaml files for each component Updated Read the docs Updated ServiceEntry json schema and processingPurpose enum on Java classes using it (SinkUsageRules)
1 parent 320fdff commit bd3ce8e

File tree

604 files changed

+49869
-61658
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

604 files changed

+49869
-61658
lines changed

LICENSE

Lines changed: 663 additions & 21 deletions
Large diffs are not rendered by default.

README.md

Lines changed: 40 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,45 @@ to provide feedback.
6969

7070
## License
7171

72-
CaPe is licensed under [MIT License](./LICENSE).
72+
CaPe is licensed under [AGPLv3 License](./LICENSE).
73+
74+
---
75+
### Libraries
76+
77+
CaPe Suite uses following libraries and frameworks (already included):
78+
79+
| Name | Version | License |
80+
|-----------------------------------------------------------------------------------------|---------------|-----------------------------------|
81+
| [Spring Boot](https://spring.io/projects/spring-boot) | 2.3.4.RELEASE | Apache License 2.0 |
82+
| [Spring Cloud](https://spring.io/projects/spring-cloud) | Hoxton.SR8 | Apache License 2.0 |
83+
| [Springdoc Openapi](https://springdoc.org) | 1.2.34 | Apache License 2.0 |
84+
| [Spring Data](https://spring.io/projects/spring-data) | 2.3.4.RELEASE | Apache License 2.0 |
85+
| [Nimbus Jose JWT](https://connect2id.com/products/nimbus-jose-jwt) | 8.5 | Apache License 2.0 |
86+
| [Bouncy Castle](https://www.bouncycastle.org) | 1.64 | MIT |
87+
| [Lombok](Nihttps://projectlombok.org/) | 1.18.12 | MIT |
88+
| [Apache Commong Lang 3](https://commons.apache.org) | 3.11 | Apache License 2.0 |
89+
| [JSONSchema2Pojo](http://jsonschema2pojo.org) | 1.01 | Apache License 2.0 |
90+
| [Angular](angular.io) | 11.2.0 | MIT |
91+
| [Nebular](https://akveo.github.io/nebular) | 7.0.0 | MIT |
92+
| [Json-Editor](https://github.com/json-editor/json-editor) | 2.3.0 | MIT |
93+
| [Bootstrap](https://getbootstrap.com ) | 4.6.0 | MIT |
94+
| [Ngx-configure](https://github.com/catrielmuller/ngx-configure) | 9.0.0 | ISC License |
95+
| [Ng2-smart-table](https://akveo.github.io/ng2-smart-table) | 1.7.2 | MIT |
96+
| [Rxjs](https://rxjs.dev/guide/overview) | 6.6.3 | Apache License 2.0 |
97+
| [Ngx-translate](http://www.ngx-translate.com/) | 13.0.0 | MIT |
98+
| [TypeScript](https://www.typescriptlang.org) | 4.1.5 | Apache License 2.0 |
99+
| [jQuery](jquery.com) | 3.5.1 | MIT |
100+
| [D3](https://d3js.org) | 6.2.0 | BSD |
101+
| [Material-design-icons](https://github.com/google/material-design-icons) | 3.0.1 | Apache License 2.0 |
102+
| [Fontawesome-free](https://fontawesome.com) | 5.14.0 | CC-BY-4.0 |
103+
| [Fontawesome-svg-core](https://www.npmjs.com/package/@fortawesome/fontawesome-svg-core) | 1.2.30 | MIT | | | |
104+
105+
---
106+
### External Components
107+
108+
CaPe uses [Fiware Keyrock](https://fiware-idm.readthedocs.io/en/latest/)(MIT License) as IdM.
109+
110+
---
111+
73112

74113
© 2021 Engineering Ingegneria Informatica S.p.A.

cape-sdk/service-sdk/Dockerfile

Lines changed: 44 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -1,45 +1,45 @@
1-
#
2-
# CaPe - a Consent Based Personal Data Suite
3-
# Copyright (C) 2020 Engineering Ingegneria Informatica S.p.A.
4-
#
5-
# Permission is hereby granted, free of charge, to any person obtaining a copy
6-
# of this software and associated documentation files (the "Software"), to deal
7-
# in the Software without restriction, including without limitation the rights
8-
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9-
# copies of the Software, and to permit persons to whom the Software is
10-
# furnished to do so, subject to the following conditions:
11-
#
12-
# The above copyright notice and this permission notice shall be included in
13-
# all copies or substantial portions of the Software.
14-
#
15-
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16-
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17-
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18-
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19-
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20-
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21-
# SOFTWARE.
22-
##############################################################################
23-
24-
FROM openjdk:8-jdk-alpine as build
25-
26-
MAINTAINER Engineering Ingegneria Informatica S.p.A.
27-
28-
COPY mvnw .
29-
COPY .mvn .mvn
30-
COPY pom.xml .
31-
COPY src src
32-
33-
RUN ./mvnw install -P docker
34-
RUN mkdir -p target/dependency && (cd target/dependency; jar -xf ../*.jar)
35-
36-
37-
38-
FROM openjdk:8-jdk-alpine as deploy
39-
VOLUME /tmp
40-
ARG DEPENDENCY=target/dependency
41-
COPY --from=build ${DEPENDENCY}/BOOT-INF/lib /app/lib
42-
COPY --from=build ${DEPENDENCY}/META-INF /app/META-INF
43-
COPY --from=build ${DEPENDENCY}/BOOT-INF/classes /app
44-
RUN apk add --no-cache bash
1+
#
2+
# CaPe - a Consent Based Personal Data Suite
3+
# Copyright (C) 2020 Engineering Ingegneria Informatica S.p.A.
4+
#
5+
# Permission is hereby granted, free of charge, to any person obtaining a copy
6+
# of this software and associated documentation files (the "Software"), to deal
7+
# in the Software without restriction, including without limitation the rights
8+
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
# copies of the Software, and to permit persons to whom the Software is
10+
# furnished to do so, subject to the following conditions:
11+
#
12+
# The above copyright notice and this permission notice shall be included in
13+
# all copies or substantial portions of the Software.
14+
#
15+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
# SOFTWARE.
22+
##############################################################################
23+
24+
FROM openjdk:15-jdk-alpine as build
25+
26+
MAINTAINER Engineering Ingegneria Informatica S.p.A.
27+
28+
COPY mvnw .
29+
COPY .mvn .mvn
30+
COPY pom.xml .
31+
COPY src src
32+
33+
RUN ./mvnw install -P docker
34+
RUN mkdir -p target/dependency && (cd target/dependency; jar -xf ../*.jar)
35+
36+
37+
38+
FROM openjdk:15-jdk-alpine as deploy
39+
VOLUME /tmp
40+
ARG DEPENDENCY=target/dependency
41+
COPY --from=build ${DEPENDENCY}/BOOT-INF/lib /app/lib
42+
COPY --from=build ${DEPENDENCY}/META-INF /app/META-INF
43+
COPY --from=build ${DEPENDENCY}/BOOT-INF/classes /app
44+
RUN apk add --no-cache bash
4545
ENTRYPOINT ["java","-cp","app:app/lib/*","it.eng.opsi.cape.sdk.CapeServiceSdkApplication"]

cape-sdk/service-sdk/doc/api/openapi.yaml

Lines changed: 1 addition & 0 deletions
Large diffs are not rendered by default.
Lines changed: 70 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -1,54 +1,70 @@
1-
version: "3.8"
2-
services:
3-
4-
service-sdk:
5-
image: capesuite/service-sdk
6-
build: ./
7-
ports:
8-
- "8085:8085"
9-
environment:
10-
#- PROFILE=
11-
- APIDOCS_PATH=/api-docs
12-
# - SPRING_LOGGING_LEVEL=DEBUG
13-
# - MONGO_LOGGING_LEVEL=DEBUG
14-
# - SECURITY_LOGGING_LEVEL=DEBUG
15-
# - CAPE_LOGGING_LEVEL=DEBUG
16-
- CAPE_ACCOUNT_MANAGER_URL=http://account-manager:8080/account-manager
17-
- CAPE_SERVICE_MANAGER_URL=http://service-manager:8082/service-manager
18-
- CAPE_SERVICE_REGISTRY_URL=http://service-registry:8088/service-registry
19-
- CAPE_CONSENT_MANAGER_URL=http://consent-manager:8083/consent-manager
20-
- CAPE_SERVICESDK_BUSINESS_ID=ENG
21-
- CAPE_SDK_MONGODB_HOST=service-sdk-mongo
22-
- CAPE_SDK_MONGODB_PORT=27017
23-
- CAPE_SDK_MONGODB_USER=root
24-
- CAPE_SDK_MONGODB_PASSWORD=root
25-
- CAPE_IDM_HOST=https://www.cape-suite.eu:8002
26-
- CAPE_IDM_CLIENTID=1c0407c2-b7ee-4117-8a99-c20b3a964cc1
27-
- CAPE_IDM_CLIENTSECRET=be308970-4f1b-4990-926a-987c948c462f
28-
- CAPE_IDM_USERINFOURI=https://www.cape-suite.eu:8002/user
29-
networks:
30-
- cape-sdk-network
31-
service-sdk-mongo:
32-
image: mongo:4.2
33-
restart: always
34-
ports:
35-
- "27025:27017"
36-
environment:
37-
MONGO_INITDB_ROOT_USERNAME: root
38-
MONGO_INITDB_ROOT_PASSWORD: root
39-
volumes:
40-
- type: volume
41-
source: service-sdk-volume
42-
target: /data/db
43-
volume:
44-
nocopy: true
45-
networks:
46-
- cape-sdk-network
47-
48-
volumes:
49-
service-sdk-volume:
50-
51-
networks:
52-
cape-sdk-network:
53-
external:
54-
name: cape-server-network
1+
#-------------------------------------------------------------------------------
2+
# CaPe - A Consent Based Personal Data Suite
3+
# Copyright (C) 2021 Engineering Ingegneria Informatica S.p.A.
4+
#
5+
# This program is free software: you can redistribute it and/or modify
6+
# it under the terms of the GNU Affero General Public License as published by
7+
# at your option) any later version.
8+
#
9+
# This program is distributed in the hope that it will be useful,
10+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
11+
# * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12+
# GNU Affero General Public License for more details.
13+
#
14+
# You should have received a copy of the GNU Affero General Public License
15+
# along with this program. If not, see <http://www.gnu.org/licenses/>.
16+
#-------------------------------------------------------------------------------
17+
version: "3.8"
18+
services:
19+
20+
service-sdk:
21+
image: capesuite/service-sdk
22+
build: ./
23+
ports:
24+
- "8085:8080"
25+
environment:
26+
#- PROFILE=
27+
- APIDOCS_PATH=/api-docs
28+
# - SPRING_LOGGING_LEVEL=DEBUG
29+
# - MONGO_LOGGING_LEVEL=DEBUG
30+
# - SECURITY_LOGGING_LEVEL=DEBUG
31+
# - CAPE_LOGGING_LEVEL=DEBUG
32+
- CAPE_ACCOUNT_MANAGER_URL=http://account-manager:8080/account-manager
33+
- CAPE_SERVICE_MANAGER_URL=http://service-manager:8082/service-manager
34+
- CAPE_SERVICE_REGISTRY_URL=http://service-registry:8088/service-registry
35+
- CAPE_CONSENT_MANAGER_URL=http://consent-manager:8083/consent-manager
36+
- CAPE_SERVICESDK_BUSINESS_ID=ENG
37+
- CAPE_SDK_MONGODB_HOST=service-sdk-mongo
38+
- CAPE_SDK_MONGODB_PORT=27017
39+
- CAPE_SDK_MONGODB_USER=root
40+
- CAPE_SDK_MONGODB_PASSWORD=root
41+
- CAPE_IDM_HOST=https://www.cape-suite.eu:8002
42+
- CAPE_IDM_CLIENTID=1c0407c2-b7ee-4117-8a99-c20b3a964cc1
43+
- CAPE_IDM_CLIENTSECRET=be308970-4f1b-4990-926a-987c948c462f
44+
- CAPE_IDM_USERINFOURI=https://www.cape-suite.eu:8002/user
45+
networks:
46+
- cape-sdk-network
47+
service-sdk-mongo:
48+
image: mongo:4.2
49+
restart: always
50+
ports:
51+
- "27025:27017"
52+
environment:
53+
MONGO_INITDB_ROOT_USERNAME: root
54+
MONGO_INITDB_ROOT_PASSWORD: root
55+
volumes:
56+
- type: volume
57+
source: service-sdk-volume
58+
target: /data/db
59+
volume:
60+
nocopy: true
61+
networks:
62+
- cape-sdk-network
63+
64+
volumes:
65+
service-sdk-volume:
66+
67+
networks:
68+
cape-sdk-network:
69+
external:
70+
name: cape-server-network
Lines changed: 70 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -1,54 +1,70 @@
1-
version: "3.8"
2-
services:
3-
4-
service-sdk:
5-
image: capesuite/service-sdk
6-
build: ./
7-
ports:
8-
- "8085:8085"
9-
environment:
10-
#- PROFILE=
11-
- APIDOCS_PATH=/api-docs
12-
# - SPRING_LOGGING_LEVEL=DEBUG
13-
# - MONGO_LOGGING_LEVEL=DEBUG
14-
# - SECURITY_LOGGING_LEVEL=DEBUG
15-
# - CAPE_LOGGING_LEVEL=DEBUG
16-
- CAPE_ACCOUNT_MANAGER_URL=http://account-manager:8080/account-manager
17-
- CAPE_SERVICE_MANAGER_URL=http://service-manager:8082/service-manager
18-
- CAPE_SERVICE_REGISTRY_URL=http://service-registry:8088/service-registry
19-
- CAPE_CONSENT_MANAGER_URL=http://consent-manager:8083/consent-manager
20-
- CAPE_SERVICESDK_BUSINESS_ID=ENG
21-
- CAPE_SDK_MONGODB_HOST=service-sdk-mongo
22-
- CAPE_SDK_MONGODB_PORT=27017
23-
- CAPE_SDK_MONGODB_USER=root
24-
- CAPE_SDK_MONGODB_PASSWORD=root
25-
- CAPE_IDM_HOST=https://www.cape-suite.eu:8002
26-
- CAPE_IDM_CLIENTID=c3b0f7d9-412b-4309-ac70-94a5cb04fcf7
27-
- CAPE_IDM_CLIENTSECRET=9d2eaac5-b9c1-4a42-bb35-20fa69ef896b
28-
- CAPE_IDM_USERINFOURI=https://www.cape-suite.eu:8002/user
29-
networks:
30-
- cape-sdk-network
31-
service-sdk-mongo:
32-
image: mongo:4.2
33-
restart: always
34-
ports:
35-
- "27025:27017"
36-
environment:
37-
MONGO_INITDB_ROOT_USERNAME: root
38-
MONGO_INITDB_ROOT_PASSWORD: root
39-
volumes:
40-
- type: volume
41-
source: service-sdk-volume
42-
target: /data/db
43-
volume:
44-
nocopy: true
45-
networks:
46-
- cape-sdk-network
47-
48-
volumes:
49-
service-sdk-volume:
50-
51-
networks:
52-
cape-sdk-network:
53-
external:
54-
name: cape-server-network
1+
#-------------------------------------------------------------------------------
2+
# CaPe - A Consent Based Personal Data Suite
3+
# Copyright (C) 2021 Engineering Ingegneria Informatica S.p.A.
4+
#
5+
# This program is free software: you can redistribute it and/or modify
6+
# it under the terms of the GNU Affero General Public License as published by
7+
# at your option) any later version.
8+
#
9+
# This program is distributed in the hope that it will be useful,
10+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
11+
# * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12+
# GNU Affero General Public License for more details.
13+
#
14+
# You should have received a copy of the GNU Affero General Public License
15+
# along with this program. If not, see <http://www.gnu.org/licenses/>.
16+
#-------------------------------------------------------------------------------
17+
version: "3.8"
18+
services:
19+
20+
service-sdk:
21+
image: capesuite/service-sdk
22+
build: ./
23+
ports:
24+
- "8085:8085"
25+
environment:
26+
#- PROFILE=
27+
- APIDOCS_PATH=/api-docs
28+
# - SPRING_LOGGING_LEVEL=DEBUG
29+
# - MONGO_LOGGING_LEVEL=DEBUG
30+
# - SECURITY_LOGGING_LEVEL=DEBUG
31+
# - CAPE_LOGGING_LEVEL=DEBUG
32+
- CAPE_ACCOUNT_MANAGER_URL=http://account-manager:8080/account-manager
33+
- CAPE_SERVICE_MANAGER_URL=http://service-manager:8082/service-manager
34+
- CAPE_SERVICE_REGISTRY_URL=http://service-registry:8088/service-registry
35+
- CAPE_CONSENT_MANAGER_URL=http://consent-manager:8083/consent-manager
36+
- CAPE_SERVICESDK_BUSINESS_ID=ENG
37+
- CAPE_SDK_MONGODB_HOST=service-sdk-mongo
38+
- CAPE_SDK_MONGODB_PORT=27017
39+
- CAPE_SDK_MONGODB_USER=root
40+
- CAPE_SDK_MONGODB_PASSWORD=root
41+
- CAPE_IDM_HOST=https://www.cape-suite.eu:8002
42+
- CAPE_IDM_CLIENTID=c3b0f7d9-412b-4309-ac70-94a5cb04fcf7
43+
- CAPE_IDM_CLIENTSECRET=9d2eaac5-b9c1-4a42-bb35-20fa69ef896b
44+
- CAPE_IDM_USERINFOURI=https://www.cape-suite.eu:8002/user
45+
networks:
46+
- cape-sdk-network
47+
service-sdk-mongo:
48+
image: mongo:4.2
49+
restart: always
50+
ports:
51+
- "27025:27017"
52+
environment:
53+
MONGO_INITDB_ROOT_USERNAME: root
54+
MONGO_INITDB_ROOT_PASSWORD: root
55+
volumes:
56+
- type: volume
57+
source: service-sdk-volume
58+
target: /data/db
59+
volume:
60+
nocopy: true
61+
networks:
62+
- cape-sdk-network
63+
64+
volumes:
65+
service-sdk-volume:
66+
67+
networks:
68+
cape-sdk-network:
69+
external:
70+
name: cape-server-network

0 commit comments

Comments
 (0)