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

Fix Veracode and change Validations on docs #10

Merged
merged 7 commits into from
Mar 6, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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 .github/workflows/veracode.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ jobs:

#Copy the jar to directory which gets uploaded to Veracode
- name: Copy Pool JAR
run: cp target/value-added-service-1.0.0.jar target/veracode/value-added-service-1.0.0.jar
run: cp target/value-added-service-*.jar target/veracode/value-added-service.jar

- name: Run Veracode Upload And Scan
uses: veracode/[email protected]
Expand Down
17 changes: 14 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,20 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [1.0.4] - 2023-03-02

### Fixes

- Fix image that veracode is validating
- Fix Header on charts to be validated with Company group

### Changed
- Change structure of folders on README.md
- Change Helm chart README.md on current version released

### Removed
- Dockerfile removing the same EXPOSE block

## [1.0.3] - 2023-02-20

### Added
Expand All @@ -31,6 +45,3 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

- First Release

[Unreleased]: https://github.com/eclipse-tractusx/vas-country-risk-backend/compare

[1.0.0]: https://github.com/eclipse-tractusx/vas-country-risk-backend/compare
7 changes: 0 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,8 @@ FROM maven:3.8-openjdk-18 as maven
COPY ./pom.xml /pom.xml
COPY ./src ./src

EXPOSE 8080
EXPOSE 80
EXPOSE 433

RUN mvn clean package

EXPOSE 8080
EXPOSE 80
EXPOSE 433

#CMD exec /bin/bash -c "trap : TERM INT; sleep infinity & wait"
# Copy the jar and build image
Expand Down
35 changes: 19 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,22 +78,25 @@ Inside the java folder, there is the source code for the project, which is divid
and follows the mainly used project structure in most Spring Boot projects.

```sh
└───catenax
└───valueaddedservice
├───config
├───constants
├───domain
│ └───enumeration
├───dto
├───interceptors
├───repository
├───service
│ ├───csv
│ ├───logic
│ └───mapper
├───utils
└───web
└───rest
└───org
└───eclipse
└───tractusx
└───valueaddedservice
├───config
├───constants
├───domain
│ └───enumeration
├───dto
│ └───ShareDTOs
├───interceptors
├───repository
├───service
│ ├───csv
│ ├───logic
│ └───mapper
├───utils
└───web
└───rest
```

## API sample endpoints
Expand Down
9 changes: 5 additions & 4 deletions charts/country-risk-backend-charts/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
###############################################################
################################################################################
# Copyright (c) 2022,2023 BMW Group AG
# Copyright (c) 2022,2023 Contributors to the Eclipse Foundation
#
# See the NOTICE file(s) distributed with this work for additional
Expand All @@ -15,7 +16,7 @@
# under the License.
#
# SPDX-License-Identifier: Apache-2.0
###############################################################
################################################################################


apiVersion: v2
Expand All @@ -35,13 +36,13 @@ 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: 2.1.0
version: 2.1.1

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
# follow Semantic Versioning. They should reflect the version the application is using.
# It is recommended to use it with quotes.
appVersion: "1.0.3"
appVersion: "1.0.4"

dependencies:
- name: postgresql
Expand Down
4 changes: 2 additions & 2 deletions charts/country-risk-backend-charts/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ helm install release_name ./charts/country-risk-backend-charts --namespace your_
```

This will install a new release of the Country Risk in the given namespace.
On default values this release deploys the latest image tagged as `v1.0.0` from the repository's GitHub Container Registry.
On default values this release deploys the latest image tagged that its on the `.Chart.appVersion` from the repository's GitHub Container Registry.
The application is run on default profile (you can run it on a dev profile or local).
Additionally, the Helm deployment contains a PostgreSQL database which the Country Risk connects to.

Expand All @@ -32,7 +32,7 @@ In the following sections you can have a look at the most important configuratio

Per default, the Helm deployment references a certain Country Risk release version where the newest Helm release points to the newest Country Risk version.
This is a stable tag pointing to a fixed release version of the Country Risk.
For your deployment you might want to follow the latest application releases instead.
For your deployment you might want to follow the latest or a specific application releases instead

In your values file you can overwrite the default tag:

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
###############################################################
################################################################################
# Copyright (c) 2022,2023 BMW Group AG
# Copyright (c) 2022,2023 Contributors to the Eclipse Foundation
#
# See the NOTICE file(s) distributed with this work for additional
Expand All @@ -15,7 +16,7 @@
# under the License.
#
# SPDX-License-Identifier: Apache-2.0
###############################################################
################################################################################

{{ if .Values.applicationSecret.enabled }}

Expand Down
5 changes: 3 additions & 2 deletions charts/country-risk-backend-charts/templates/configmap.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
###############################################################
################################################################################
# Copyright (c) 2022,2023 BMW Group AG
# Copyright (c) 2022,2023 Contributors to the Eclipse Foundation
#
# See the NOTICE file(s) distributed with this work for additional
Expand All @@ -15,7 +16,7 @@
# under the License.
#
# SPDX-License-Identifier: Apache-2.0
###############################################################
################################################################################

{{ if .Values.configmap.create }}
apiVersion: v1
Expand Down
5 changes: 3 additions & 2 deletions charts/country-risk-backend-charts/templates/deployment.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
###############################################################
################################################################################
# Copyright (c) 2022,2023 BMW Group AG
# Copyright (c) 2022,2023 Contributors to the Eclipse Foundation
#
# See the NOTICE file(s) distributed with this work for additional
Expand All @@ -15,7 +16,7 @@
# under the License.
#
# SPDX-License-Identifier: Apache-2.0
###############################################################
################################################################################

apiVersion: apps/v1
kind: Deployment
Expand Down
5 changes: 3 additions & 2 deletions charts/country-risk-backend-charts/templates/ingress.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
###############################################################
################################################################################
# Copyright (c) 2022,2023 BMW Group AG
# Copyright (c) 2022,2023 Contributors to the Eclipse Foundation
#
# See the NOTICE file(s) distributed with this work for additional
Expand All @@ -15,7 +16,7 @@
# under the License.
#
# SPDX-License-Identifier: Apache-2.0
###############################################################
################################################################################

{{ if .Values.ingress.enabled }}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
###############################################################
################################################################################
# Copyright (c) 2022,2023 BMW Group AG
# Copyright (c) 2022,2023 Contributors to the Eclipse Foundation
#
# See the NOTICE file(s) distributed with this work for additional
Expand All @@ -15,7 +16,7 @@
# under the License.
#
# SPDX-License-Identifier: Apache-2.0
###############################################################
################################################################################

apiVersion: v1
kind: Secret
Expand Down
5 changes: 3 additions & 2 deletions charts/country-risk-backend-charts/templates/service.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
###############################################################
################################################################################
# Copyright (c) 2022,2023 BMW Group AG
# Copyright (c) 2022,2023 Contributors to the Eclipse Foundation
#
# See the NOTICE file(s) distributed with this work for additional
Expand All @@ -15,7 +16,7 @@
# under the License.
#
# SPDX-License-Identifier: Apache-2.0
###############################################################
################################################################################

apiVersion: v1
kind: Service
Expand Down
5 changes: 3 additions & 2 deletions charts/country-risk-backend-charts/values-dev.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
###############################################################
################################################################################
# Copyright (c) 2022,2023 BMW Group AG
# Copyright (c) 2022,2023 Contributors to the Eclipse Foundation
#
# See the NOTICE file(s) distributed with this work for additional
Expand All @@ -15,7 +16,7 @@
# under the License.
#
# SPDX-License-Identifier: Apache-2.0
###############################################################
################################################################################

springProfiles:
- dev
Expand Down
5 changes: 3 additions & 2 deletions charts/country-risk-backend-charts/values-int.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
###############################################################
################################################################################
# Copyright (c) 2022,2023 BMW Group AG
# Copyright (c) 2022,2023 Contributors to the Eclipse Foundation
#
# See the NOTICE file(s) distributed with this work for additional
Expand All @@ -15,7 +16,7 @@
# under the License.
#
# SPDX-License-Identifier: Apache-2.0
###############################################################
################################################################################

springProfiles:
- int
Expand Down
5 changes: 3 additions & 2 deletions charts/country-risk-backend-charts/values.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
###############################################################
################################################################################
# Copyright (c) 2022,2023 BMW Group AG
# Copyright (c) 2022,2023 Contributors to the Eclipse Foundation
#
# See the NOTICE file(s) distributed with this work for additional
Expand All @@ -15,7 +16,7 @@
# under the License.
#
# SPDX-License-Identifier: Apache-2.0
###############################################################
################################################################################



Expand Down
24 changes: 22 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,26 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- Copyright (c) 2022,2023 BMW Group AG-->
<!-- Copyright (c) 2022,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-->
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">



<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.springframework.boot</groupId>
Expand All @@ -10,7 +30,7 @@
</parent>
<groupId>org.eclipse.tractusx</groupId>
<artifactId>value-added-service</artifactId>
<version>1.0.3</version>
<version>1.0.4</version>
<name>value-added-service</name>
<description>Project to Validate Country Risks Score</description>
<properties>
Expand All @@ -29,7 +49,7 @@
<sonar.coverage.jacoco.xmlReportPaths>${project.reporting.outputDirectory}/target/jacoco-report/jacoco.xml</sonar.coverage.jacoco.xmlReportPaths>
<sonar.organization>catenax-ng</sonar.organization>
<sonar.projectKey>catenax-ng_product-value-added-service</sonar.projectKey>
<sonar.coverage.exclusions>src/main/java/org/eclipse/tractusx/valueaddedservice/dto/**/*.*,src/main/java/org/eclipse/tractusx/valueaddedservice/domain/**/*.*¨</sonar.coverage.exclusions>
<sonar1.coverage.exclusions>src/main/java/org/eclipse/tractusx/valueaddedservice/dto//.,src/main/java/org/eclipse/tractusx/valueaddedservice/domain//.¨</sonar1.coverage.exclusions>
<jacoco.version>0.8.7</jacoco.version>
<org.owasp.esapi>2.5.1.0</org.owasp.esapi>
<spring-boot-starter-oauth2-resource-server>3.0.1</spring-boot-starter-oauth2-resource-server>
Expand Down