artifactapi: serve plain HTTP without HTTPS redirect #336

Merged
benvin merged 1 commits from benvin/artifactapi-http into main 2026-08-05 22:27:27 +10:00
Owner

Why

Early-boot clients — anaconda/kickstart and yum in %post, PXE environments — need direct HTTP access to the artifactapi rpm repos. The current setup returns a 301 redirect from HTTP to HTTPS, which those minimal clients cannot follow (or downgrade insecurely), breaking rpm installs.

Changes

  • Attach the api-route HTTPRoute to the Gateway's http (port 80) listener alongside https, so http://artifactapi.k8s.syd1.au.unkin.net/... serves app content directly (200/40x from the app, no Location header).
  • Remove the http-redirect HTTPRoute (RequestRedirect 301 http->https), which was the sole redirect mechanism — the traefik web entrypoint has no global redirections, so this is scoped strictly to artifactapi and does not affect other apps.
  • Leave HTTPS unchanged.

https://claude.ai/code/session_01JUoARVdmhxKQHyyyp1pxeT

## Why Early-boot clients — anaconda/kickstart and yum in %post, PXE environments — need direct HTTP access to the artifactapi rpm repos. The current setup returns a 301 redirect from HTTP to HTTPS, which those minimal clients cannot follow (or downgrade insecurely), breaking rpm installs. ## Changes - Attach the `api-route` HTTPRoute to the Gateway's `http` (port 80) listener alongside `https`, so `http://artifactapi.k8s.syd1.au.unkin.net/...` serves app content directly (200/40x from the app, no Location header). - Remove the `http-redirect` HTTPRoute (RequestRedirect 301 `http`->`https`), which was the sole redirect mechanism — the traefik `web` entrypoint has no global `redirections`, so this is scoped strictly to artifactapi and does not affect other apps. - Leave HTTPS unchanged. https://claude.ai/code/session_01JUoARVdmhxKQHyyyp1pxeT
unkinben added 1 commit 2026-08-05 22:19:45 +10:00
artifactapi: serve plain HTTP without HTTPS redirect
ci/woodpecker/pr/vector-test Pipeline was successful
ci/woodpecker/pr/pre-commit Pipeline was successful
ci/woodpecker/pr/kubeconform Pipeline was successful
5b6d966b6b
Early-boot clients (anaconda/kickstart, yum in %post, PXE environments)
need direct HTTP access to the rpm repos. A 301 redirect to HTTPS breaks
or downgrades those clients.

- Attach the api-route HTTPRoute to the Gateway's http listener alongside https
- Remove the http-redirect RequestRedirect (301) route so port 80 serves content directly

Claude-Session: https://claude.ai/code/session_01JUoARVdmhxKQHyyyp1pxeT
benvin merged commit 2360534a38 into main 2026-08-05 22:27:27 +10:00
benvin deleted branch benvin/artifactapi-http 2026-08-05 22:27:27 +10:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: unkin/argocd-apps#336