Skip to content

Commit

Permalink
Merge branch 'SPSH-1035' of https://github.com/dBildungsplattform/dbi…
Browse files Browse the repository at this point in the history
…ldungs-iam-server into SPSH-1035
  • Loading branch information
YoussefBouch committed Sep 6, 2024
2 parents 9fedc1d + 18b7bd9 commit db14237
Show file tree
Hide file tree
Showing 30 changed files with 1,177 additions and 136 deletions.
3 changes: 3 additions & 0 deletions .idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

133 changes: 70 additions & 63 deletions charts/dbildungs-iam-server/config/config.json
Original file line number Diff line number Diff line change
@@ -1,65 +1,72 @@
{
"HOST": {
"PORT": 8080
},
"FRONTEND": {
"PORT": 8080,
"SECURE_COOKIE": true,
"SESSION_SECRET": "SessionSecretForDevelopment",
"SESSION_TTL_MS": 3600000,
"BACKEND_ADDRESS": "http://dbildungs-iam-server-backend:80",
"DEFAULT_AUTH_REDIRECT": "/",
"TRUST_PROXY": 1,
"ERROR_PAGE_REDIRECT": "/login-error"
},
"DB": {
"USE_SSL": true
},
"KEYCLOAK": {
"ADMIN_REALM_NAME": "SPSH",
"REALM_NAME": "SPSH",
"ADMIN_CLIENT_ID": "spsh-admin",
"CLIENT_ID": "spsh",
"TEST_CLIENT_ID": "spsh-test"
},
"REDIS": {
"HOST": "dbildungs-iam-server-redis",
"PORT": 6379,
"USERNAME": "default",
"USE_TLS": false
},
"LDAP": {
"URL": "ldap://spsh-xxx.svc.cluster.local",
"BIND_DN": "cn=admin,dc=schule-sh,dc=de",
"ADMIN_PASSWORD": "password"
},
"DATA": {
"ROOT_ORGANISATION_ID": "d39cb7cf-2f9b-45f1-849f-973661f2f057"
},
"LOGGING": {
"DEFAULT_LOG_LEVEL": "info",
"PERSON_MODULE_LOG_LEVEL": "debug",
"PERSON_API_MODULE_LOG_LEVEL": "debug",
"ORGANISATION_MODULE_LOG_LEVEL": "debug",
"ORGANISATION_API_MODULE_LOG_LEVEL": "debug",
"ROLLE_MODULE_LOG_LEVEL": "debug",
"ROLLE_API_MODULE_LOG_LEVEL": "debug",
"KEYCLOAK_ADMINISTRATION_MODULE_LOG_LEVEL": "debug",
"HEALTH_MODULE_LOG_LEVEL": "debug",
"BACKEND_FOR_FRONTEND_MODULE_LOG_LEVEL": "debug"
},
"ITSLEARNING": {
"ENABLED": "false",
"ENDPOINT": "https://itslearning.example.com",
"USERNAME": "username",
"PASSWORD": "password",
"ROOT_OEFFENTLICH": "oeffentlich",
"ROOT_ERSATZ": "ersatz"
},
"OX": {
"ENABLED": "false",
"ENDPOINT": "https://ox_ip:ox_port/webservices/OXUserService",
"USERNAME": "username",
"PASSWORD": "password"
}
"HOST": {
"PORT": 8080
},
"FRONTEND": {
"PORT": 8080,
"SECURE_COOKIE": true,
"SESSION_SECRET": "SessionSecretForDevelopment",
"SESSION_TTL_MS": 3600000,
"BACKEND_ADDRESS": "http://dbildungs-iam-server-backend:80",
"DEFAULT_AUTH_REDIRECT": "/",
"TRUST_PROXY": 1,
"ERROR_PAGE_REDIRECT": "/login-error"
},
"DB": {
"USE_SSL": true
},
"KEYCLOAK": {
"ADMIN_REALM_NAME": "SPSH",
"REALM_NAME": "SPSH",
"ADMIN_CLIENT_ID": "spsh-admin",
"CLIENT_ID": "spsh",
"TEST_CLIENT_ID": "spsh-test"
},
"REDIS": {
"HOST": "dbildungs-iam-server-redis",
"PORT": 6379,
"USERNAME": "default",
"USE_TLS": false
},
"LDAP": {
"URL": "ldap://spsh-xxx.svc.cluster.local",
"BIND_DN": "cn=admin,dc=schule-sh,dc=de",
"ADMIN_PASSWORD": "password"
},
"DATA": {
"ROOT_ORGANISATION_ID": "d39cb7cf-2f9b-45f1-849f-973661f2f057"
},
"LOGGING": {
"DEFAULT_LOG_LEVEL": "info",
"PERSON_MODULE_LOG_LEVEL": "debug",
"PERSON_API_MODULE_LOG_LEVEL": "debug",
"ORGANISATION_MODULE_LOG_LEVEL": "debug",
"ORGANISATION_API_MODULE_LOG_LEVEL": "debug",
"ROLLE_MODULE_LOG_LEVEL": "debug",
"ROLLE_API_MODULE_LOG_LEVEL": "debug",
"KEYCLOAK_ADMINISTRATION_MODULE_LOG_LEVEL": "debug",
"HEALTH_MODULE_LOG_LEVEL": "debug",
"BACKEND_FOR_FRONTEND_MODULE_LOG_LEVEL": "debug"
},
"ITSLEARNING": {
"ENABLED": "false",
"ENDPOINT": "https://itslearning.example.com",
"USERNAME": "username",
"PASSWORD": "password",
"ROOT_OEFFENTLICH": "oeffentlich",
"ROOT_ERSATZ": "ersatz"
},
"PRIVACYIDEA": {
"ENDPOINT": "http://localhost:5000",
"USERNAME": "admin",
"PASSWORD": "admin",
"USER_RESOLVER": "mariadb_resolver",
"REALM": "defrealm"
},
"OX": {
"ENABLED": "false",
"ENDPOINT": "https://ox_ip:ox_port/webservices/OXUserService",
"USERNAME": "username",
"PASSWORD": "password"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -71,4 +71,9 @@
secretKeyRef:
name: {{ default .Values.auth.existingSecret .Values.auth.secretName }}
key: pi-user-resolver
- name: PI_REALM
valueFrom:
secretKeyRef:
name: {{ default .Values.auth.existingSecret .Values.auth.secretName }}
key: pi-user-realm
{{- end}}
1 change: 1 addition & 0 deletions charts/dbildungs-iam-server/templates/secret.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,6 @@ data:
pi-admin-user: {{ .Values.auth.pi_admin_user }}
pi-admin-password: {{ .Values.auth.pi_admin_password }}
pi-user-resolver: {{ .Values.auth.pi_user_resolver }}
pi-user-realm: {{ .Values.auth.pi_user_realm }}
secrets-json: {{ .Values.auth.secrets_json }}
{{- end }}
65 changes: 31 additions & 34 deletions charts/dbildungs-iam-server/values.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
nameOverride: ""
fullnameOverride: ""
namespaceOverride: ""
nameOverride: ''
fullnameOverride: ''
namespaceOverride: ''

backendHostname: ""
keycloakHostname: ""
backendHostname: ''
keycloakHostname: ''

containerSecurityContext:
enabled: true
Expand All @@ -13,49 +13,47 @@ containerSecurityContext:
readOnlyRootFilesystem: false
allowPrivilegeEscalation: false
capabilities:
drop: ["ALL"]
drop: ['ALL']
seccompProfile:
type: "RuntimeDefault"
type: 'RuntimeDefault'

restartPolicy: Always
environment: dev

database:
name: "dbildungs_iam_server"
host: ""
password: ""
username: "dbildungs_iam_server"

name: 'dbildungs_iam_server'
host: ''
password: ''
username: 'dbildungs_iam_server'

ldap:
url: ldap://dbildungs-iam-ldap.spsh-xxx.svc.cluster.local
bindDN: cn=admin,dc=schule-sh,dc=de


auth:
# existingSecret: Refers to a secret already present in the cluster, which is required.
existingSecret: ""
existingSecret: ''
secretName: dbildungs-iam-server
keycloak_adminSecret: ""
keycloak_clientSecret: ""
ldap_admin_password: ""
secrets_json: ""
frontend_sessionSecret: ""
itslearning_enabled: ""
itslearning_endpoint: ""
itslearning_username: ""
itslearning_password: ""
pi_base_url: ""
pi_admin_user: ""
pi_admin_password: ""
pi_user_resolver: ""

keycloak_adminSecret: ''
keycloak_clientSecret: ''
ldap_admin_password: ''
secrets_json: ''
frontend_sessionSecret: ''
itslearning_enabled: ''
itslearning_endpoint: ''
itslearning_username: ''
itslearning_password: ''
pi_base_url: ''
pi_admin_user: ''
pi_admin_password: ''
pi_user_resolver: ''
pi_user_realm: ''

backend:
replicaCount: 1
image:
repository: ghcr.io/dbildungsplattform/dbildungs-iam-server
tag: ""
tag: ''
pullPolicy: Always
containerPorts:
http: 8080
Expand Down Expand Up @@ -91,7 +89,7 @@ backend:
path: '/health'
dbseeding:
enabled: true
command: [ "node", "dist/src/console/main.js", "db", "seed", "dev", "" ]
command: ['node', 'dist/src/console/main.js', 'db', 'seed', 'dev', '']
ingress:
enabled: true
ingressClassName: nginx
Expand All @@ -111,7 +109,7 @@ backend:
serviceMonitor:
enabled: true
endpoints:
- port: "web"
- port: 'web'
extraEnvVars: []
extraVolumes: []
volumeMounts:
Expand All @@ -124,15 +122,14 @@ backend:
name: secret-volume
extraVolumeMounts: []


redis:
image:
name: redis
repository: redis
tag: "7.2.4"
tag: '7.2.4'
pullPolicy: IfNotPresent
args:
- "/data/tls/redis.conf"
- '/data/tls/redis.conf'
containerPorts:
redis: 6379
resources:
Expand Down
7 changes: 7 additions & 0 deletions config/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,13 @@
"ROOT_OEFFENTLICH": "oeffentlich",
"ROOT_ERSATZ": "ersatz"
},
"PRIVACYIDEA": {
"ENDPOINT": "http://localhost:5000",
"USERNAME": "admin",
"PASSWORD": "admin",
"USER_RESOLVER": "mariadb_resolver",
"REALM": "defrealm"
},
"OX": {
"ENABLED": "false",
"ENDPOINT": "http://ox.dev.spsh.dbildungsplattform.de/webservices/",
Expand Down
12 changes: 12 additions & 0 deletions seeding/dev/01/03_service-provider.json
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,18 @@
"providedOnSchulstrukturknoten": 0,
"keycloakGroup": "Psychosoziales Beratungsangebot-service",
"keycloakRole": "Psychosoziales Beratungsangebot-user"
},
{
"id": 12,
"name": "LeOniE.SH",
"target": "URL",
"url": "https://www.leonie-sh.de/",
"kategorie": "HINWEISE",
"logoMimeType": "image/png",
"logoBase64": "iVBORw0KGgoAAAANSUhEUgAAAMAAAADbCAYAAAA7zZ5fAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAA3XAAAN1wFCKJt4AAAbFUlEQVR42u2deXgWVZbG30pICAkBEvYtRmRRkxYDCHFhFREFprHVBsRxaUVFlrFFB3exm1bEYURBuxm1GejRVkQRFUkURRTQVkhQWVxAQGQHWRJC1u+dP6qwIx2Sqlt16/u++s7vee4DDyFVt855T91bdzkXEIQYxhATCNEIyaYAOgNIAdAYQBKAHQDWGYZxVCwkBE3wzUiOIfkiye94akLWz18h2VMsJ0Sz6BuQ/B3J90hW0DlVJJeTvEysKUST8DNIPk7yAL1jIclGYl0hkoXfgeTzJMuph+Ukk8XSQqQJvx3JFzQKvzpLScaJ1YVIEH5Dkn8geYz+cpdYXwi3+K8huYvh4RDJBgAgTYHgt/DPI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tXQ/8mHSEGOBvm0T4fwzx1MhJFfxBm0oCRANLEZeElyB9X6QAuskZPegPIQXjGzg/CTBDwkRWYBVZwChIAvpIIc3vmOVbpDOB0mCnBG3hw/b3Wx/n3ADbCPPL1SwA/iMwkACKdVjCzpDWtVowauihlMLdOllpv9hNlJ2S/rSAI0cb/A8SFPh64k4M4AAAAAElFTkSuQmCC",
"providedOnSchulstrukturknoten": 0,
"keycloakGroup": "LeOniE-service",
"keycloakRole": "LeOniE-user"
}
]
}
9 changes: 6 additions & 3 deletions seeding/dev/01/04_rolle.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@
8,
9,
10,
11
11,
12
]
},
{
Expand Down Expand Up @@ -61,7 +62,8 @@
8,
9,
10,
11
11,
12
]
},
{
Expand All @@ -85,7 +87,8 @@
8,
9,
10,
11
11,
12
]
},
{
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
import { ApiProperty } from '@nestjs/swagger';
import { IsNotEmpty, IsString } from 'class-validator';

export class AssignHardwareTokenBodyParams {
@IsNotEmpty()
@IsString()
@ApiProperty({ required: true })
public serial!: string;

@IsNotEmpty()
@IsString()
@ApiProperty({ required: true })
public otp!: string;

@IsNotEmpty()
@IsString()
@ApiProperty({ required: true })
public referrer!: string;

@IsNotEmpty()
@IsString()
@ApiProperty({ required: true })
public userId!: string;
}
Loading

0 comments on commit db14237

Please sign in to comment.