Skip to content
This repository has been archived by the owner on Mar 12, 2024. It is now read-only.

Commit

Permalink
Merge pull request #22 from catenax-ng/main
Browse files Browse the repository at this point in the history
remove unused components, fix bug
  • Loading branch information
carslen authored Feb 14, 2023
2 parents bc0d94c + 74ff9cf commit 85b089d
Show file tree
Hide file tree
Showing 65 changed files with 88 additions and 6,843 deletions.
1 change: 0 additions & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
**/.git
build/test-results
ui-src
16 changes: 8 additions & 8 deletions .env.docker
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,14 @@ MIW_AUTH_REDIRECT_URL=http://localhost:8080/callback
MIW_AUTH_ROLE_MAPPINGS=create_wallets:add_wallets,view_wallets:view_wallets,update_wallets:update_wallets,delete_wallets:delete_wallets,view_wallet:view_wallet,update_wallet:update_wallet
MIW_AUTH_RESOURCE_ID=ManagedIdentityWallets

MIW_OPENAPI_TITLE="placeholder - Managed Identity Wallets API"
MIW_OPENAPI_DESCRIPTION="placeholder - Managed Identity Wallets API"
MIW_OPENAPI_TERM_OF_SERVICES_URL="placeholder-url-to-term-of-services"
MIW_OPENAPI_CONTACT_NAME="placeholder-contact-name"
MIW_OPENAPI_CONTACT_EMAIL="placeholder-contact-email"
MIW_OPENAPI_CONTACT_URL="placeholder-url"
MIW_OPENAPI_LICENSE_NAME="Apache 2.0"
MIW_OPENAPI_LICENSE_URL="placeholder-url-to-license"
MIW_OPENAPI_TITLE=placeholder - Managed Identity Wallets API
MIW_OPENAPI_DESCRIPTION=placeholder - Managed Identity Wallets API
MIW_OPENAPI_TERM_OF_SERVICES_URL=placeholder-url-to-term-of-services
MIW_OPENAPI_CONTACT_NAME=placeholder-contact-name
MIW_OPENAPI_CONTACT_EMAIL=placeholder-contact-email
MIW_OPENAPI_CONTACT_URL=placeholder-url
MIW_OPENAPI_LICENSE_NAME=Apache 2.0
MIW_OPENAPI_LICENSE_URL=placeholder-url-to-license

ACAPY_NETWORK_IDENTIFIER=local:test
ACAPY_BASE_WALLET_API_ADMIN_URL=http://localhost:11000
Expand Down
6 changes: 0 additions & 6 deletions .github/workflows/deploy-staging.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,12 +62,6 @@ jobs:
with:
arguments: installDist

- name: setup nodejs
uses: actions/setup-node@master

- name: build admin ui
run: cd ui-src && yarn && yarn build && cp -r dist/* ../static

- name: Build and push staging images
uses: docker/build-push-action@v2
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/kics.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ jobs:
# GITHUB_TOKEN enables this github action to access github API and post comments in a pull request
# token: ${{ secrets.GITHUB_TOKEN }}
# enable_comments: true
exclude_paths: "docs/openapi_v310.json"
exclude_paths: "docs/openapi_v330.json"

# Upload findings to GitHub Advanced Security Dashboard
- name: Upload SARIF file for GitHub Advanced Security Dashboard
Expand Down
6 changes: 0 additions & 6 deletions .github/workflows/service-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -88,12 +88,6 @@ jobs:
vkey: '${{ secrets.ORG_VERACODE_API_KEY }}' #reference to API Key in github, which is set as github or. secret
include: 'build/install/org.eclipse.tractusx.managedidentitywallets/lib/org.eclipse.tractusx.managedidentitywallets-*jar'

- name: setup nodejs
uses: actions/setup-node@master

- name: build admin ui
run: cd ui-src && npm install -g yarn && yarn && yarn build && cp -r dist/* ../static

- name: Build and push Docker image
uses: docker/build-push-action@v2
with:
Expand Down
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [3.3.0] - 2023-02-14
- Remove unused UI
- Fix credential status description in OpenApi

## [3.2.0] - 2023-02-13
- Add an allowlist for requested connections based on the DID of the requester

## [3.1.1] - 2023-01-27
- Add Kotlin docs to the interfaces

Expand Down
1 change: 0 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,5 @@ EXPOSE 8080:8080
RUN addgroup -g 1001 -S user && adduser -u 1001 -S -s /bin/false -G user user
USER user
COPY ./build/install/org.eclipse.tractusx.managedidentitywallets/ /app/
COPY ./static /app/static
WORKDIR /app/bin
CMD ["./org.eclipse.tractusx.managedidentitywallets"]
26 changes: 0 additions & 26 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -460,29 +460,3 @@ To regenerate the README.md after updating `values.yaml` or `Chart.yaml` run
```
helm-docs --sort-values-order file
```
## Dashboard <a id="dashboard"></a>
Within `ui-src` a simple Vue based dashboard application is available
which currently only shows the existing companies as well as is able
to retrieve the full BPN information from the CX data pool API on a
click on the BPN.
It can be developed with
```
cd ui-src
yarn serve
```
In each release the files in `/static` are updated but within the deployment
pipeline the application is built and copied over to the `/static` directory.
The steps to build the static files are like following:
```
cd ui-src
yarn build
rm -rf ../static/*
cp -r dist/* ../static
```
4 changes: 2 additions & 2 deletions charts/managed-identity-wallets/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.6.9
appVersion: 3.2.0
version: 0.7.0
appVersion: 3.3.0

dependencies:
- name: postgresql
Expand Down
2 changes: 1 addition & 1 deletion charts/managed-identity-wallets/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# managed-identity-wallets

![Version: 0.6.9](https://img.shields.io/badge/Version-0.6.9-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 3.2.0](https://img.shields.io/badge/AppVersion-3.2.0-informational?style=flat-square)
![Version: 0.7.0](https://img.shields.io/badge/Version-0.7.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 3.3.0](https://img.shields.io/badge/AppVersion-3.3.0-informational?style=flat-square)

Managed Identity Wallets Service

Expand Down
34 changes: 20 additions & 14 deletions docs/openapi_v310.json → docs/openapi_v330.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"openapi": "3.0.3",
"info": {
"title": "Managed Identity Wallets API",
"version": "3.1.0",
"version": "3.3.0",
"description": "Managed Identity Wallets API",
"termsOfService": "https://www.eclipse.org/legal/termsofuse.php",
"contact": {
Expand Down Expand Up @@ -122,7 +122,7 @@
"bpn": "bpn",
"did": "did",
"verKey": "verkey",
"createdAt": "2023-01-28T17:35:12.815638",
"createdAt": "2023-02-13T15:06:06.539270",
"vcs": [
],
"pendingMembershipIssuance": false,
Expand Down Expand Up @@ -342,7 +342,7 @@
"name": "name",
"bpn": "bpn",
"did": "did",
"createdAt": "2023-01-28T17:35:12.815728",
"createdAt": "2023-02-13T15:06:06.539342",
"vcs": [
],
"pendingMembershipIssuance": false,
Expand Down Expand Up @@ -2956,6 +2956,12 @@
"proof": {
"$ref": "#/components/schemas/LdProofDto"
},
"provenanceProof": {
"items": {
"$ref": "#/components/schemas/Any"
},
"type": "array"
},
"type": {
"items": {
"type": "string"
Expand All @@ -2974,26 +2980,26 @@
},
"CredentialStatus": {
"properties": {
"credentialType": {
"type": {
"type": "string"
},
"index": {
"statusListIndex": {
"type": "string"
},
"listUrl": {
"statusListCredential": {
"type": "string"
},
"statusId": {
"id": {
"type": "string"
},
"statusPurpose": {
"type": "string"
}
},
"required": [
"statusId",
"index",
"listUrl"
"id",
"statusListIndex",
"statusListCredential"
],
"type": "object"
},
Expand Down Expand Up @@ -3686,10 +3692,10 @@
},
"ListCredentialSubject": {
"properties": {
"credentialId": {
"id": {
"type": "string"
},
"credentialType": {
"type": {
"type": "string"
},
"encodedList": {
Expand All @@ -3700,7 +3706,7 @@
}
},
"required": [
"credentialId",
"id",
"encodedList"
],
"type": "object"
Expand All @@ -3718,4 +3724,4 @@
],
"tags": [
]
}
}
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ acapy_java_library_version=0.7.33
kotlin.code.style=official
kompendium_version=2.3.5
exposed_version=0.38.2
version=3.2.0
version=3.3.0
coverage_excludes=**/models/**,**/entities/**,**/Application*,**/services/IWalletService*,**/services/IAcaPyService*,**/services/AcaPyService*,**/services/IBusinessPartnerDataService*,**/services/IRevocationService*,**/services/RevocationService*

Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ fun Application.module(testing: Boolean = false) {
Services.revocationService = revocationService
Services.webhookService = webhookService

configureRouting(walletService)
configureRouting()

appRoutes(walletService, businessPartnerDataService, revocationService, webhookService, utilsService)
configurePersistence()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -144,11 +144,21 @@ data class VerifiableCredentialRequestWithoutIssuerDto(

@Serializable
data class CredentialStatus (
@SerialName("id") @JsonProperty("id") var statusId: String,
@SerialName("type") @JsonProperty("type") var credentialType: String = "StatusList2021Entry",
@SerialName("statusPurpose") @JsonProperty("statusPurpose") var statusPurpose: String = "revocation",
@SerialName("statusListIndex") @JsonProperty("statusListIndex") var index: String,
@SerialName("statusListCredential") @JsonProperty("statusListCredential") var listUrl: String,
@SerialName("id") @JsonProperty("id")
@Field(description = "The ID of the credential status", name = "id")
var statusId: String,
@SerialName("type") @JsonProperty("type")
@Field(description = "The type of the credential status", name = "type")
var credentialType: String = "StatusList2021Entry",
@SerialName("statusPurpose") @JsonProperty("statusPurpose")
@Field(description = "The purpose of the status list", name = "statusPurpose")
var statusPurpose: String = "revocation",
@SerialName("statusListIndex") @JsonProperty("statusListIndex")
@Field(description = "The index of the credential in the status list", name = "statusListIndex")
var index: String,
@SerialName("statusListCredential") @JsonProperty("statusListCredential")
@Field(description = "The url to the status list credential", name = "statusListCredential")
var listUrl: String,
) {
companion object {
const val CREDENTIAL_TYPE = "StatusList2021Entry"
Expand All @@ -164,8 +174,12 @@ data class ListCredentialRequestData (

@Serializable
data class ListCredentialSubject (
@SerialName("id") @JsonProperty("id") var credentialId: String,
@SerialName("type") @JsonProperty("type") var credentialType: String = "StatusList2021",
@SerialName("id") @JsonProperty("id")
@Field(name = "id")
var credentialId: String,
@SerialName("type") @JsonProperty("type")
@Field(name = "type")
var credentialType: String = "StatusList2021",
var statusPurpose: String = "revocation",
var encodedList: String
) {
Expand Down
Loading

0 comments on commit 85b089d

Please sign in to comment.