Doku und Skripte: authentik-LDAP-Outpost mit sshd (SSSD), Self-only-Check in docker-deploy.sh

This commit is contained in:
Jochen Mehlich committed 2026-10-24 10:15:01 +02:00
1 parent f34ddf31de
commit d672afe22c
4 files changed
+326

No files matched your search

+4
View File
@@ -84,6 +84,10 @@ fi
[[ "$APP_USER" =~ ^[a-z_][a-z0-9_-]{0,31}$ ]] || die "Ungültiger Username: '$APP_USER'"
id "$APP_USER" &>/dev/null || die "User '$APP_USER' existiert nicht auf diesem System"
user_in_group "$APP_USER" "$DEPLOY_GROUP" || die "User '$APP_USER' ist nicht in Gruppe '$DEPLOY_GROUP'"
# Per sudo darf jeder nur für sich selbst deployen (sudoers erlaubt die ganze Gruppe)
if [[ -n "${SUDO_USER:-}" && "$SUDO_USER" != "root" && "$SUDO_USER" != "$APP_USER" ]]; then
die "'$SUDO_USER' darf nicht für '$APP_USER' deployen"
fi
in_array "$ACTION" "${ALLOWED_ACTIONS[@]}" || die "Unbekannte Aktion: '$ACTION' (erlaubt: ${ALLOWED_ACTIONS[*]})"
if $USE_CACHE && [[ "$ACTION" != "build" && "$ACTION" != "deploy" ]]; then
die "--cache ist nur bei build/deploy sinnvoll"