Skip to content

Commit

Permalink
Merge pull request #7 from gematik/publishInternalRelease-6
Browse files Browse the repository at this point in the history
Publish Release 2.0.1
  • Loading branch information
outbreaker authored Jun 30, 2023
2 parents 9860c06 + 51c718a commit 856e2bd
Show file tree
Hide file tree
Showing 1,038 changed files with 1,113,424 additions and 900,802 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM eclipse-temurin:17.0.6_10-jre-alpine
FROM eclipse-temurin:17.0.7_7-jre-alpine

# The STOPSIGNAL instruction sets the system call signal that will be sent to the container to exit
# SIGTERM = 15 - https://de.wikipedia.org/wiki/Signal_(Unix)
Expand Down
Binary file added Gematik_Logo_Flag.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
175 changes: 175 additions & 0 deletions README.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,175 @@
:doctype: book
:encoding: utf-8
:application-name: Validation-Service
:docker-registry: europe-west3-docker.pkg.dev/gematik-all-infra-prod/demis-dev
ifndef::env-github[]
image::Gematik_Logo_Flag.png[logo,width=200,height=37,role=right]
endif::[]
ifdef::env-github[]
++++
<img align="right" width="200" height="37" src="Gematik_Logo_Flag.png"/> <br/>
++++
endif::[]
= Validation-Service

image::https://sonar.prod.ccs.gematik.solutions/api/project_badges/measure?project=de.gematik.demis%3Avalidation-service&metric=alert_status&token=1625f4e36c06a30f797ae56839cc931512156967[Quality Gate Status]

image::https://sonar.prod.ccs.gematik.solutions/api/project_badges/measure?project=de.gematik.demis%3Avalidation-service&metric=vulnerabilities&token=1625f4e36c06a30f797ae56839cc931512156967[Vulnerabilities]

image::https://sonar.prod.ccs.gematik.solutions/api/project_badges/measure?project=de.gematik.demis%3Avalidation-service&metric=bugs&token=1625f4e36c06a30f797ae56839cc931512156967[Bugs]

image::https://sonar.prod.ccs.gematik.solutions/api/project_badges/measure?project=de.gematik.demis%3Avalidation-service&metric=code_smells&token=1625f4e36c06a30f797ae56839cc931512156967[Code Smells]

image::https://sonar.prod.ccs.gematik.solutions/api/project_badges/measure?project=de.gematik.demis%3Avalidation-service&metric=ncloc&token=1625f4e36c06a30f797ae56839cc931512156967[Lines of Code]

image::https://sonar.prod.ccs.gematik.solutions/api/project_badges/measure?project=de.gematik.demis%3Avalidation-service&metric=coverage&token=1625f4e36c06a30f797ae56839cc931512156967[Coverage]


++++
<details>
<summary>Table of Contents</summary>
<ol>
<li>
<a href="#about-the-project">About The Project</a>
<ul>
<li><a href="#release-notes">Release Notes</a></li>
</ul>
</li>
<li>
<a href="#getting-started">Getting Started</a>
<ul>
<li><a href="#prerequisites">Prerequisites</a></li>
<li><a href="#installation">Installation</a></li>
</ul>
</li>
<li><a href="#usage">Usage</a></li>
<li><a href="#contributing">Contributing</a></li>
<li><a href="#license">License</a></li>
<li><a href="#contact">Contact</a></li>
</ol>
</details>
++++

== About The Project

This service serves as a validation service for all notifications send to DEMIS. It uses a snapshot of all profiles and
the DEMIS-Schemas Project to validate any notification.

=== Release Notes

See `link:ReleaseNotes.md[ReleaseNotes]` for all information regarding the (newest) releases.

== Getting Started

The application requires the DEMIS FHIR Profiles, they can be retrieved from a git
repository, [https://gitlab.prod.ccs.gematik.solutions/git/demis/demis-profile-snapshots](demis-fhir-profiles).

The profiles are require to execute the unit and integration tests included in this repository. At runtime execution the
profile files must be available in a folder and this folder must be specified through the environment
variable `FHIR_PROFILES_PATH`.

=== Prerequisites


=== Installation

```sh
mvn clean verify
```

The Project can be built with the following command:

```sh
mvn -e clean install -DskipTests=true
```
build with docker image:

```docker
docker build -t europe-west3-docker.pkg.dev/gematik-all-infra-prod/demis-dev/validation-service:latest .
```
The Docker Image associated to the service can be built alternatively with the extra profile `docker`:

```docker
mvn -e clean install -Pdownload-profile -Pdocker
```

Without Profiles
```sh
mvn -e clean install -DskipTests=true -Pdocker
```

The application can be started as Docker container with the following commands:

```shell
docker run --rm --name validation-service \
-v $(pwd)/profiles:/profiles \
-p 8080:8080 \
-e FHIR_PROFILES_PATH=/profiles \
europe-west3-docker.pkg.dev/gematik-all-infra-prod/demis-dev/validation-service:latest
```
== Kubernetes

== Local

aus IntelliJ als SpringBoot Application starten

image::src/main/docs/SpringBootApplicationVS.png[]


== Intellij/CMD

Start the spring boot server with: `mvn clean spring-boot:run`
Check the server with: `curl -v localhost:8080/actuator/health`

aus IntelliJ als SpringBoot Application starten


== VM


== Properties

[width="80%",cols="1,1,1"]
|===
| Property | Default Value | Description

| demis.validation-service.profileResourcePath | `/profile` | Path to the DEMIS profiles inside the resources.
| demis.validation-service.locale | `en_US` | Locale for the HAPI-FHIR context and validator. The language of diagnostics of the outcome is dependent on this locale.
| demis.validation-service.minSeverityOutcome | `information` | Minimal severity that will not be filtered out in the Outcome. Possible values: `information`, `warning`, `error`, `fatal`.
|===


== Usage

Start the spring boot server with: `mvn clean spring-boot:run`
Check the server with: `curl -v localhost:8080/actuator/health`

=== Endpoints

[width="80%",cols="1,1"]
|===
|Endpoint | Description

|`/status` | GET endpoint for status notifications. Currently minimally implemented.
|`/$validate` | POST endpoint for validating messages. Returns validation results from the HAPI Validator.
|`/actuator/health/` | Standard endpoint from Actuator.
|`/actuator/health/liveness` | Standard endpoint from Actuator.
|`/actuator/health/readiness` | Standard endpoint from Actuator.
|===

== Contributing

If you want to contribute, please check our [CONTRIBUTING.md](./CONTRIBUTING.md).

== License
EUROPEAN UNION PUBLIC LICENCE v. 1.2

EUPL © the European Union 2007, 2016

Copyright (c) 2023 gematik GmbH

See link:./LICENSE[license].

== Contact

Email to: link:mailto:[email protected]?subject=%5BGitHub%5D%20Validation-Service[DEMIS Entwicklung]
136 changes: 0 additions & 136 deletions README.md

This file was deleted.

39 changes: 39 additions & 0 deletions ReleaseNotes.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,45 @@

# Release Validation-Service

## Release 2.0.1

### fixed
- add missing License-Header
- add checks to CI-Pipeline


## Release 2.0.0

### fixed
- fix CVEs

### changed
- Support for new RKI Profiles 1.23.0.alpha3
- Upgraded SpringBoot to 3.0.7


## Release 1.4.3

### changed
- Upgraded Docker Image to use JRE 17.0.7
- Upgraded HAPI FHIR Utilities to 6.4.4


## Release 1.4.2

## fixed
- fix CVE-2023-24057
- fix CVE-2023-28465

### changed
- Upgraded HAPI FHIR Utilities to 6.2.5


## Release 1.4.1

### changed
- Changed logging format to JSON

## Release 1.4.0

### fixed
Expand Down
4 changes: 2 additions & 2 deletions deployment/helm/validation-service/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ apiVersion: v2
name: validation-service
description: DEMIS Validation Service Helm Chart
type: application
version: 1.4.2
appVersion: "1.4.2"
version: 2.0.0
appVersion: "2.0.0"
Loading

0 comments on commit 856e2bd

Please sign in to comment.