Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/dc4eu-rome'
Browse files Browse the repository at this point in the history
  • Loading branch information
kkmanos committed Sep 6, 2024
2 parents 5049731 + fc821c5 commit a963970
Show file tree
Hide file tree
Showing 132 changed files with 1,726 additions and 3,531 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/docker-build-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
password: ${{secrets.GITHUB_TOKEN}}

- name: Set up .npmrc to access GitHub NPM registry
uses: wwwallet/wallet-ecosystem/.github/actions/setup-npmrc@master
uses: gunet/wallet-ecosystem/.github/actions/setup-npmrc@dc4eu-rome
with:
token: ${{ secrets.GITHUB_TOKEN }}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ on:
push:
branches-ignore:
- master
- dc4eu-rome
pull_request:

jobs:
Expand All @@ -14,6 +15,6 @@ jobs:
uses: ./.github/workflows/docker-build-push.yml
secrets: inherit
with:
image-tag: ghcr.io/wwwallet/wallet-enterprise-acme-verifier:latest
image-tag: ghcr.io/gunet/wallet-enterprise-acme-verifier:latest
docker-push: false
dockerfile-path: ./wallet-enterprise-configurations/acme-verifier/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ on:
push:
branches-ignore:
- master
- dc4eu-rome
pull_request:

jobs:
Expand All @@ -14,6 +15,6 @@ jobs:
uses: ./.github/workflows/docker-build-push.yml
secrets: inherit
with:
image-tag: ghcr.io/wwwallet/wallet-enterprise-ehic-issuer:latest
image-tag: ghcr.io/gunet/wallet-enterprise-ehic-issuer:latest
docker-push: false
dockerfile-path: ./wallet-enterprise-configurations/ehic-issuer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,18 @@ on:
push:
branches-ignore:
- master
- dc4eu-rome
pull_request:

jobs:
build-diploma:
build-pda1:
permissions:
contents: read
packages: read

uses: ./.github/workflows/docker-build-push.yml
secrets: inherit
with:
image-tag: ghcr.io/wwwallet/wallet-enterprise-diploma-issuer:latest
image-tag: ghcr.io/gunet/wallet-enterprise-pda1-issuer:latest
docker-push: false
dockerfile-path: ./wallet-enterprise-configurations/diploma-issuer/Dockerfile
dockerfile-path: ./wallet-enterprise-configurations/pda1-issuer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ on:
push:
branches-ignore:
- master
- dc4eu-rome
pull_request:

jobs:
Expand All @@ -14,6 +15,6 @@ jobs:
uses: ./.github/workflows/docker-build-push.yml
secrets: inherit
with:
image-tag: ghcr.io/wwwallet/wallet-enterprise-vid-issuer:latest
image-tag: ghcr.io/gunet/wallet-enterprise-vid-issuer:latest
docker-push: false
dockerfile-path: ./wallet-enterprise-configurations/vid-issuer/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Push Docker image
on:
push:
branches:
- dc4eu-rome

jobs:
push-acme:
permissions:
contents: read
packages: write

uses: ./.github/workflows/docker-build-push.yml
secrets: inherit
with:
image-tag: ghcr.io/gunet/wallet-enterprise-acme-verifier:latest
docker-push: true
dockerfile-path: ./wallet-enterprise-configurations/acme-verifier/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@ jobs:
uses: ./.github/workflows/docker-build-push.yml
secrets: inherit
with:
image-tag: ghcr.io/wwwallet/wallet-enterprise-acme-verifier:${{ github.ref_name }}
image-tag: ghcr.io/gunet/wallet-enterprise-acme-verifier:${{ github.ref_name }}
docker-push: true
dockerfile-path: ./wallet-enterprise-configurations/acme-verifier/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Push Docker image
on:
push:
branches:
- dc4eu-rome

jobs:
push-ehic:
permissions:
contents: read
packages: write

uses: ./.github/workflows/docker-build-push.yml
secrets: inherit
with:
image-tag: ghcr.io/gunet/wallet-enterprise-ehic-issuer:latest
docker-push: true
dockerfile-path: ./wallet-enterprise-configurations/ehic-issuer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@ jobs:
uses: ./.github/workflows/docker-build-push.yml
secrets: inherit
with:
image-tag: ghcr.io/wwwallet/wallet-enterprise-ehic-issuer:${{ github.ref_name }}
image-tag: ghcr.io/gunet/wallet-enterprise-ehic-issuer:${{ github.ref_name }}
docker-push: true
dockerfile-path: ./wallet-enterprise-configurations/ehic-issuer/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Push Docker image
on:
push:
branches:
- dc4eu-rome

jobs:
push-pda1:
permissions:
contents: read
packages: write

uses: ./.github/workflows/docker-build-push.yml
secrets: inherit
with:
image-tag: ghcr.io/gunet/wallet-enterprise-pda1-issuer:latest
docker-push: true
dockerfile-path: ./wallet-enterprise-configurations/pda1-issuer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@ on:
- v2.*

jobs:
push-diploma:
push-pda1:
permissions:
contents: read
packages: write

uses: ./.github/workflows/docker-build-push.yml
secrets: inherit
with:
image-tag: ghcr.io/wwwallet/wallet-enterprise-diploma-issuer:${{ github.ref_name }}
image-tag: ghcr.io/gunet/wallet-enterprise-pda1-issuer:${{ github.ref_name }}
docker-push: true
dockerfile-path: ./wallet-enterprise-configurations/diploma-issuer/Dockerfile
dockerfile-path: ./wallet-enterprise-configurations/pda1-issuer/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Push Docker image
on:
push:
branches:
- dc4eu-rome

jobs:
push-vid:
permissions:
contents: read
packages: write

uses: ./.github/workflows/docker-build-push.yml
secrets: inherit
with:
image-tag: ghcr.io/gunet/wallet-enterprise-vid-issuer:latest
docker-push: true
dockerfile-path: ./wallet-enterprise-configurations/vid-issuer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@ jobs:
uses: ./.github/workflows/docker-build-push.yml
secrets: inherit
with:
image-tag: ghcr.io/wwwallet/wallet-enterprise-vid-issuer:${{ github.ref_name }}
image-tag: ghcr.io/gunet/wallet-enterprise-vid-issuer:${{ github.ref_name }}
docker-push: true
dockerfile-path: ./wallet-enterprise-configurations/vid-issuer/Dockerfile
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ docker-compose.yml
*.production*
*.tar
.npmrc
dataset.json
16 changes: 11 additions & 5 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
[submodule "wallet-enterprise"]
path = wallet-enterprise
url = [email protected]:gunet/wallet-enterprise.git
[submodule "wallet-backend-server"]
path = wallet-backend-server
url = [email protected]:wwwallet/wallet-backend-server.git
url = [email protected]:gunet/wallet-backend-server.git
[submodule "wallet-frontend"]
path = wallet-frontend
url = [email protected]:wwwallet/wallet-frontend.git
[submodule "wallet-enterprise"]
path = wallet-enterprise
url = [email protected]:wwwallet/wallet-enterprise.git
url = [email protected]:gunet/wallet-frontend.git
[submodule "resources-vault"]
path = resources-vault
url = [email protected]:gunet/resources-vault.git
[submodule "credential-status-list"]
path = credential-status-list
url = [email protected]:gunet/credential-status-list.git
1 change: 1 addition & 0 deletions credential-status-list
Submodule credential-status-list added at d5cfde
3 changes: 3 additions & 0 deletions db-setup/scripts/init.sql
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,6 @@ CREATE DATABASE issuer;
CREATE DATABASE vidissuer;
CREATE DATABASE ehicissuer;
CREATE DATABASE verifier;
CREATE DATABASE pda1issuer;
CREATE DATABASE resources_vault;
CREATE DATABASE credential_status_list;
76 changes: 62 additions & 14 deletions docker-compose.template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ services:
condition: service_healthy
volumes:
- ./wallet-enterprise:/app:rw
- ./wallet-enterprise-configurations/vid-issuer/datasets/:/datasets/:rw
- ./wallet-enterprise-configurations/vid-issuer/config/config.development.ts:/app/config/config.development.ts:rw
- ./wallet-enterprise-configurations/vid-issuer/keys:/app/keys:rw
- ./wallet-enterprise-configurations/vid-issuer/src/configuration:/app/src/configuration:rw
Expand Down Expand Up @@ -54,10 +55,13 @@ services:
condition: service_healthy
volumes:
- ./wallet-enterprise:/app:rw
- ./wallet-enterprise-configurations/ehic-issuer/datasets/:/datasets/:rw
- ./wallet-enterprise-configurations/ehic-issuer/config/config.development.ts:/app/config/config.development.ts:rw
- ./wallet-enterprise-configurations/ehic-issuer/keys:/app/keys:rw
- ./wallet-enterprise-configurations/ehic-issuer/public/styles/styles.css:/app/public/styles/styles.css:rw
- ./wallet-enterprise-configurations/ehic-issuer/src/configuration:/app/src/configuration:rw
- ./wallet-enterprise-configurations/ehic-issuer/views/header.pug:/app/views/header.pug:rw
- ./wallet-enterprise-configurations/ehic-issuer/views/index.pug:/app/views/index.pug:rw
- ./.vscode/:/app/.vscode:rw
- type: tmpfs
target: /app/dist # Not /dist here because of relative imports that assume dist/ and keys/, views/ etc. are sibling dirs
Expand All @@ -68,40 +72,41 @@ services:
limits:
memory: 1G

wallet-enterprise-diploma-issuer:
container_name: wallet-enterprise-diploma-issuer
hostname: wallet-enterprise-diploma-issuer
wallet-enterprise-pda1-issuer:
container_name: wallet-enterprise-pda1-issuer
hostname: wallet-enterprise-pda1-issuer
build:
context: $PWD/wallet-enterprise
dockerfile: development.Dockerfile
secrets:
- npmrc
image: wallet-enterprise:dev-diploma
restart: on-failure
image: wallet-enterprise:dev-pda1
restart: always
ports:
- 8000:8000
- 8006:8006
depends_on:
wallet-db:
condition: service_healthy
volumes:
- ./wallet-enterprise:/app:rw
- ./wallet-enterprise-configurations/diploma-issuer/config/config.development.ts:/app/config/config.development.ts:rw
- ./wallet-enterprise-configurations/diploma-issuer/keys:/app/keys:rw
- ./wallet-enterprise-configurations/diploma-issuer/src/configuration:/app/src/configuration:rw
- ./wallet-enterprise-configurations/diploma-issuer/views/header.pug:/app/views/header.pug:rw
- ./wallet-enterprise-configurations/diploma-issuer/views/index.pug:/app/views/index.pug:rw
- ./wallet-enterprise-configurations/diploma-issuer/public/styles/styles.css:/app/public/styles/styles.css:rw
- ./wallet-enterprise-configurations/diploma-issuer/public/images:/app/public/images:rw
- ./wallet-enterprise-configurations/pda1-issuer/datasets/:/datasets/:rw
- ./wallet-enterprise-configurations/pda1-issuer/config/config.development.ts:/app/config/config.development.ts:rw
- ./wallet-enterprise-configurations/pda1-issuer/keys:/app/keys:rw
- ./wallet-enterprise-configurations/pda1-issuer/src/configuration:/app/src/configuration:rw
- ./wallet-enterprise-configurations/pda1-issuer/views/header.pug:/app/views/header.pug:rw
- ./wallet-enterprise-configurations/pda1-issuer/public/styles/styles.css:/app/public/styles/styles.css:rw
- ./wallet-enterprise-configurations/pda1-issuer/views/index.pug:/app/views/index.pug:rw
- ./.vscode/:/app/.vscode:rw
- type: tmpfs
target: /app/dist
target: /app/dist # Not /dist here because of relative imports that assume dist/ and keys/, views/ etc. are sibling dirs
tmpfs:
mode: 01777
deploy:
resources:
limits:
memory: 1G


wallet-enterprise-acme-verifier:
container_name: wallet-enterprise-acme-verifier
hostname: wallet-enterprise-acme-verifier
Expand Down Expand Up @@ -129,6 +134,7 @@ services:
- ./wallet-enterprise-configurations/acme-verifier/views/verifier/QR.pug:/app/views/verifier/QR.pug:rw
- ./wallet-enterprise-configurations/acme-verifier/views/verifier/success.pug:/app/views/verifier/success.pug:rw
- ./wallet-enterprise-configurations/acme-verifier/public/images:/app/public/images:rw
- ./wallet-enterprise-configurations/acme-verifier/public/site.webmanifest:/app/public/site.webmanifest:rw
- ./.vscode/:/app/.vscode:rw
- type: tmpfs
target: /app/dist
Expand Down Expand Up @@ -204,6 +210,32 @@ services:
limits:
memory: 1G

credential-status-list:
container_name: credential-status-list
build:
context: $PWD/credential-status-list
dockerfile: development.Dockerfile
secrets:
- npmrc
image: credential-status-list:dev
restart: on-failure
ports:
- 9001:9001
depends_on:
wallet-db:
condition: service_healthy
volumes:
- ./credential-status-list:/usr/src/app:rw
- ./.vscode/:/usr/src/app/.vscode:rw
- type: tmpfs
target: /dist
tmpfs:
mode: 01777
deploy:
resources:
limits:
memory: 1G

wallet-frontend:
build:
context: $PWD/wallet-frontend
Expand All @@ -225,6 +257,22 @@ services:
tmpfs:
mode: 01777

resources-vault:
build:
context: $PWD/resources-vault
dockerfile: Dockerfile
image: resources-vault:dev
container_name: resources-vault
hostname: resources-vault
volumes:
- ./resources-vault/src/config/config.js:/app/src/config/config.js
- ./resources-vault/keys/:/app/keys/
depends_on:
wallet-db:
condition: service_healthy
ports:
- 6555:6555

volumes:
datadir:
cache:
Expand Down
1 change: 1 addition & 0 deletions resources-vault
Submodule resources-vault added at dfaff6
2 changes: 1 addition & 1 deletion wallet-enterprise
Submodule wallet-enterprise updated 38 files
+22 −0 .github/workflows/docker-base-image.yml
+22 −0 .github/workflows/docker-base-push.yml
+5 −2 .github/workflows/docker-image.yml
+10 −6 .github/workflows/docker-push.yml
+1 −1 Dockerfile
+5 −0 base.Dockerfile
+ public/images/favicon-16x16.png
+ public/images/favicon-32x32.png
+ public/images/favicon.ico
+ public/images/pda1.png
+23 −8 public/js/check-expired.js
+25 −17 public/js/consent.js
+1 −1 public/styles/footer.css
+1 −0 public/styles/index.css
+50 −0 public/styles/login.css
+1 −1 src/app.ts
+2 −1 src/authorization/consentPage.ts
+1 −1 src/configuration/CredentialIssuersConfigurationService.ts
+4 −2 src/configuration/authentication/VIDAuthenticationComponent.ts
+2 −0 src/configuration/verifier/VerifierConfigurationService.ts
+30 −0 src/lib/CredentialStatus.ts
+0 −54 src/openid4vci/grant_types/AuthorizationCodeGrant.ts
+0 −9 src/openid4vci/grant_types/PreAuthorizedCodeGrant.ts
+6 −1 src/openid4vci/utils/generateAccessToken.ts
+13 −3 src/services/OpenidForCredentialIssuingAuthorizationServerService.ts
+10 −15 src/services/OpenidForPresentationReceivingService.ts
+2 −0 src/services/instances/index.ts
+1 −1 src/services/interfaces.ts
+50 −8 src/verifier/verifierRouter.ts
+1 −10 views/footer.pug
+2 −2 views/issuer/auth-method-selection.pug
+2 −17 views/issuer/consent.pug
+52 −3 views/issuer/login.pug
+2 −2 views/issuer/vid-auth-component.pug
+1 −1 views/issuer/vid-login-page.pug
+1 −1 views/verifier/QR.pug
+16 −6 views/verifier/detailed-presentation.pug
+2 −2 views/verifier/selectable_presentation.pug
Loading

0 comments on commit a963970

Please sign in to comment.