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

feat: add SSI DIM Wallet Stub #125

Merged
Merged
Show file tree
Hide file tree
Changes from 6 commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
e55e6d5
chore: add SSI DIM Wallet Stub
CDiezRodriguez Oct 7, 2024
6bf3039
chore: Update Umbrella version
CDiezRodriguez Oct 11, 2024
b8360b9
chore: update deployment configuration
CDiezRodriguez Oct 14, 2024
ca78bcd
chore: Update Portal version from 2.0.0 to 2.2.0
CDiezRodriguez Oct 14, 2024
02d8d07
chore: update configuration to enable data exchange functionality
CDiezRodriguez Oct 21, 2024
165d265
chore: Add missing newline at end of files
CDiezRodriguez Oct 22, 2024
d5d6494
chore: requested changes
CDiezRodriguez Oct 22, 2024
bea21f2
chore: requested changes - 2
CDiezRodriguez Oct 22, 2024
021cf73
chore: requested changes - 3
CDiezRodriguez Oct 23, 2024
2db7b05
chore: fix indentation error
CDiezRodriguez Oct 23, 2024
f65ea73
chore: Update STUB version
CDiezRodriguez Oct 23, 2024
2642ac1
chore: requested changes - 4
CDiezRodriguez Oct 23, 2024
e3e85e8
chore: Organize structure and fix test
CDiezRodriguez Oct 24, 2024
3832cd0
chore: Lint errors - 1
CDiezRodriguez Oct 24, 2024
22f2990
chore: errors - 1
CDiezRodriguez Oct 24, 2024
f1437f5
chore: Lint errors - 2
CDiezRodriguez Oct 24, 2024
a396d4f
fix: adjust test configuration to utilize internal services for tx-da…
CDiezRodriguez Oct 25, 2024
7739673
fix: adjust test configuration to utilize internal services for tx-da…
CDiezRodriguez Oct 25, 2024
f479a9d
fix: adjust test configuration to utilize internal services for tx-da…
CDiezRodriguez Oct 25, 2024
d78367f
Merge branch 'main' into chore/ssi-dim-wallet-stub
CDiezRodriguez Oct 28, 2024
2dbc133
fix: correct merge
CDiezRodriguez Oct 28, 2024
c7a42af
chore: requested changes - 5
CDiezRodriguez Nov 4, 2024
8f1fa56
chore: remove redundant empty line
CDiezRodriguez Nov 4, 2024
d0c5b22
Merge branch 'main' into chore/ssi-dim-wallet-stub
CDiezRodriguez Nov 4, 2024
2022f90
chore: Fix Merge
CDiezRodriguez Nov 4, 2024
8baf474
fix: fix typo in iatp values after merge main
evegufy Nov 4, 2024
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
9 changes: 7 additions & 2 deletions charts/umbrella/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,15 @@ sources:
- https://github.com/eclipse-tractusx/tractus-x-umbrella

type: application
version: 1.0.0
version: 1.0.1

# when adding or updating versions of dependencies, also update list under README.md#Install
dependencies:
# portal
- condition: portal.enabled
name: portal
repository: https://eclipse-tractusx.github.io/charts/dev
version: 2.0.0
version: 2.2.0
# cx-iam
- condition: centralidp.enabled
name: centralidp
Expand Down Expand Up @@ -109,3 +109,8 @@ dependencies:
version: 0.1.0
repository: file://charts/iatpmock
condition: iatpmock.enabled
# ssi-dim-wallet-stub
- name: ssi-dim-wallet-stub
repository: https://eclipse-tractusx.github.io/charts/dev
version: 0.1.1
CDiezRodriguez marked this conversation as resolved.
Show resolved Hide resolved
condition: ssi-dim-wallet-stub.enabled
15 changes: 15 additions & 0 deletions charts/umbrella/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,7 @@ Collection of hosts to be added to the `/etc/hosts` (Linux and Mac) or the `C:\W
192.168.49.2 iatpmock.tx.test
192.168.49.2 business-partners.tx.test
192.168.49.2 pgadmin4.tx.test
192.168.49.2 ssi-dim-wallet-stub.tx.test
CDiezRodriguez marked this conversation as resolved.
Show resolved Hide resolved
```

Replace `192.168.49.2` with your `minikube ip` if it differs.
Expand Down Expand Up @@ -286,6 +287,7 @@ The currently available components are following:
- [bdrs](https://github.com/eclipse-tractusx/bpn-did-resolution-service/tree/0.0.4) (**in memory** - no persistance possible)
- [iatp-mock](https://github.com/eclipse-tractusx/tractus-x-umbrella/tree/main/charts/umbrella/charts/iatpmock/Chart.yaml)
- [bpdm](https://github.com/eclipse-tractusx/bpdm/tree/release/6.0.x)
- [ssi-dim-wallet-stub](https://github.com/eclipse-tractusx/ssi-dim-wallet-stub)
CDiezRodriguez marked this conversation as resolved.
Show resolved Hide resolved

> :warning: **Note**
>
Expand Down Expand Up @@ -448,12 +450,24 @@ dataconsumerTwo:
helm upgrade -f values-adopter-data-exchange.yaml umbrella . --namespace umbrella
```

*ssi-dim-wallet-stub Version*

```bash
helm install -f values-adopter-data-exchange-stub.yaml umbrella . --namespace umbrella --create-namespace
```

**Portal Subset**

```bash
helm install -f values-adopter-portal.yaml umbrella . --namespace umbrella --create-namespace
```

*ssi-dim-wallet-stub Version*

```bash
helm install -f values-adopter-portal-stub.yaml umbrella . --namespace umbrella --create-namespace
```

### E2E Adopter Journeys

#### Data exchange
Expand Down Expand Up @@ -586,6 +600,7 @@ Currently enabled ingresses:
- http://bdrs-server.tx.test
- http://iatpmock.tx.test
- http://pgadmin4.tx.test
- http://ssi-dim-wallet-stub.tx.test

### Database Access

Expand Down
212 changes: 212 additions & 0 deletions charts/umbrella/values-adopter-data-exchange-stub.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,212 @@
# #############################################################################
# Copyright (c) 2024 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
# #############################################################################
---

centralidp:
enabled: true
keycloak:
ingress:
enabled: true
ingressClassName: "nginx"
hostname: "centralidp.tx.test"
annotations:
nginx.ingress.kubernetes.io/cors-allow-credentials: "true"
nginx.ingress.kubernetes.io/cors-allow-methods: "PUT, GET, POST, OPTIONS"
nginx.ingress.kubernetes.io/cors-allow-origin: "http://centralidp.tx.test"
nginx.ingress.kubernetes.io/enable-cors: "true"
nginx.ingress.kubernetes.io/proxy-buffer-size: "128k"
nginx.ingress.kubernetes.io/proxy-buffering: "on"
nginx.ingress.kubernetes.io/proxy-buffers-number: "20"
nginx.ingress.kubernetes.io/use-regex: "true"
tls: false
# -- uncomment the following for persistence
# postgresql:
# primary:
# persistence:
# enabled: true
CDiezRodriguez marked this conversation as resolved.
Show resolved Hide resolved


bdrs-server-memory:
enabled: true
seeding:
bpnList:
- bpn: "BPNL000000000000"
did: "did:web:ssi-dim-wallet-stub.tx.test:BPNL000000000000"
CDiezRodriguez marked this conversation as resolved.
Show resolved Hide resolved
- bpn: "BPNL00000003B3NX"
did: "did:web:ssi-dim-wallet-stub.tx.test:BPNL00000003B3NX"
- bpn: "BPNL00000003CSGV"
did: "did:web:ssi-dim-wallet-stub.tx.test:BPNL00000003CSGV"
- bpn: "BPNL00000003B6LU"
did: "did:web:ssi-dim-wallet-stub.tx.test:BPNL00000003B6LU"
- bpn: "BPNL00000003AXS3"
did: "did:web:ssi-dim-wallet-stub.tx.test:BPNL00000003AXS3"
- bpn: "BPNL00000003AZQP"
did: "did:web:ssi-dim-wallet-stub.tx.test:BPNL00000003AZQP"
- bpn: "BPNL00000003AWSS"
did: "did:web:ssi-dim-wallet-stub.tx.test:BPNL00000003AWSS"
- bpn: "BPNL00000003AYRE"
did: "did:web:ssi-dim-wallet-stub.tx.test:BPNL00000003AYRE"
- bpn: "BPNL00000003AVTH"
did: "did:web:ssi-dim-wallet-stub.tx.test:BPNL00000003AVTH"
- bpn: "BPNL00000000BJTL"
did: "did:web:ssi-dim-wallet-stub.tx.test:BPNL00000000BJTL"
- bpn: "BPNL00000003CML1"
did: "did:web:ssi-dim-wallet-stub.tx.test:BPNL00000003CML1"
- bpn: "BPNL00000003B2OM"
did: "did:web:ssi-dim-wallet-stub.tx.test:BPNL00000003B2OM"
- bpn: "BPNL00000003B0Q0"
did: "did:web:ssi-dim-wallet-stub.tx.test:BPNL00000003B0Q0"
- bpn: "BPNL00000003B5MJ"
did: "did:web:ssi-dim-wallet-stub.tx.test:BPNL00000003B5MJ"
- bpn: "BPNS0000000008ZZ"
did: "did:web:ssi-dim-wallet-stub.tx.test:BPNS0000000008ZZ"
- bpn: "BPNL00000003CNKC"
did: "did:web:ssi-dim-wallet-stub.tx.test:BPNL00000003CNKC"
- bpn: "BPNS00000008BDFH"
did: "did:web:ssi-dim-wallet-stub.tx.test:BPNS00000008BDFH"
hostname: &hostname bdrs-server.tx.test
server:
trustedIssuers:
- did:web:ssi-dim-wallet-stub.tx.test:BPNL000000000000
CDiezRodriguez marked this conversation as resolved.
Show resolved Hide resolved
ingresses:
- enabled: true
hostname: *hostname
endpoints:
- directory
- management
tls:
enabled: false

dataconsumerOne:
enabled: true
secrets:
edc-miw-keycloak-secret: BPNL00000003AZQP
CDiezRodriguez marked this conversation as resolved.
Show resolved Hide resolved
tractusx-connector:
participant:
id: BPNL00000003AZQP
iatp:
id: did:web:ssi-dim-wallet-stub.tx.test:BPNL00000003AZQP
trustedIssuers:
- did:web:ssi-dim-wallet-stub.tx.test:BPNL000000000000
CDiezRodriguez marked this conversation as resolved.
Show resolved Hide resolved
sts:
dim:
url: http://ssi-dim-wallet-stub.tx.test/api/sts
oauth:
token_url: http://ssi-dim-wallet-stub.tx.test/oauth/token
client:
id: BPNL00000003AZQP
evegufy marked this conversation as resolved.
Show resolved Hide resolved
secret_alias: edc-miw-keycloak-secret
controlplane:
env:
TX_IAM_IATP_CREDENTIALSERVICE_URL: http://ssi-dim-wallet-stub.tx.test/api
dataplane:
env:
TX_IAM_IATP_CREDENTIALSERVICE_URL: http://ssi-dim-wallet-stub.tx.test/api
# -- uncomment the following for persistence
# postgresql:
# primary:
# persistence:
# enabled: true

tx-data-provider:
seedTestdata: true
enabled: true
secrets:
edc-miw-keycloak-secret: BPNL00000003AYRE
CDiezRodriguez marked this conversation as resolved.
Show resolved Hide resolved
tractusx-connector:
participant:
id: BPNL00000003AYRE
iatp:
id: did:web:ssi-dim-wallet-stub.tx.test:BPNL00000003AYRE
trustedIssuers:
- did:web:ssi-dim-wallet-stub.tx.test:BPNL000000000000
CDiezRodriguez marked this conversation as resolved.
Show resolved Hide resolved
sts:
dim:
url: http://ssi-dim-wallet-stub.tx.test/api/sts
oauth:
token_url: http://ssi-dim-wallet-stub.tx.test/oauth/token
client:
id: BPNL00000003AYRE
evegufy marked this conversation as resolved.
Show resolved Hide resolved
secret_alias: edc-miw-keycloak-secret
controlplane:
env:
TX_IAM_IATP_CREDENTIALSERVICE_URL: http://ssi-dim-wallet-stub.tx.test/api
dataplane:
env:
TX_IAM_IATP_CREDENTIALSERVICE_URL: http://ssi-dim-wallet-stub.tx.test/api
# -- uncomment the following for persistence
# postgresql:
# primary:
# persistence:
# enabled: true
# digital-twin-registry:
# postgresql:
# primary:
# persistence:
# enabled: true

dataconsumerTwo:
enabled: false
secrets:
edc-miw-keycloak-secret: BPNL000000000000
CDiezRodriguez marked this conversation as resolved.
Show resolved Hide resolved
tractusx-connector:
participant:
id: BPNL00000003AVTH
iatp:
id: did:web:ssi-dim-wallet-stub.tx.test:BPNL00000003AVTH
trustedIssuers:
- did:web:ssi-dim-wallet-stub.tx.test:BPNL000000000000
CDiezRodriguez marked this conversation as resolved.
Show resolved Hide resolved
sts:
dim:
url: http://ssi-dim-wallet-stub.tx.test/api/sts
oauth:
token_url: http://ssi-dim-wallet-stub.tx.test/oauth/token
client:
id: BPNL000000000000
evegufy marked this conversation as resolved.
Show resolved Hide resolved
CDiezRodriguez marked this conversation as resolved.
Show resolved Hide resolved
secret_alias: edc-miw-keycloak-secret
controlplane:
env:
TX_IAM_IATP_CREDENTIALSERVICE_URL: http://ssi-dim-wallet-stub.tx.test/api
dataplane:
env:
TX_IAM_IATP_CREDENTIALSERVICE_URL: http://ssi-dim-wallet-stub.tx.test/api
# -- uncomment the following for persistence
# postgresql:
# primary:
# persistence:
# enabled: true

pgadmin4:
enabled: true
# -- uncomment the following for persistence
# persistentVolume:
# enabled: true

ssi-credential-issuer:
enabled: true
walletAddress: "http://ssi-dim-wallet-stub.tx.test"
walletTokenAddress: "http://ssi-dim-wallet-stub.tx.test/oauth/token"
issuer:
credential:
issuerDid: "did:web:ssi-dim-wallet-stub.tx.test:BPNL000000000000"
issuerBpn: "BPNL000000000000"
statusListUrl: "http://ssi-dim-wallet-stub.tx.test/status-list/BPNL000000000000/8a6c7486-1e1f-4555-bdd2-1a178182651e"
CDiezRodriguez marked this conversation as resolved.
Show resolved Hide resolved

ssi-dim-wallet-stub:
enabled: true
97 changes: 97 additions & 0 deletions charts/umbrella/values-adopter-portal-stub.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,97 @@
# #############################################################################
# Copyright (c) 2024 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
# #############################################################################
---

portal:
enabled: true
custodianAddress: "http://ssi-dim-wallet-stub.tx.test"
dimWrapper:
baseAddress: "http://ssi-dim-wallet-stub.tx.test"
apiPath: "/api/dim"
backend:
decentralIdentityManagementAuthAddress: "http://ssi-dim-wallet-stub.tx.test/api/sts"
administration:
issuerdid: "did:web:managed-identity-wallets.tx.test:BPNL000000000000"
CDiezRodriguez marked this conversation as resolved.
Show resolved Hide resolved
processesworker:
sdfactory:
issuerBpn: "BPNL000000000000"
CDiezRodriguez marked this conversation as resolved.
Show resolved Hide resolved
dim:
clientId: "sa-cl2-05"
clientSecret: "zuBGfr67Tj0WJ5fAJSIRvoPEP5hSQFMT"
CDiezRodriguez marked this conversation as resolved.
Show resolved Hide resolved
grantType: "client_credentials"
scope: "openid"
baseAddress: "http://ssi-dim-wallet-stub.tx.test"


# -- uncomment the following for persistance
# postgresql:
# primary:
# persistence:
# enabled: true

centralidp:
enabled: true
# -- uncomment the following for persistance
# keycloak:
# postgresql:
# primary:
# persistence:
# enabled: true

sharedidp:
enabled: true
# -- uncomment the following for persistance
# keycloak:
# postgresql:
# primary:
# persistence:
# enabled: true

pgadmin4:
enabled: true
# -- uncomment the following for persistance
# persistentVolume:
# enabled: true

# Interfaces are disabled by default (other than IAM)

bpdm:
enabled: true

selfdescription:
enabled: false

bpndiscovery:
enabled: false

discoveryfinder:
enabled: false

ssi-credential-issuer:
enabled: true
walletAddress: "http://ssi-dim-wallet-stub.tx.test"
walletTokenAddress: "http://ssi-dim-wallet-stub.tx.test/oauth/token"
issuer:
credential:
issuerDid: "did:web:ssi-dim-wallet-stub.tx.test:BPNL000000000000"
issuerBpn: "BPNL000000000000"
statusListUrl: "http://ssi-dim-wallet-stub.tx.test/status-list/BPNL000000000000/8a6c7486-1e1f-4555-bdd2-1a178182651e"
CDiezRodriguez marked this conversation as resolved.
Show resolved Hide resolved

ssi-dim-wallet-stub:
enabled: true
Loading