Production upload over FTPS (explicit TLS, no fallback) instead of plain FTP
Continuous Integration / check (pull_request) Successful in 2m9s
Continuous Integration / build-test (pull_request) Skipped
Continuous Integration / deploy-test (pull_request) Skipped
Continuous Integration / lighthouse (pull_request) Successful in 9m9s
Continuous Integration / deploy-production (pull_request) Skipped

The hosting partner offers FTP over TLS after all. upload-production.sh now forces
AUTH TLS (ssl-force, protect-data, protect-list), verifies the certificate and stays
passive; the three rounds and the folder restrictions are unchanged. Docs, workflow
comments and the lftp tests follow.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-19 00:09:03 +01:00
co-authored by Claude Sonnet 5.5
parent 4c539f0207
commit 16f0d323b9
5 changed files with 28 additions and 16 deletions
+12 -4
View File
@@ -666,7 +666,7 @@ touch '${slash(marker)}'
},
);
it('zet in elke lftp-sessie de back-ups uit en TLS uit (gewone FTP)', async () => {
it('zet in elke lftp-sessie de back-ups uit en TLS aan zonder terugval (FTPS)', async () => {
const dist = await makeDist();
const bin = await makeTemp('andreaslop-fakebin-');
const log = join(bin, 'opdrachten');
@@ -694,9 +694,15 @@ printf '%s\\n' "$2" >> '${slash(log)}'
expect(sessions).toHaveLength(3);
for (const commands of sessions) {
expect(commands).toContain('set xfer:make-backup no;');
expect(commands).toContain('set ftp:ssl-allow no;');
expect(commands).toContain('set ftp:ssl-allow yes;');
expect(commands).toContain('set ftp:ssl-auth TLS;');
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;');
expect(commands).toContain('set ftp:passive-mode on;');
expect(commands).not.toContain('ssl-force');
expect(commands).not.toContain('ssl-allow no');
expect(commands).not.toContain('verify-certificate no');
}
});
@@ -736,7 +742,9 @@ printf '%s\n' "$*" >> '${slash(log)}'
for (const line of (await readFile(log, 'utf8'))
.split('\n')
.filter(Boolean)) {
expect(line).toContain('-u gebruiker -p 2121 ftp.example.test');
expect(line).toContain(
'-u gebruiker -p 2121 ftp://ftp.example.test',
);
}
});