https://github.com/gematik/poc-dsr-gms
Device security rating PoC - Geraete Management Service
https://github.com/gematik/poc-dsr-gms
dsr idm poc
Last synced: about 1 month ago
JSON representation
Device security rating PoC - Geraete Management Service
- Host: GitHub
- URL: https://github.com/gematik/poc-dsr-gms
- Owner: gematik
- License: apache-2.0
- Created: 2023-08-24T04:42:10.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-05-14T07:04:01.000Z (over 1 year ago)
- Last Synced: 2025-02-21T10:15:19.794Z (8 months ago)
- Topics: dsr, idm, poc
- Language: Java
- Homepage:
- Size: 130 KB
- Stars: 0
- Watchers: 7
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Security: SECURITY.md
Awesome Lists containing this project
README
# GMS - Geräte Management Service
> [!NOTE]
> This software is a proof of concept and is not intended for production use. It will not be maintained or receive updates. Concepts from this project will be used in gematik specifications to standardize Zero Trust in Telematics Infrastructure. Developers are encouraged to use the implementation ideas in their own software.**Part of the PoC Device Security Rating (DSR)**
This project uses Quarkus, the Supersonic Subatomic Java Framework.
If you want to learn more about Quarkus, please visit its website: https://quarkus.io/ .
## Configure
In script configure.sh: modify both openssl parameter "subj" in this script before run.
```shell script
./configure.sh
```
Set your values in src/main/resources/credentials/gematik-app-dev-apis-4644a13c06cb.json.## Running the application in dev mode
You can run the GMS application in dev mode that enables live coding using:
```shell script
mvn compile quarkus:dev
```## Packaging and running the application in prod mode
The application can be packaged using:
```shell script
mvn package
```
Maven -DskipTests is not necessary because we didn't publish unit tests for privacy reasons.
Tests require a lot of private data.It produces the `quarkus-run.jar` file in the `target/quarkus-app/` directory.
Be aware that it’s not an _über-jar_ as the dependencies are copied into the `target/quarkus-app/lib/` directory.### You can run the GMS application locally without live coding
First start Postgres DBMS: run gms-docker-dev/docker-compose_local-DEV.yml
```shell script
docker-compose --project-name gms -f gms-docker-dev/docker-compose_local-DEV.yml up -d
``````shell script
java -Dquarkus.datasource.jdbc.url=jdbc:postgresql://localhost:5432/gms-db -Dquarkus.datasource.password=no_secret -Dquarkus.datasource.username=dsr-gms_user -jar target/quarkus-app/quarkus-run.jar
```## Local start of application with docker-compose
Prerequisite for the local deployment are the following two host names for the localhost IP 127.0.0.1
**_NOTE:_** on Windows entered in the hosts file (usually located under C:\Windows\System32\drivers\etc)
```
127.0.0.1 dsr.gms
127.0.0.1 dsr.gms-mtls
```Build the GMS image locally
```shell script
mvn package -ntp -DskipTests -Dquarkus.container-image.build=true
```## Health Check - localhost
http://localhost:9000/management/health
http://localhost:9000/management/health/live
http://localhost:9000/management/health/ready## Metrics
http://localhost:9000/management/metrics