task/website
Valentin Maerten dcebbd4ed4
fix(remote): refuse a redirect that drops TLS
The scheme was only checked on the URL the user wrote. A server answering
an https URL with a redirect to http was followed by the client without
any further check, so both the HEAD probe and the download travelled in
the clear, and a network attacker could substitute the Taskfile that is
about to be executed.

CheckRedirect now refuses an https to http hop. --insecure does not
loosen it: requesting an http entrypoint is the user's decision, being
sent to one is the server's. Setting CheckRedirect also replaces Go's
default cap, so the ten-hop limit is kept explicitly.

The three call sites turned almost every client error into a generic
download failure, which would have hidden the reason; TaskfileNotSecureError
is now passed through, with wording of its own for the redirect case since
--insecure is not a way out of it.
2026-11-05 21:34:02 +01:00
..
.vitepress fix(website): allow crawling next docs to read noindex (#3066) 2026-10-12 22:04:52 +02:00
patches chore(deps): update all non-major dependencies (#3033) 2026-09-19 12:52:39 +02:00
scripts fix(website): improve DocSearch relevance and crawler compatibility 2026-10-13 22:44:40 +02:00
src fix(remote): refuse a redirect that drops TLS 2026-11-05 21:34:02 +01:00
tests release: automatically date new blog posts (#3056) 2026-10-01 22:00:48 +02:00
.gitignore feat(site): add versioned Algolia search and configuration export (#3031) 2026-09-19 12:07:30 +02:00
.prettierignore feat(site): add versioned Algolia search and configuration export (#3031) 2026-09-19 12:07:30 +02:00
docsearch.config.js fix(website): improve DocSearch relevance and crawler compatibility 2026-10-13 22:44:40 +02:00
netlify.toml fix(docs): deploy next channel on main 2026-09-20 09:26:24 +02:00
package.json chore(deps): update dependency node to v26 (#3089) 2026-11-02 09:41:54 +01:00
pnpm-lock.yaml chore(deps): update all non-major dependencies (#3088) 2026-11-03 13:11:29 +01:00
pnpm-workspace.yaml chore(deps): update all non-major dependencies (#3033) 2026-09-19 12:52:39 +02:00
prettier.config.js docs: migrate website to vitepress (#2359) 2025-08-12 18:09:19 +02:00
Taskfile.yml docs: split guide into multiple pages (#3016) 2026-09-19 12:03:51 +02:00
tsconfig.json docs: migrate website to vitepress (#2359) 2025-08-12 18:09:19 +02:00