Pipeline: new names for variables and secrets, monitoring from the build environment, SSH key login #23

Merged
Sluijsens merged 4 commits from feature/asf-pipeline-names into master 2026-11-18 21:23:45 +01:00
Showing only changes of commit d99b909f9f - Show all commits
+9 -4
View File
@@ -11,7 +11,7 @@
# headers staan met de exacte waarde op elk antwoord (pagina, asset,
# 301, 404, robots.txt), cachebeleid, alleen gzip (nooit br), een
# procentgecodeerd pad blijft gecodeerd, en /admin, /health en
# /api/v1/System/capabilities (zonder Offerings) antwoorden.
# /api/v1/System/capabilities (met Offerings en Hero) antwoorden.
set -euo pipefail
if [ "$#" -lt 2 ] || [ "$#" -gt 4 ]; then
@@ -272,7 +272,7 @@ if [ "$cms_mode" -eq 1 ]; then
fail "POST /: status $status, verwacht 405"
fi
# De CMS-routes: health, admin, API (zonder Offerings), onbekend API-pad
# De CMS-routes: health, admin, API (met Offerings en Hero), onbekend API-pad
fetch /health
if [ "$status" != "200" ]; then fail "/health: status $status, verwacht 200"; fi
@@ -301,8 +301,13 @@ if [ "$cms_mode" -eq 1 ]; then
fetch /api/v1/System/capabilities
if [ "$status" != "200" ]; then
fail "/api/v1/System/capabilities: status $status, verwacht 200"
elif grep -qi 'offerings' "$work/body"; then
fail "/api/v1/System/capabilities noemt Offerings; die module hoort voor ASF uit te staan"
else
# De site haalt pakketten, banners en de hero uit deze modules
for module in Offerings Hero; do
if ! grep -qi "\"$module\"" "$work/body"; then
fail "/api/v1/System/capabilities noemt $module niet; de site heeft die module nodig"
fi
done
fi
# Een onbekend API-pad is een API-404, nooit de website