feat: EBICS bank detect, regio FLODOS, and check skips

This commit is contained in:
Hernâni Marques 2026-09-04 11:23:47 +02:00
parent bc785f8466
commit 4e4e6a2925
No known key found for this signature in database
8 changed files with 256 additions and 22 deletions

View file

@ -489,6 +489,17 @@ if [ "$E2E_REMOTE" = "1" ]; then
fi
unset _fp_try _fp_host _remote_bank_sec
fi
# regio.taler.net (FLODOS): path from taler-deployment-secrets via env
if [ -z "$ADMIN_PASS" ] && [ "${CUR:-${EXPECT_CURRENCY:-}}" = "FLODOS" ]; then
_regio_sec="${REGIO_BANK_ADMIN_SECRET:-}"
[ -z "$_regio_sec" ] && [ -n "${TALER_DEPLOYMENT_SECRETS:-}" ] && \
_regio_sec="${TALER_DEPLOYMENT_SECRETS}/regio/bank-admin-password.txt"
if [ -n "$_regio_sec" ] && [ -f "$_regio_sec" ]; then
ADMIN_PASS=$(tr -d '\n\r' <"$_regio_sec")
info "bank admin secret" "from $_regio_sec"
fi
unset _regio_sec
fi
# Stage merchant: public templates need no token; optional default-instance token
if [ -z "$MPW" ] && [ "${CUR:-${EXPECT_CURRENCY:-}}" = "TESTPAYSAN" ]; then
if [ -n "${FRANCPAYSAN_SECRETS:-}" ] && [ -f "${FRANCPAYSAN_SECRETS}/stage/default-instance-token.txt" ]; then
@ -552,6 +563,12 @@ merchant_auth_header() {
esac
}
# EBICS / no public bank.* — withdraw path needs x-taler-bank (libeufin)
if [ "${CHECK_BANK:-1}" != "1" ] || [ "${TALER_BANK_BACKEND:-}" = "ebics" ]; then
info "e2e" "skipped — backend=${TALER_BANK_BACKEND:-ebics} (no public bank.* / x-taler-bank)"
exit 0
fi
# Public reachability gates (remote: soft-skip if bank/merchant absent)
for pair in \
"bank|$BANK_PUBLIC/config" \