Skip to content

Commit

Permalink
Merge pull request eclipse-tractusx#44 from catenax-ng/qg4
Browse files Browse the repository at this point in the history
Qg4
  • Loading branch information
SebastianBezold committed May 9, 2023
2 parents bc29323 + dbb918c commit c0d61a3
Show file tree
Hide file tree
Showing 7 changed files with 37 additions and 14 deletions.
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,15 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
## [Unreleased]
NA

## [2.0.6] - 2023-05-08

### Changed
- Specified USER in Dockerfile using IDs instead of name
- Specify runAsUser for deployment

### Removed
- Remove ingress controller sepecific annnotations from default config

## [2.0.5] - 2023-05-02

### Changed
Expand Down
20 changes: 17 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,25 @@ COPY --from=build ${DEPENDENCY}/BOOT-INF/lib /app/lib
COPY --from=build ${DEPENDENCY}/META-INF /app/META-INF
COPY --from=build ${DEPENDENCY}/BOOT-INF/classes /app

RUN adduser -DH drs && addgroup drs drs
USER drs
ENV USER=drsuser
ENV UID=1000
ENV GID=1000

RUN addgroup --gid $GID $USER

RUN adduser \
--disabled-password \
--gecos "" \
--home "$(pwd)" \
--ingroup "$USER" \
--no-create-home \
--uid "$UID" \
"$USER"

USER drsuser

ENTRYPOINT ["java", "-cp", "app:app/lib/*", "org.eclipse.tractusx.dapsreg.DapsregApplication"]

EXPOSE 8080

HEALTHCHECK CMD curl --fail http://localhost:8080 || exit 1
HEALTHCHECK CMD curl --fail http://localhost:8080 || exit 1
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ of the DAPS are not disclosed to the requester.

### Software Version
```shell
Helm version is v2.0.5
Application version is v2.0.5
Helm version is v2.0.6
Application version is v2.0.6
```

# Solution Strategy
Expand Down
4 changes: 2 additions & 2 deletions charts/daps-reg-service/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,11 @@ sources:
# 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.0.5
version: 2.0.6


# 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: 2.0.5
appVersion: 2.0.6
6 changes: 3 additions & 3 deletions charts/daps-reg-service/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# daps-reg-service

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

Daps regisgter service is used to register the EDC connector into DAPS

Expand Down Expand Up @@ -28,8 +28,7 @@ Daps regisgter service is used to register the EDC connector into DAPS
| image.repository | string | `"ghcr.io/catenax-ng/tx-daps-registration-service/dapsreg"` | Image to use for deploying an application |
| image.tag | string | `""` | Image tage is defined in chart appVersion. |
| imagePullSecrets | list | `[]` | |
| ingress.annotations."cert-manager.io/cluster-issuer" | string | `"letsencrypt-prod"` | |
| ingress.annotations."nginx.ingress.kubernetes.io/use-regex" | string | `"true"` | |
| ingress.annotations | string | `nil` | |
| ingress.className | string | `""` | a reference to an Ingress Class resource that contains additional configuration including the name of the controller that should implement the class. |
| ingress.enabled | bool | `false` | If you want to enable or disable the ingress |
| ingress.hosts[0] | object | `{"host":"","paths":[{"path":"/","pathType":"ImplementationSpecific"}]}` | Host of the application on which application runs |
Expand All @@ -48,6 +47,7 @@ Daps regisgter service is used to register the EDC connector into DAPS
| resources.requests.memory | string | `"300Mi"` | |
| securityContext.allowPrivilegeEscalation | bool | `false` | Controls whether a process can gain more privileges |
| securityContext.capabilities.drop[0] | string | `"ALL"` | |
| securityContext.runAsUser | int | `1000` | |
| service.port | int | `80` | Port details for sevice |
| service.targetPort | int | `8080` | Container Port details for sevice |
| service.type | string | `"ClusterIP"` | Type of service |
Expand Down
6 changes: 3 additions & 3 deletions charts/daps-reg-service/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ securityContext:
- ALL
# readOnlyRootFilesystem: true
# runAsNonRoot: true
# runAsUser: 1000
runAsUser: 1000

service:
# -- Type of service
Expand All @@ -77,8 +77,8 @@ ingress:
className: ""
annotations:
#kubernetes.io/ingress.class: nginx
nginx.ingress.kubernetes.io/use-regex: "true"
cert-manager.io/cluster-issuer: "letsencrypt-prod"
#nginx.ingress.kubernetes.io/use-regex: "true"
#cert-manager.io/cluster-issuer: "letsencrypt-prod"
hosts:
# -- Host of the application on which application runs
- host: ""
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
</parent>
<groupId>org.eclipse.tractusx</groupId>
<artifactId>dapsreg</artifactId>
<version>2.0.5</version>
<version>2.0.6</version>
<name>dapsreg</name>
<description>client registration to the DAPS</description>
<properties>
Expand Down

0 comments on commit c0d61a3

Please sign in to comment.