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

[ 3° ] - Release/v1.1.0 registry setup: dDTR setup and adjust digital twins to AAS 3.0 #131

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
0b1d5ed
add cx-registry dependency in edc provider
saudkhan116 Jun 28, 2023
74cab25
configure cx-registry user credentials in edc provider
saudkhan116 Jun 28, 2023
901a33e
configure ingress tls to allow external access of resource
saudkhan116 Jun 28, 2023
9e61b8a
fix database and ingress configuration
saudkhan116 Jun 28, 2023
459cc9b
prepare a registry helm chart
saudkhan116 Jun 28, 2023
84de539
remove registry as dependency service in edc-provider
saudkhan116 Jun 28, 2023
8271a15
chore: enable ingress annotations
saudkhan116 Jul 19, 2023
da34dda
Merge branch 'eclipse-tractusx:main' into feature/cmp-654/deploy-mock…
saudkhan116 Jul 19, 2023
ec2d705
Merge branch 'develop' of https://github.com/catenax-ng/tx-digital-pr…
saudkhan116 Jul 20, 2023
31d71cf
chore: update infrastructure/provider scripts, resources and postman …
saudkhan116 Jul 21, 2023
6ebd5df
Merge branch 'feature/cmp-654/deploy-mock-dtr' of https://github.com/…
saudkhan116 Jul 21, 2023
cc16abd
chore: upgraded registry helm chart versions
saudkhan116 Jul 28, 2023
c40a804
chore: upadate registry version
saudkhan116 Aug 25, 2023
1e348f7
chore: update registry helm chart
saudkhan116 Aug 25, 2023
2fd8b30
chore: updated registry and chart version
saudkhan116 Aug 30, 2023
ccc49d1
chore: updated chart dependencies in chart.yaml
saudkhan116 Aug 30, 2023
7ce623b
chore: update digital twins and DTR asset in resources
saudkhan116 Aug 31, 2023
037d332
Merge branch 'develop' into deploy-mock-dtr
saudkhan116 Sep 21, 2023
98ea1cd
chore: remove unnecessary files
saudkhan116 Sep 21, 2023
33c4eeb
Merge pull request #172 from catenax-ng/deploy-mock-dtr
saudkhan116 Sep 21, 2023
12f72d6
Merge branch 'eclipse-tractusx:main' into release/v1.1.0-registry-setup
matbmoser Sep 25, 2023
9bdd9d8
chore: executed ip checks for backend and frontend
Sep 25, 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
2 changes: 1 addition & 1 deletion DEPENDENCIES_BACKEND
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ maven/mavencentral/io.swagger.core.v3/swagger-models-jakarta/2.2.7, Apache-2.0,
maven/mavencentral/jakarta.activation/jakarta.activation-api/2.1.2, EPL-2.0 OR BSD-3-Clause OR GPL-2.0-only with Classpath-exception-2.0, approved, ee4j.jaf
maven/mavencentral/jakarta.annotation/jakarta.annotation-api/2.1.1, EPL-2.0 OR GPL-2.0-only with Classpath-exception-2.0, approved, ee4j.ca
maven/mavencentral/jakarta.servlet/jakarta.servlet-api/6.0.0, EPL-2.0 OR GPL-2.0-only with Classpath-exception-2.0, approved, ee4j.servlet
maven/mavencentral/jakarta.validation/jakarta.validation-api/3.0.2, Apache-2.0, approved, clearlydefined
maven/mavencentral/jakarta.validation/jakarta.validation-api/3.0.2, Apache-2.0, approved, ee4j.validation
maven/mavencentral/jakarta.xml.bind/jakarta.xml.bind-api/4.0.0, BSD-3-Clause, approved, ee4j.jaxb
maven/mavencentral/net.minidev/accessors-smart/2.4.11, Apache-2.0, approved, #7515
maven/mavencentral/net.minidev/json-smart/2.4.11, Apache-2.0, approved, #3288
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -188,4 +188,4 @@ public void onStartUp() {
}

// Store the process manager in memory
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -687,4 +687,4 @@ public String saveDataset(String processId, Dataset dataset, Long startedTime, B
}
}

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -942,4 +942,4 @@ public Transfer getTransferData(IdResponse transferData) {

}

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -122,4 +122,4 @@ server:
include-exception: false
port: 8888
tomcat:
max-connections: 10000
max-connections: 10000
3 changes: 2 additions & 1 deletion deployment/helm/edc-provider/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -573,4 +573,5 @@ postgresql:
auth:
database: "edc"
username: <path:material-pass/data/dev/edc/database#user>
password: <path:material-pass/data/dev/edc/database#password>
password: <path:material-pass/data/dev/edc/database#password>

34 changes: 34 additions & 0 deletions deployment/helm/registry/Chart.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
###############################################################
# Copyright (c) 2021, 2023 Robert Bosch Manufacturing Solutions GmbH
# Copyright (c) 2021, 2023 Contributors to the Eclipse Foundation
#
# See the NOTICE file(s) distributed with this work for additional
# information regarding copyright ownership.
#
# This program and the accompanying materials are made available under the
# terms of the Apache License, Version 2.0 which is available at
# https://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.
#
# SPDX-License-Identifier: Apache-2.0
###############################################################

apiVersion: v2
name: registry
description: Tractus-X Digital Twin Registry Helm Chart

type: application
version: 0.3.23
#appVersion: 0.3.15-M1

dependencies:
- name: registry
repository: https://eclipse-tractusx.github.io/sldt-digital-twin-registry
alias: provider-dtr
version: 0.3.23
condition: enabled
67 changes: 67 additions & 0 deletions deployment/helm/registry/values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
###############################################################
# Copyright (c) 2021, 2023 Robert Bosch Manufacturing Solutions GmbH
# Copyright (c) 2021, 2023 Contributors to the Eclipse Foundation
#
# See the NOTICE file(s) distributed with this work for additional
# information regarding copyright ownership.
#
# This program and the accompanying materials are made available under the
# terms of the Apache License, Version 2.0 which is available at
# https://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.
#
# SPDX-License-Identifier: Apache-2.0
###############################################################


provider-dtr:
registry:
host: materialpass.int.demo.catena-x.net
## If 'authentication' is set to false, no OAuth authentication is enforced
authentication: false
# Issuer url for the dtr (resource server),
# make sure that the url points to an externally resolvable hostname.
# If no value is committed, and the integrated Keycloak is enabled,
# the K8s internal service name is used, which is a problem, when
# validating the issuer claim in an access token
idpIssuerUri: https://centralidp.int.demo.catena-x.net/auth/realms/CX-Central
idpClientId: Cl13-CX-Battery
tenantId: default-tenant
dataSource:
driverClassName: org.postgresql.Driver
sqlInitPlatform: pg
## The url, user, and password parameter will be ignored if 'enablePostgres' is set to true.
## In that case the postgresql auth parameters are used.
url: jdbc:postgresql://registry:5432
user: <path:material-pass/data/dev/aasregistry/database.user>
password: <path:material-pass/data/dev/aasregistry/database.password>
ingress:
enabled: true
tls: true
urlPrefix: /semantics/registry
className: nginx
annotations:
# Add annotations for the ingress, e.g.:
cert-manager.io/cluster-issuer: selfsigned-cluster-issuer
nginx.ingress.kubernetes.io/rewrite-target: /$2
nginx.ingress.kubernetes.io/use-regex: "true"
nginx.ingress.kubernetes.io/enable-cors: "true"
nginx.ingress.kubernetes.io/cors-allow-credentials: "true"
nginx.ingress.kubernetes.io/x-forwarded-prefix: /semantics/registry

# enables the default postgres database
enablePostgres: true
# enables the default keycloak identity provider
# relies on a postgres instance
enableKeycloak: false

postgresql:
auth:
username: <path:material-pass/data/dev/aasregistry/database.user>
password: <path:material-pass/data/dev/aasregistry/database.password>
database: default-database
1 change: 0 additions & 1 deletion deployment/infrastructure/delete-provider-dtr.sh
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ DIGITAL_TWIN_SUBMODEL_ID_4='26bf39c5-68a5-43a1-8db7-d33e116a6f61'
SERVER_URL='<data-provider-url>'
REGISTRY_URL='<registry-url/api/v3.0/shell-descriptors>'


# put access token without 'Bearer ' prefix
BEARER_TOKEN=''

Expand Down
1 change: 0 additions & 1 deletion deployment/infrastructure/init-provider-dtr.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ DIGITAL_TWIN_SUBMODEL_ID_4='26bf39c5-68a5-43a1-8db7-d33e116a6f61'
SERVER_URL='<data-provider-url>'
REGISTRY_URL='<registry-url/api/v3.0/shell-descriptors>'


# put access token without 'Bearer ' prefix
BEARER_TOKEN=''

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"@type": "data.core.digitalTwinRegistry",
"@id": "digital-twin-registry",
"properties": {
"type": "data.core.digitalTwinRegistry",
"description": "Battery Passport test data",
"contenttype": "application/json"
}
Expand Down
20 changes: 18 additions & 2 deletions deployment/infrastructure/resources/digitaltwins/IMR18650V1.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,16 @@
"specificAssetIds": [
{
"name": "partInstanceId",
"value": "IMR18650V1"
"value": "IMR18650V1",
"externalSubjectId": {
"type": "ExternalReference",
"keys": [
{
"type": "Submodel",
"value": "<some-bpn>"
}
]
}
}
],
"submodelDescriptors": [
Expand All @@ -26,7 +35,14 @@
],
"subprotocol": "DSP",
"subprotocolBody": "id=365e6fbe-bb34-11ec-8422-0242ac120002-61125dc3-5e6f-4f4b-838d-447432b97918;dspEndpoint=https://materialpass.int.demo.catena-x.net/BPNL000000000000/",
"subprotocolBodyEncoding": "plain"
"subprotocolBodyEncoding": "plain",
"securityAttributes": [
{
"type": "NONE",
"key": "NONE",
"value": "NONE"
}
]
}
}
],
Expand Down
20 changes: 18 additions & 2 deletions deployment/infrastructure/resources/digitaltwins/NCR186850B.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,16 @@
"specificAssetIds": [
{
"name": "partInstanceId",
"value": "NCR186850B"
"value": "NCR186850B",
"externalSubjectId": {
"type": "ExternalReference",
"keys": [
{
"type": "Submodel",
"value": "<some-bpn>"
}
]
}
}
],
"submodelDescriptors": [
Expand All @@ -26,7 +35,14 @@
],
"subprotocol": "DSP",
"subprotocolBody": "id=1f4a64f0-aba9-498a-917c-4936c24c50cd-49a06ad2-64b7-46c8-9f3b-a718c462ca23;dspEndpoint=https://materialpass.int.demo.catena-x.net/BPNL000000000000/",
"subprotocolBodyEncoding": "plain"
"subprotocolBodyEncoding": "plain",
"securityAttributes": [
{
"type": "NONE",
"key": "NONE",
"value": "NONE"
}
]
}
}
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,16 @@
"specificAssetIds": [
{
"name": "partInstanceId",
"value": "X123456789012X12345678901234566"
"value": "X123456789012X12345678901234566",
"externalSubjectId": {
"type": "ExternalReference",
"keys": [
{
"type": "Submodel",
"value": "<some-bpn>"
}
]
}
}
],
"submodelDescriptors": [
Expand All @@ -26,7 +35,14 @@
],
"subprotocol": "DSP",
"subprotocolBody": "id=32aa72de-297a-4405-9148-13e12744028a-699f1245-f57e-4d6b-acdb-ab763665554a;dspEndpoint=https://materialpass.int.demo.catena-x.net/BPNL000000000000/",
"subprotocolBodyEncoding": "plain"
"subprotocolBodyEncoding": "plain",
"securityAttributes": [
{
"type": "NONE",
"key": "NONE",
"value": "NONE"
}
]
}
}
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,16 @@
"specificAssetIds": [
{
"name": "partInstanceId",
"value": "Y792927456954B81677903848654570"
"value": "Y792927456954B81677903848654570",
"externalSubjectId": {
"type": "ExternalReference",
"keys": [
{
"type": "Submodel",
"value": "<some-bpn>"
}
]
}
}
],
"submodelDescriptors": [
Expand All @@ -26,7 +35,14 @@
],
"subprotocol": "DSP",
"subprotocolBody": "id=1f0ef836-40b7-4f31-a9bd-cb6a8960779e-26bf39c5-68a5-43a1-8db7-d33e116a6f61;dspEndpoint=https://materialpass.int.demo.catena-x.net/BPNL000000000000/",
"subprotocolBodyEncoding": "plain"
"subprotocolBodyEncoding": "plain",
"securityAttributes": [
{
"type": "NONE",
"key": "NONE",
"value": "NONE"
}
]
}
}
],
Expand All @@ -49,4 +65,4 @@
]
}
]
}
}
Loading