EENMALIG: FTPS without certificate check for the first rollout (hoster chain expired), revert afterwards
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -54,9 +54,12 @@ wants() { [ "$pass" = all ] || [ "$pass" = "$1" ]; }
|
||||
# Geen back-ups: lftp zet standaard een kopie met een tijdstempel
|
||||
# (web.config~20261101221045~) naast elk bestand dat het overschrijft. Op de
|
||||
# host zou elke deploy er een achterlaten, bereikbaar voor wie de naam raadt.
|
||||
# EENMALIG: certificaatketen hoster verlopen, terugdraaien (besluit Bryan,
|
||||
# 2026-11-19: voor de eerste uitrol zonder certificaatcontrole; ssl-force, AUTH
|
||||
# TLS en protect-data blijven aan). Terug naar 'set ssl:verify-certificate yes'.
|
||||
# TLS: explicit FTPS afdwingen (de sessie weigert inloggen zonder TLS, ook de
|
||||
# datakanalen en de lijsten zijn versleuteld) en het certificaat controleren.
|
||||
tls="set ftp:ssl-allow yes; set ftp:ssl-auth TLS; set ftp:ssl-force yes; set ftp:ssl-protect-data yes; set ftp:ssl-protect-list yes; set ssl:verify-certificate yes;"
|
||||
tls="set ftp:ssl-allow yes; set ftp:ssl-auth TLS; set ftp:ssl-force yes; set ftp:ssl-protect-data yes; set ftp:ssl-protect-list yes; set ssl:verify-certificate no;"
|
||||
settings="$tls set ftp:passive-mode on; set net:max-retries 3; set xfer:make-backup no;"
|
||||
|
||||
# Elke opdracht krijgt een eigen lftp-sessie, zodat het script bij een mislukte
|
||||
|
||||
@@ -699,10 +699,10 @@ printf '%s\\n' "$2" >> '${slash(log)}'
|
||||
expect(commands).toContain('set ftp:ssl-force yes;');
|
||||
expect(commands).toContain('set ftp:ssl-protect-data yes;');
|
||||
expect(commands).toContain('set ftp:ssl-protect-list yes;');
|
||||
expect(commands).toContain('set ssl:verify-certificate yes;');
|
||||
// EENMALIG op de release-branch: zonder certificaatcontrole (terugdraaien)
|
||||
expect(commands).toContain('set ssl:verify-certificate no;');
|
||||
expect(commands).toContain('set ftp:passive-mode on;');
|
||||
expect(commands).not.toContain('ssl-allow no');
|
||||
expect(commands).not.toContain('verify-certificate no');
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user