Skip to content

Commit 15e4bc1

Browse files
author
dbildungs-iam-server-gha
committed
dbildungs-iam-server
1 parent 7e6b8a3 commit 15e4bc1

File tree

6 files changed

+45
-3
lines changed

6 files changed

+45
-3
lines changed
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
apiVersion: v2
2-
appVersion: spsh-1654
2+
appVersion: sha-83813bd
33
description: dBildungs-IAM-server
44
name: dbildungs-iam-server
55
type: application
6-
version: 0.0.0-spsh-1654-20250113-1100
6+
version: 0.0.1-20250113-1105

automation/dbildungs-iam-server/config/config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
"REALM": "defrealm"
6767
},
6868
"IMPORT": {
69-
"CSV_FILE_MAX_SIZE_IN_MB": 5,
69+
"CSV_FILE_MAX_SIZE_IN_MB": 10,
7070
"CSV_MAX_NUMBER_OF_USERS": 2000,
7171
"PASSPHRASE_SECRET": "44abDqJk2qgwRbpGfO0VZx7DpXeFsm7R",
7272
"PASSPHRASE_SALT": "YDp6fYkbUcj4ZkyAOnbAHGQ9O72htc5M"

automation/dbildungs-iam-server/templates/_dbildungs-iam-server-envs.tpl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,4 +126,9 @@
126126
secretKeyRef:
127127
name: {{ default .Values.auth.existingSecret .Values.auth.secretName }}
128128
key: vidis-keycloak-role
129+
- name: METRICS_BASIC_AUTH
130+
valueFrom:
131+
secretKeyRef:
132+
name: {{ default .Values.auth.existingSecret .Values.auth.secretName }}
133+
key: auth
129134
{{- end}}

automation/dbildungs-iam-server/templates/backend-ingress.yaml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,38 @@ spec:
3030
port:
3131
number: {{ $.Values.backend.service.ports.http }}
3232
{{- end }}
33+
{{ end }}
34+
---
35+
{{if .Values.backend.ingress.healthenabled }}
36+
apiVersion: networking.k8s.io/v1
37+
kind: Ingress
38+
metadata:
39+
name: {{ template "common.names.name" . }}-health-backend
40+
namespace: {{ template "common.names.namespace" . }}
41+
labels:
42+
{{- include "common.labels" . | nindent 4 }}
43+
annotations:
44+
nginx.ingress.kubernetes.io/rewrite-target: /health
45+
nginx.ingress.kubernetes.io/auth-type: basic
46+
nginx.ingress.kubernetes.io/auth-secret: {{ .Values.auth.secretName }}
47+
nginx.ingress.kubernetes.io/auth-realm: 'Authentication Required - user'
48+
{{- with .Values.backend.ingress.annotations }}
49+
{{- toYaml . | nindent 4 }}
50+
{{- end }}
51+
spec:
52+
tls:
53+
- hosts:
54+
- {{ .Values.backendHostname }}
55+
ingressClassName: {{ .Values.backend.ingress.ingressClassName }}
56+
rules:
57+
- host: {{ .Values.backendHostname }}
58+
http:
59+
paths:
60+
- path: /api/health
61+
pathType: Prefix
62+
backend:
63+
service:
64+
name: {{ template "common.names.name" $ }}-backend
65+
port:
66+
number: {{ $.Values.backend.service.ports.http }}
3367
{{ end }}

automation/dbildungs-iam-server/templates/secret.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,5 @@ data:
3333
import-passphrase-secret: {{ .Values.auth.import_passphrase_secret }}
3434
import-passphrase-salt: {{ .Values.auth.import_passphrase_salt }}
3535
ox-password: {{ .Values.auth.ox_password }}
36+
auth: {{ .Values.auth.basic_auth_password }}
3637
{{- end }}

automation/dbildungs-iam-server/values.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ auth:
6868
import_passphrase_secret: ''
6969
import_passphrase_salt: ''
7070
ox_password: ''
71+
basic_auth_password: ''
7172

7273
ox:
7374
enabled: false
@@ -121,6 +122,7 @@ backend:
121122
# Only enable if 2nd host name is defined
122123
enabled2nd: false
123124
enabled: true
125+
healthenabled: true
124126
ingressClassName: nginx
125127
pathType: Prefix
126128
portnumber: 80

0 commit comments

Comments
 (0)