Skip to content

Commit

Permalink
Release MIW 0.3.0 (#190)
Browse files Browse the repository at this point in the history
* chore(helm): add a second maintainer

* fix(ci): separate workflow "Test application (test + coverage)" for PR and repo

Separate the one workflow into two single ones to avoid pipeline failure during report generation because of missing permissions.
At the same time make all necessary/dependent changes to gradle.build and the Taskfile tasks.

* chore(ci): remove doubled comment sign

* chore(ci): adjust/remove step condition

* chore(ci): extend name of step

* chore(ci): rename steps for better understanding

* chore(ci): replace deprecated properties

* fix(dev): add file extension and refactor called method in gradle

* chore(release): 0.2.0-develop.3 [skip ci]

# [0.2.0-develop.3](v0.2.0-develop.2...v0.2.0-develop.3) (2023-11-22)

### Bug Fixes

* **ci:** separate workflow "Test application (test + coverage)" for PR and repo ([6de785b](6de785b))
* **dev:** add file extension and refactor called method in gradle ([6811a8b](6811a8b))

* feat: add tpl to miw ingress (#143)

Co-authored-by: Dominik Pinsel <dominik.pinsel@mercedes-benz.com>

* chore(release): 0.2.0-develop.4 [skip ci]

# [0.2.0-develop.4](v0.2.0-develop.3...v0.2.0-develop.4) (2023-11-22)

### Features

* add tpl to miw ingress ([#143](#143)) ([c56d133](c56d133))

* feat(helm): Make liveness & readiness probes configurable (#99)

* feat(helm): Make liveness & readiness probes configurable

* Add possibility to disable probes

* Update chart README.md

* add examples to ingress config

* Bump chart version

* Update README.md

* Add workflow step for checking chart readme changed

* Fix readme generation

* Add some names to the worflow steps

* Rename workflow

* Update chart README.md

* chore(release): 0.2.0-develop.5 [skip ci]

# [0.2.0-develop.5](v0.2.0-develop.4...v0.2.0-develop.5) (2023-11-22)

### Features

* **helm:** Make liveness & readiness probes configurable ([#99](#99)) ([252eed1](252eed1))

* feat: add initContainers (#142)

* feat: add initContainers

* chore: add initContainer description

* fix: only template initContainer if present

* chore: use tpl instead common to render initContianers

As from pmoscode suggested the tpl function can be used with toYaml to avoid the Bitnami common template function.

---------

Co-authored-by: Dominik Pinsel <dominik.pinsel@mercedes-benz.com>

* chore(release): 0.2.0-develop.6 [skip ci]

# [0.2.0-develop.6](v0.2.0-develop.5...v0.2.0-develop.6) (2023-11-23)

### Features

* add initContainers ([#142](#142)) ([7317800](7317800))

* feat(dev): add pgAdmin to local dev env (#144)

Additions and Changes:
- add pgAdmin to docker-compose.yaml (incl. mounts)
- preconfigure pgAdmin DB server
- add tem. files to gitignore
- update README.md
- update Taskfile tasks for linux and macos
- update env.* environment files
- Match Postgresql version to the version of the Helm chart (14.5)

* chore(release): 0.2.0-develop.7 [skip ci]

# [0.2.0-develop.7](v0.2.0-develop.6...v0.2.0-develop.7) (2023-11-23)

### Features

* **dev:** add pgAdmin to local dev env ([#144](#144)) ([d7f2bbe](d7f2bbe))

* chore: update SECURITY.md (#170)

Make SECURITY.md reflect current example of TRG 7.01 pointing to the GitHub Security Tab instead of Eclipse

* docs: draft for report of security assessment 23.12

* feat(devel): make application port dynamic (parameter)

* feat(readme): add "usage" section [WIP]

* fix(dev): adjust port to request against keycloak

* feat(dev): update README.md and introduce INSTALL.md for usage

* fix(dev): add important notes to INSTALL.md

* fix(dev): small adjustment to INSTALL.md

* chore(release): 0.2.0-develop.8 [skip ci]

# [0.2.0-develop.8](v0.2.0-develop.7...v0.2.0-develop.8) (2023-11-28)

### Bug Fixes

* **dev:** add important notes to INSTALL.md ([a7c1b71](a7c1b71))
* **dev:** adjust port to request against keycloak ([4a3d317](4a3d317))
* **dev:** small adjustment to INSTALL.md ([59b6df4](59b6df4))

### Features

* **devel:** make application port dynamic (parameter) ([8816c89](8816c89))
* **dev:** update README.md and introduce INSTALL.md for usage ([54b8d4a](54b8d4a))
* **readme:** add "usage" section [WIP] ([6919b71](6919b71))

* fix: method name from the cx-ssi-lib has been renamed

* chore: remove unused maven repo from gradle config

* chore: remove unused GITHUB_USERNAME/TOKEN env variables

* chore: remove cx-ssi-lib from NOTICE

* chore: update DEPENDENCIES scan

* chore(release): 0.2.0-develop.9 [skip ci]

# [0.2.0-develop.9](v0.2.0-develop.8...v0.2.0-develop.9) (2023-11-30)

### Bug Fixes

* method name from the cx-ssi-lib has been renamed ([b46d084](b46d084))

* fix null pointers in CustomAuthenticationConverter (#169)

* fix:seperate api doc from DidDocumentController

* fix:change bpn to identifier

* fix:seperate docs from controller

* fix:change bpn to identifier

* fix:seperate api docs

* fix:seperate api docs

* fix:change bpn to identifier

* fix:seperate half of the docs

* fix:add one more seperation

* fix:seperate docs

* chore: update spring-boot and testcontainers

* chore: add resolutionStrategy for logback and spring devtools

* chore: update cx-ssi-lib to 0.0.18

* chore: update DEPENDENCIES with Dash

* fix: manually change the Helm chart version

The automated pipeline is failing, because the develop.9 version has been
published to the gh-pages branch. A manual change to develop.10 should
fix the issue.

* chore(release): 0.2.0-develop.10 [skip ci]

# [0.2.0-develop.10](v0.2.0-develop.9...v0.2.0-develop.10) (2023-12-05)

### Bug Fixes

* manually change the Helm chart version ([1ad16ed](1ad16ed))

* chore: add legal files to Docker

* chore: update DEPENDENCIES with Dash

* fix: remove filter for org.eclipse packages

This filtering was in violation with TRG 7.01.

* chore: update DEPENDENCIES with Dash

* chore(release): 0.2.0-develop.11 [skip ci]

# [0.2.0-develop.11](v0.2.0-develop.10...v0.2.0-develop.11) (2023-12-06)

### Bug Fixes

* remove filter for org.eclipse packages ([af9a9e5](af9a9e5))

* chore: update Version and AppVersion in chart readme

* chore: supply correct version in chart readme

* chore(release): 0.3.0-develop.1 [skip ci]

# [0.3.0-develop.1](v0.2.0...v0.3.0-develop.1) (2023-12-07)

### Bug Fixes

* **ci:** separate workflow "Test application (test + coverage)" for PR and repo ([6de785b](6de785b))
* **dev:** add file extension and refactor called method in gradle ([6811a8b](6811a8b))
* **dev:** add important notes to INSTALL.md ([a7c1b71](a7c1b71))
* **dev:** adjust port to request against keycloak ([4a3d317](4a3d317))
* **dev:** small adjustment to INSTALL.md ([59b6df4](59b6df4))
* manually change the Helm chart version ([1ad16ed](1ad16ed))
* method name from the cx-ssi-lib has been renamed ([b46d084](b46d084))
* remove filter for org.eclipse packages ([af9a9e5](af9a9e5))

### Features

* add initContainers ([#142](#142)) ([7317800](7317800))
* add tpl to miw ingress ([#143](#143)) ([c56d133](c56d133))
* **dev:** add pgAdmin to local dev env ([#144](#144)) ([d7f2bbe](d7f2bbe))
* **devel:** make application port dynamic (parameter) ([8816c89](8816c89))
* **dev:** update README.md and introduce INSTALL.md for usage ([54b8d4a](54b8d4a))
* **helm:** Make liveness & readiness probes configurable ([#99](#99)) ([252eed1](252eed1))
* **readme:** add "usage" section [WIP] ([6919b71](6919b71))

---------

Co-authored-by: Peter Motzko <peter.motzko@volkswagen.de>
Co-authored-by: semantic-release-bot <semantic-release-bot@martynus.net>
Co-authored-by: Marco Lecheler <marco@task.media>
Co-authored-by: Dominik Pinsel <dominik.pinsel@mercedes-benz.com>
Co-authored-by: Florian Rusch (ZF Friedrichshafen AG) <florian.rusch.external@zf.com>
Co-authored-by: Peter Motzko <56410761+pmoscode@users.noreply.github.com>
Co-authored-by: Pablo <103579938+pablosec@users.noreply.github.com>
Co-authored-by: pablosec <pablo.theissen@telekom.de>
Co-authored-by: Marco Gora <blackanthrax666@googlemail.com>
Co-authored-by: Mustafa <mmsalfiti@gmail.com>
  • Loading branch information
11 people authored Dec 7, 2023
1 parent 287b61d commit 303edb7
Show file tree
Hide file tree
Showing 51 changed files with 3,133 additions and 2,491 deletions.
66 changes: 66 additions & 0 deletions .github/workflows/app-test-coverage-pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
# /********************************************************************************
# * Copyright (c) 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
# ********************************************************************************/

name: Application test and coverage -- PR context

on:
pull_request:
paths:
- 'src/**'

jobs:
test-app:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Set up Java 17
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '17'

- name: Test app
run: ./gradlew test

- name: Get coverage
if: always()
run: ./gradlew jacocoTestReport

- name: Upload test results
uses: actions/upload-artifact@v3
if: always()
with:
name: test-results
path: ${{ github.workspace }}/build/

- name: Publish code coverage report as PR comment
uses: madrapps/jacoco-report@v1.6.1
if: always()
with:
paths: |
${{ github.workspace }}/build/reports/xml/jacoco.xml
token: ${{ secrets.GITHUB_TOKEN }}
min-coverage-overall: 80
min-coverage-changed-files: 80
title: Coverage Report
68 changes: 68 additions & 0 deletions .github/workflows/app-test-coverage-repo.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
# /********************************************************************************
# * Copyright (c) 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
# ********************************************************************************/

name: Application test and coverage -- Repository context

on:
workflow_run:
workflows: [ 'Application test and coverage -- PR context' ]
types:
- completed

permissions:
contents: read
actions: read
checks: write

jobs:
test-app:
runs-on: ubuntu-latest

steps:
- name: Download test results
uses: actions/download-artifact@v3
with:
name: test-results
path: ${{ github.workspace }}/

- name: Setup .NET Core # Required to execute ReportGenerator
uses: actions/setup-dotnet@v3
with:
dotnet-version: 6.x
dotnet-quality: 'ga'

- name: Generate test report
uses: dorny/test-reporter@v1.6.0
with:
name: Test results
path: 'test-results/test/*.xml'
reporter: java-junit
fail-on-error: false

- name: Create Markdown from code coverage report
uses: danielpalme/ReportGenerator-GitHub-Action@5.1.25
with:
reports: reports/xml/jacoco.xml
targetdir: coveragereport
reporttypes: MarkdownSummaryGithub
sourcedirs: src/main/java
title: 'Code Coverage'

- name: Publish Markdown code coverage report as job summary
run: cat coveragereport/SummaryGithub.md >> $GITHUB_STEP_SUMMARY
101 changes: 0 additions & 101 deletions .github/workflows/app-test-coverage.yml

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
# * SPDX-License-Identifier: Apache-2.0
# ********************************************************************************/

name: Lint and Test Charts
name: Verify and Test Helm Chart

on:
workflow_dispatch:
Expand All @@ -44,7 +44,7 @@ jobs:

- name: Add bitnami repo
run: |
helm repo add bitnami https://charts.bitnami.com/bitnami
helm repo add bitnami https://charts.bitnami.com/bitnami
helm repo update
- name: Update Helm dependencies
Expand All @@ -63,6 +63,29 @@ jobs:
- name: Run linting
run: ct lint --config charts/chart-testing-config.yaml --charts ./charts/managed-identity-wallet

verify-helm-docs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Run helm docs command
uses: addnab/docker-run-action@v3
with:
image: jnorwood/helm-docs:v1.11.3
options: -v ${{ github.workspace }}/charts:/helm-docs
run: helm-docs

- name: Verify that no changes are required
run: |
if $(git diff --quiet --exit-code); then
echo "Helm chart docs up to date"
else
echo "Helm chart docs not up to date:"
git diff
exit 1
fi
chart-test:
runs-on: ubuntu-latest
steps:
Expand All @@ -86,7 +109,7 @@ jobs:

- name: Add bitnami repo
run: |
helm repo add bitnami https://charts.bitnami.com/bitnami
helm repo add bitnami https://charts.bitnami.com/bitnami
helm repo update
- name: Update Helm dependencies
Expand All @@ -103,8 +126,6 @@ jobs:

- name: Build app
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_USERNAME: ${{ github.actor }}
SKIP_GRADLE_TASKS_PARAM: "-x jacocoTestCoverageVerification -x test"
run: task app:build

Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/dast-scan.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,6 @@ jobs:
- name: Build app
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_USERNAME: ${{ github.actor }}
SKIP_GRADLE_TASKS_PARAM: "-x jacocoTestCoverageVerification -x test"
run: task app:build

Expand Down
7 changes: 0 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,25 +64,18 @@ jobs:
- name: Run semantic release
if: github.event_name != 'pull_request'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_USERNAME: ${{ github.actor }}
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
npx --yes -p @semantic-release/exec -p @semantic-release/changelog -p @semantic-release/git -p @semantic-release/commit-analyzer -p @semantic-release/release-notes-generator semantic-release
- name: Run semantic release (dry run)
if: github.event_name == 'pull_request'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_USERNAME: ${{ github.actor }}
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
npx --yes -p @semantic-release/exec -p @semantic-release/github -p @semantic-release/changelog -p @semantic-release/git -p @semantic-release/commit-analyzer -p @semantic-release/release-notes-generator semantic-release --dry-run
- name: Execute Gradle build
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_USERNAME: ${{ github.actor }}
run: ./gradlew build

- name: Upload build artifact
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/veracode.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ jobs:
- name: Build with Gradle
uses: gradle/gradle-build-action@v2
with:
arguments: build -PgithubToken=${{ secrets.GITHUB_TOKEN }}
arguments: build

- name: Veracode Upload And Scan
uses: veracode/veracode-uploadandscan-action@0.2.6
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,8 @@ dev-assets/env-files/env.local
dev-assets/env-files/env.docker
dev-assets/env-files/env.environment
dev-assets/docker-environment/postgres/db.sh
dev-assets/docker-environment/pgAdmin/servers.json
dev-assets/docker-environment/pgAdmin/storage/*

.java-version

Expand Down
27 changes: 25 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,30 @@
# [0.2.0](https://github.com/eclipse-tractusx/managed-identity-wallet/compare/v0.1.1...v0.2.0) (2023-10-23)
# [0.3.0-develop.1](https://github.com/eclipse-tractusx/managed-identity-wallet/compare/v0.2.0...v0.3.0-develop.1) (2023-12-07)


### Bug Fixes

* **ci:** separate workflow "Test application (test + coverage)" for PR and repo ([6de785b](https://github.com/eclipse-tractusx/managed-identity-wallet/commit/6de785b670bdede6e55559ce461fb76d05f2ecc8))
* **dev:** add file extension and refactor called method in gradle ([6811a8b](https://github.com/eclipse-tractusx/managed-identity-wallet/commit/6811a8b025b76f5998b1c2fd65b5f679e28468d3))
* **dev:** add important notes to INSTALL.md ([a7c1b71](https://github.com/eclipse-tractusx/managed-identity-wallet/commit/a7c1b711ac402cbead4e10e5c79d6ba318eaacdb))
* **dev:** adjust port to request against keycloak ([4a3d317](https://github.com/eclipse-tractusx/managed-identity-wallet/commit/4a3d317363690c78897c5db77a60fc716cd91b42))
* **dev:** small adjustment to INSTALL.md ([59b6df4](https://github.com/eclipse-tractusx/managed-identity-wallet/commit/59b6df484bd31905f43d8bc9c83e44f0992839fb))
* manually change the Helm chart version ([1ad16ed](https://github.com/eclipse-tractusx/managed-identity-wallet/commit/1ad16ed064d69214bc87d65f76740c2ecaa6b539))
* method name from the cx-ssi-lib has been renamed ([b46d084](https://github.com/eclipse-tractusx/managed-identity-wallet/commit/b46d0846f6b9ccc6b439c82ffec783cd8b933e08))
* remove filter for org.eclipse packages ([af9a9e5](https://github.com/eclipse-tractusx/managed-identity-wallet/commit/af9a9e50a9c15b16c8346561bc7ccb87a45df39d))


### Features

* add initContainers ([#142](https://github.com/eclipse-tractusx/managed-identity-wallet/issues/142)) ([7317800](https://github.com/eclipse-tractusx/managed-identity-wallet/commit/731780075ca5e1a707c8834013c4c98348e9c269))
* add tpl to miw ingress ([#143](https://github.com/eclipse-tractusx/managed-identity-wallet/issues/143)) ([c56d133](https://github.com/eclipse-tractusx/managed-identity-wallet/commit/c56d1330f2df1a3468c1e680bcc4fe50898ca6bd))
* **dev:** add pgAdmin to local dev env ([#144](https://github.com/eclipse-tractusx/managed-identity-wallet/issues/144)) ([d7f2bbe](https://github.com/eclipse-tractusx/managed-identity-wallet/commit/d7f2bbe2900322bb5ecba94aa1ab4fafad5cf21c))
* **devel:** make application port dynamic (parameter) ([8816c89](https://github.com/eclipse-tractusx/managed-identity-wallet/commit/8816c899e8aa2170e753f3250c74552d898520c2))
* **dev:** update README.md and introduce INSTALL.md for usage ([54b8d4a](https://github.com/eclipse-tractusx/managed-identity-wallet/commit/54b8d4ae9c859db2216ac3f85cbc56ab3cf6b950))
* **helm:** Make liveness & readiness probes configurable ([#99](https://github.com/eclipse-tractusx/managed-identity-wallet/issues/99)) ([252eed1](https://github.com/eclipse-tractusx/managed-identity-wallet/commit/252eed1b15289740ba953861076de86ddc99fe4a))
* **readme:** add "usage" section [WIP] ([6919b71](https://github.com/eclipse-tractusx/managed-identity-wallet/commit/6919b71870e9265ae09a66e3354ec43bf7d1d088))

# [0.2.0](https://github.com/eclipse-tractusx/managed-identity-wallet/compare/v0.1.1...v0.2.0) (2023-10-23)

### Bug Fixes

* CGD-468: Application starts with corrupted data in case of invalid AES key ([c734946](https://github.com/eclipse-tractusx/managed-identity-wallet/commit/c734946abfc1c34f1710f74e1329505dafa2fa00))
Expand All @@ -10,7 +34,6 @@
* typo in Bearer ([754b90a](https://github.com/eclipse-tractusx/managed-identity-wallet/commit/754b90a9fa90a308584949a6bf8085b6b27d8a19))
* Typo in Bearer ([#102](https://github.com/eclipse-tractusx/managed-identity-wallet/issues/102)) ([3765c68](https://github.com/eclipse-tractusx/managed-identity-wallet/commit/3765c689fcadc29f663c0521c3b9cc072ee8e779))


### Features

* add Eclipse Copyright header to CHANGELOG.md.jinja ([dd53533](https://github.com/eclipse-tractusx/managed-identity-wallet/commit/dd53533bc6ccb9a160e4c51c46438321ed2b2be7))
Expand Down
Loading

0 comments on commit 303edb7

Please sign in to comment.