Files
JakeHillion 45fe50fb12
commit-validation / validate-single-commit (pull_request) Successful in 10s
buildbot/nix-eval Build done. (30 warnings)
buildbot/nix-build Build done.
buildbot/nix-effects Build done.
gitea: stop Anubis fetching pages for its challenge previews
With OG_PASSTHROUGH, Anubis fetched the real page from Gitea every time
it served a challenge, to copy its OpenGraph tags into the challenge
page for link previews. The cache is per URL, so a scraper walking
commit and compare pages made Gitea render each one even though it
never passed a challenge: one bot drove about 1,800 renders of up to
3.5s in two hours, and 1,400 of the fetches timed out.

Anubis now serves challenges without touching Gitea. Only the expensive
paths routed through Anubis are affected, so a challenged preview
fetcher shows Anubis' generic preview for commit, compare and blame
links; pull requests, issues and repository pages go straight to Gitea
and keep their previews.

Test plan:
- Evaluated boron: OG_PASSTHROUGH is false
- CI
2026-12-03 19:19:52 +00:00
..