-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
314 changed files
with
23,451 additions
and
12,248 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -144,3 +144,4 @@ dist | |
.vscode/settings.json | ||
|
||
mariadb/ | ||
test/secrets.test.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,79 +1,93 @@ | ||
{ | ||
"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", | ||
"SERVICE_CLIENT_ID": "spsh-service" | ||
}, | ||
"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": "sh", | ||
"ROOT_OEFFENTLICH": "oeffentlich", | ||
"ROOT_ERSATZ": "ersatz" | ||
}, | ||
"OX": { | ||
"ENABLED": "false", | ||
"ENDPOINT": "https://ox_ip:ox_port/webservices/OXUserService", | ||
"CONTEXT_ID": "1337", | ||
"CONTEXT_NAME": "contextname", | ||
"USERNAME": "username", | ||
"PASSWORD": "password" | ||
}, | ||
"PRIVACYIDEA": { | ||
"ENDPOINT": "http://localhost:5000", | ||
"USERNAME": "admin", | ||
"PASSWORD": "admin", | ||
"USER_RESOLVER": "mariadb_resolver", | ||
"REALM": "defrealm" | ||
}, | ||
"IMPORT": { | ||
"IMPORT_FILE_MAXGROESSE_IN_MB": 10 | ||
} | ||
"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", | ||
"SERVICE_CLIENT_ID": "spsh-service" | ||
}, | ||
"REDIS": { | ||
"HOST": "dbildungs-iam-redis-master.spsh.svc.cluster.local", | ||
"PORT": 6379, | ||
"USERNAME": "default", | ||
"PASSWORD": "", | ||
"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": "sh", | ||
"ROOT_OEFFENTLICH": "oeffentlich", | ||
"ROOT_ERSATZ": "ersatz" | ||
}, | ||
"OX": { | ||
"ENABLED": false, | ||
"ENDPOINT": "https://ox_ip:ox_port/webservices/OXUserService", | ||
"CONTEXT_ID": "1337", | ||
"CONTEXT_NAME": "contextname", | ||
"USERNAME": "username", | ||
"PASSWORD": "password" | ||
}, | ||
"PRIVACYIDEA": { | ||
"ENDPOINT": "http://localhost:5000", | ||
"USERNAME": "admin", | ||
"PASSWORD": "admin", | ||
"USER_RESOLVER": "mariadb_resolver", | ||
"REALM": "defrealm" | ||
}, | ||
"IMPORT": { | ||
"IMPORT_FILE_MAXGROESSE_IN_MB": 10 | ||
}, | ||
"SYSTEM": { | ||
"RENAME_WAITING_TIME_IN_SECONDS": 3, | ||
"STEP_UP_TIMEOUT_ENABLED": "true", | ||
"STEP_UP_TIMEOUT_IN_SECONDS": 10 | ||
}, | ||
"VIDIS": { | ||
"BASE_URL": "https://service-stage.vidis.schule", | ||
"USERNAME": "", | ||
"PASSWORD": "", | ||
"REGION_NAME": "test-region", | ||
"KEYCLOAK_GROUP": "VIDIS-service", | ||
"KEYCLOAK_ROLE": "VIDIS-user" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,4 +5,4 @@ | |
"REDIS": { | ||
"PASSWORD": "password" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
FROM alpine:3.19 | ||
|
||
ENV LOG_FILE_PATH=/var/log/cron.log | ||
|
||
# Install necessary packages | ||
RUN apk update && \ | ||
apk add --no-cache bash cronie jq openssl vim wget | ||
|
||
# Create a new user and group | ||
RUN addgroup -S appgroup && adduser -S appuser -G appgroup | ||
|
||
# Copy scripts into the image | ||
COPY scripts/ /scripts/ | ||
|
||
# Set execute permissions for all .sh scripts in /scripts/ and create a log file | ||
RUN chmod +x /scripts/*.sh \ | ||
&& touch /var/log/cron.log \ | ||
&& chmod 644 /var/log/cron.log \ | ||
&& chown -R appuser:appgroup /scripts /var/log/cron.log | ||
|
||
# Switch to the new user | ||
USER appuser | ||
|
||
# Start the cron service in foreground | ||
CMD ["/usr/sbin/crond", "-f"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
"keys": [ | ||
{ | ||
"kty": "RSA", | ||
"n": "23mzd3v4YjgWMzO7XYYwD92NqCm436ErU1-NPTVok9aaVXx5mjZKfh_Xoyp5BEgjQU042MKOhl1Ri17HfOOf6k4cpBpvBQhENp0yfNPv_-kSy4OgdA3qk9-kZyvuRX1-0LKvJMwlrCLCLEfiv_yn8YQLpQeqgdIj1AlX37fcnSxxL3qukM_-Hm8dCB2mbUzANT_uRkSCHFQWVDxcbocKAmhr0808CmpiINWEIVv7AhS_HVSliaeB-iteAKN3W9Am3tCtGZaWKUlioKueQux7OTKxHm5fM-jZ9ZPnb7_RQlOGV9vu-TTMO8pKYkqn15LcnYuBKKHmFEBO8vRxI9_8Lw", | ||
"e": "AQAB", | ||
"d": "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6IoN6nUT12UpzmhbriRXxjTcLNSwZBuSXz8QV_7F8ViNyEcot20aDo35t8IssLnDD9nxDAGTCL68FkXTJaAsUE2beGfkX9Sz5r_Gzlcer_Gjhl5aNHeZYgIMsYciPhM4laBzKD3d51xQuDFMMX1RQUvyDHDIog" | ||
} | ||
] | ||
} |
Oops, something went wrong.