1
0
Fork 0
forked from infra/ansible
Commit graph

538 commits

Author SHA1 Message Date
3e9a9690e6 pagure: block botnet using outdated browser UAs 2026-08-13 18:26:15 +00:00
eb17046010 src.fp.o: block some user agents that don't make much sense
Block these user agents, since they are old and don't make sense.

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2026-08-12 14:55:08 -07:00
60af599108 proxies / src.fp.o: also block the blame endpoint in forks
We block this in normal rpms, but the scrapers are hitting it in forks
also, so block it there too.

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2026-08-11 10:37:23 -07:00
77ba912e7b Bump SSLProxyVerifyDepth in forgejo -> pagure.io redirect
From the logs on the proxies I can see the reason the redirects
for attachments are failing is the certificate chain for
pagure.io is now deeper than it was before:

[Fri Aug 07 23:23:10.874410 2026] [ssl:error] [pid 2283452:tid 2288622] [remote 2620:52:6:1161::32:443] AH02040: Certificate Verification: Certificate Chain too long (chain has 3 certificates, but maximum allowed are only 2)

I don't know why this changed, but I guess it's something to do
with preparation for pagure.io retirement? Anyway, assuming the
change is expected, this fixes the redirects (I tested by hand
patching proxy04 and forcing my box to always use proxy04 for
forge.fp.o, it works fine).

Resolves: forge/forge#703

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2026-08-10 18:20:59 +00:00
4d4f1ae0cd riscv-kojipkgs: move conditional to the right place
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2026-08-09 13:29:07 -07:00
6493f1f1cc riscv-kojipkgs: Lightpanda here too
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2026-08-09 13:26:08 -07:00
48f78734c7 koji/riscv-koji: drop Lightpanda
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2026-08-09 13:07:24 -07:00
4a61a5be48 wiki bot scraping fun. Block www.fedoraproject.org referrer on wiki endpoint for now
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2026-08-09 10:24:43 -07:00
64355ad7d9 scraper mitigations: increase pkgs resources, tweak limits
This is a grab bag of things done today to try and mitigate a massive
scraper hit against src.fedoraproject.org.

- increase memory on riscv-koji (it was getting OOM killed)
- add memory and cpu to pkgs to process more
- increase wsgi procs and threads to allow pkgs to process more
- increase max requests on proxies, since we were hitting the old limits
- block Lightpanda useragent
- tell varnish on proxies to only wait 10s for pkgs connections,
  this lets us 503 them sooner and prevents pile ups waiting.

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2026-08-08 12:25:50 -07:00
224ae2aed0 Fix yamllint document-start errors by adding YAML document markers
Add document start marker (---) to 28 YAML files that were missing it
to comply with yamllint requirements for proper YAML document structure.

Signed-off-by: Ryan Lerch <rlerch@redhat.com>
2026-08-05 21:27:26 +00:00
d7607b64bc ipa: switch server for ui
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2026-07-28 13:55:42 -07:00
2e1d9d90df proxies: also switch this to ipa02
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2026-07-24 09:37:36 -07:00
f073895448
Proxies: small bits missed from the previous httpd-internal commit
Signed-off-by: Greg Sutcliffe <fedora@emeraldreverie.org>
2026-07-15 13:47:05 +01:00
c5d15cd554
Proxies: change internal checks template to new style too
Signed-off-by: Greg Sutcliffe <fedora@emeraldreverie.org>
2026-07-15 11:40:36 +01:00
000633d113
Proxies: Only monitor registry.fpo in prod
Signed-off-by: Greg Sutcliffe <fedora@emeraldreverie.org>
2026-07-15 10:13:52 +01:00
4e5e17bf9e
Proxies: add reworked http-checks template
Signed-off-by: Greg Sutcliffe <fedora@emeraldreverie.org>
2026-07-14 16:37:47 +01:00
d4dec74823
Proxies: missed a close-bracket
Signed-off-by: Greg Sutcliffe <fedora@emeraldreverie.org>
2026-07-14 14:52:22 +01:00
3fe8725e71
Proxies: rework use of env_suffix for release-monitoring.org
Signed-off-by: Greg Sutcliffe <fedora@emeraldreverie.org>
2026-07-14 14:49:43 +01:00
c5e2b33ba7
Proxies: fix typos in Zabbix dropin
Signed-off-by: Greg Sutcliffe <fedora@emeraldreverie.org>
2026-07-14 14:30:21 +01:00
9d7f7778ac
Proxies: Move more http logic to the dropin
Signed-off-by: Greg Sutcliffe <fedora@emeraldreverie.org>
2026-07-14 13:36:27 +01:00
8f5d83e118
Proxies: make Zabbix dropin curl silent
Signed-off-by: Greg Sutcliffe <fedora@emeraldreverie.org>
2026-07-14 11:51:25 +01:00
eb617b8c14
Proxies: Add the dropin file
Because forgetting that you're in the wrong drectory messes up git-add :)

Signed-off-by: Greg Sutcliffe <fedora@emeraldreverie.org>
2026-07-14 11:33:46 +01:00
311495c1d4
Proxies: Add Zabbix dropin for resolving URLs against localhost
Signed-off-by: Greg Sutcliffe <fedora@emeraldreverie.org>
2026-07-14 11:24:10 +01:00
d2c6b0c7dd websites: bypass anubis for POST on forge.fedoraproject.org too
We have been seeing some 502's on forge also, that might be the same
thing we were seeing with src and koji, so lets try and bypass POSTs
here too.

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2026-07-01 13:03:26 -07:00
b3fe510408 riscv-kojipkgs: fix template name to actually apply
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2026-06-24 11:33:55 -07:00
44951845e4
Zabbix: remove incorrect run_once directives from proxy monitoring
Signed-off-by: Greg Sutcliffe <fedora@emeraldreverie.org>
2026-05-28 11:33:34 +01:00
69612dffe5
Zabbix: Add the rest of the previous commit that got missed
Signed-off-by: Greg Sutcliffe <fedora@emeraldreverie.org>
2026-05-28 11:30:27 +01:00
e3d9be210e
Zabbix: Move internal proxy checks from Nagios
Signed-off-by: Greg Sutcliffe <fedora@emeraldreverie.org>
2026-05-28 11:08:35 +01:00
6ccaaca78d proxies: adjust zabbix template name
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2026-05-15 09:57:39 -07:00
7688d6da70 proxies / website: on src/koji/riscv-koji have POSTs bypass anubis
See infra/tickets#12913
and https://github.com/TecharoHQ/anubis/issues/1624

We are seeing sporadic EOF errors when koji/src/riscv-koji send a 200
reply back through anubis.

Since we just allow POST in anubis anyhow, bypass it entirely for them
to avoid the EOF issue until we can sort it out more.

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2026-05-15 16:39:05 +00:00
d47a991333
Zabbix: Add proxy file-age checks for ostree & mirrorlist cache
Signed-off-by: Greg Sutcliffe <fedora@emeraldreverie.org>
2026-05-14 13:28:16 +01:00
274e23e336 proxies: set ttl on the anubis layer to 15 also to match up with other things
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2026-05-11 11:59:06 -07:00
645cfe0482 proxies: when using a apache balancer, options go on the balancer members
Clanker lead me astray here. We can't pass options on the proxypass here
because we are using a balancer, so we need to pass them on the balancer
members.

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2026-05-11 11:57:42 -07:00
d59d39d281 proxies: more changes for the sporadic 502 issue ( 12913 )
I got claude to dig into the things we tried to fix this issue and look
for things we missed. It found a few things:

1. In commit 35a1b3223b Victor Koycheff added some proxyopts for
   keepalive, etc. However, unfortunately, while the variable was set
   the template wasn't looking at that, so they were never actually
   set in the website. ;( So, we fix that by passing the variable in the
   right template here.

2. kojihub didn't have a keepalive set on the backend. (but this is
   likely cosmetic since the problem is at the proxy layer). We fix
   this by adding one anyhow.

3. The pass thru anubis didn't have keepalive set right, so we do
   that in the template. This may fix other 502 issues with other
   applications also.

Calude used 57,508 tokens looking at all this. ;)

Assisted-By: claude

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2026-05-11 11:09:55 -07:00
51e4282ff7
Migrate http-* proxy checks from Nagios to Zabbix
Signed-off-by: Greg Sutcliffe <fedora@emeraldreverie.org>
2026-05-07 13:53:39 +01:00
e56db32aa6 httpd/koji: set MaxKeepAliveRequests 0 to fix 502 race condition
This acts as the second half of the fix for the 502 Bad Gateway errors
on long-running koji connections.

Fixes #12913

Signed-off-by: Victor Koycheff <victorkoycheff@gmail.com>
2026-04-30 00:54:13 +00:00
0374476671 Apply restrictive robots.txt to riscv-koji
This is the same file used on primary koji. It disallows robots
instead of just asking them to slow their roll like the default
robots.txt does.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2026-04-23 13:06:03 -07:00
b4858d172d Revert "proxies / wiki: disable RecentChanges for a bit"
This reverts commit b94e384d21.
2026-04-17 08:49:21 -07:00
b94e384d21 proxies / wiki: disable RecentChanges for a bit
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2026-04-17 08:27:22 -07:00
d281e4ad31 proxies / wiki: add another bot to being blocked
This bot seems to be hitting the wiki really hard.

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2026-04-13 13:58:56 -07:00
b5f447cdcd proxies: allow websockets through anubis proxying for openqa
This worked in staging, so drop the staging conditional and just apply
it in prod too. It should allow websocket connections via the anubis
proxing.

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2026-04-13 20:24:05 +00:00
237df12258 proxies / staging: adjust conditional to actually apply to openqa.stg
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2026-04-10 12:26:46 -07:00
e9471dd3af openqa-lab: try and fix websockets via anubis
Re-enable anubis for openqa-lab01 and then try and pass it a proxy
statement to pass websockets correctly via the proxy.

disclaimer: claude pointed me in this direction.

Possible fix for infra/tickets#13252

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2026-04-10 12:08:54 -07:00
c16a25f911
Zabbix: add 5mins to the TicketKey check to allow batcave time to copy it over
Signed-off-by: Greg Sutcliffe <fedora@emeraldreverie.org>
2026-03-19 16:02:01 +00:00
1c54ac2c54
Zabbix: don't store long data for ticketkey ages
Signed-off-by: Greg Sutcliffe <fedora@emeraldreverie.org>
2026-03-13 11:10:32 +00:00
df7fcf39bf
Zabbix: Add ticketkey age monitoring to proxies
This also relocates the `httpchecks` roles to the right place,
as putting it in it's own role was a bit of hack. Having it in
the proxy role is better.

Signed-off-by: Greg Sutcliffe <fedora@emeraldreverie.org>
2026-03-13 10:35:10 +00:00
bd50f47247
Proxies: use a single path on the proxy as destination for the ticketkey
This also removes the Nagios config - it'll be looking in the wrong
place. A Zabbix replacement check will follow in the next commit.

Signed-off-by: Greg Sutcliffe <fedora@emeraldreverie.org>
2026-03-13 10:35:10 +00:00
1b938e0c7a Revert "koji: re-block some koji endpoints due to scrapers"
This reverts commit ffbcb36d91.

We no longer need this after the blocking of that abusive ASN.
2026-01-25 10:46:37 -08:00
ffbcb36d91 koji: re-block some koji endpoints due to scrapers
They are hitting these endpoints really hard.
Might be able to lift it later...

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2026-01-25 10:24:17 -08:00
2a8f208ce6 Fix qa redirect (remove trailing slash)
The qa.fp.o redirect is to a wiki page, it should not have a
trailing slash.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2026-01-22 14:16:53 -08:00