Commit Graph

23 Commits

Author SHA1 Message Date
Kevin Fenzi
e5d26fea60 proxies: allow POST for forge
Some folks were getting posts failing against forge.
See https://forge.fedoraproject.org/forge/forge/issues/401

So, lets just explicitly allow POSTs through anubis as
this should be fine for normal people and should not be something
that scrapers normally do.

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2026-02-12 16:57:26 -08:00
Kevin Fenzi
5615d1b036 anubis: allow .zck files universally
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2026-02-10 07:52:53 -08:00
Tomáš Hrčka
f836929e43 Update roles/anubis/templates/policies.yaml.j2
Add attlasian to the allow list in anubis
2026-01-14 00:06:10 +00:00
Kevin Fenzi
af685201f8 anubis: disable open graph passthrough for now until we can sit down and make it work
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2025-12-12 15:45:48 -08:00
Kevin Fenzi
a7402ebf5f anubis: allowlist productmd
The python productmd library hits kojipkgs to find recent
composes/compose information. It's not easy for it to adjust on the
client end, but it does send a user-agent header like "productmd/1.49"
So, lets just allowlist it for now.

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2025-12-05 10:09:49 -08:00
Maxwell G
51ab1dc9e6 anubis: allow checking for dead.package files
Checking for the presence of dead.package by trying to download the
dead.package file and checking for an HTTP 404 or 200 is an easy way to
check if a package is retied in distgit.
This practice is used in the wild in tools like fedora-misc-package-utilities.
2025-12-03 20:15:35 -06:00
Kevin Fenzi
f7e4a1bdd7 anubis: 30 is too high, down to 20
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2025-12-03 16:08:52 -08:00
Kevin Fenzi
4822e9cd13 anubis: revert challenging all /forks/
This was an attempt to block the scrapers, but sadly it breaks humans.
We cannot challenge everything under forks because people need to push
pr's and those get blocked.

So, go back to just weighting those higher...

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2025-12-03 15:52:57 -08:00
Kevin Fenzi
2c29dbef64 anubis: allowlist src/extras
These are some smallish json files that are used by various scripts.
Lets just allowlist them.

See https://pagure.io/fedora-infrastructure/issue/12946

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2025-12-03 11:46:29 -08:00
Kevin Fenzi
4ae493f195 anubis: reduce forks, was impossible at the former level
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2025-12-02 12:19:38 -08:00
Kevin Fenzi
708c0fdaa2 anubis: adjust forks on src to slow challenge
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2025-12-02 11:05:15 -08:00
Kevin Fenzi
00c612bd6a anubis: allow packit user-agent
Per https://pagure.io/fedora-infrastructure/issue/12923
just allowlist the packit user agent at least for now.

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2025-12-02 10:22:27 -08:00
Kevin Fenzi
7fbb35c25b anubis: drop libreoffice rules
We had this in place when scrapers were hitting libreoffice really hard.
They don't seem to be anymore, so drop it for now.

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2025-11-30 14:03:22 -08:00
Kevin Fenzi
05dbcb3812 anubis: grant up challenge difficulty for libreoffice for now as it is being hit hard
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2025-11-22 20:30:46 -08:00
Kevin Fenzi
e1396032ca anubis: enable open graph passthrough
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2025-11-20 10:10:56 -08:00
Kevin Fenzi
8d5fabd4ca anubis: also allow compose/iot
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2025-11-19 07:42:11 -08:00
Kevin Fenzi
ec612e869a anubis: simplify and allow more
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2025-11-18 16:32:37 -08:00
Kevin Fenzi
fb1594c31d anubis: use correct default policy link
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2025-11-18 16:20:38 -08:00
Kevin Fenzi
b1f3b68e09 anubis: allow flatpak delta-indexes
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2025-11-18 16:03:30 -08:00
Kevin Fenzi
ceb9a4f94b anubis: crank up challenges on /fork
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2025-11-18 15:56:56 -08:00
Kevin Fenzi
29978f3192 anubis: try and allow ostree/iot summary and refs through
This was causing problems when we last upgraded anubis because
the refs/summary were getting challenges from anubis for ostree users.
So, lets try and just allow those. They are all small files, so
it shouldn't be much in the way of load.

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2025-11-18 15:16:52 -08:00
Kevin Fenzi
f75f2c51c1 anubis: try and allow bodhi and badges rss feeds
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2025-09-25 16:09:27 -07:00
Kevin Fenzi
e7c16d7fe0 anubis: move to top level role, add some more items
This copies the excellect copr/anubis role to a more generic top level
one. It allows for using a different env per ipa_host_group (but we
could also just add more cases in there) or a default one if that isn't
found.

It moves the defaults and policies to template so we can include a
static key from ansible-private if we like.

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2025-09-18 13:31:42 -07:00