Commit Graph

45104 Commits

Author SHA1 Message Date
Adam Williamson
37e2d34eb6 proxies: block IP attempting SQL injections on openQA (prod)
My staging effort seems to have worked, so let's do prod too.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2025-12-30 08:58:11 -08:00
Adam Williamson
b9fe2e598e proxies: add nft_block_rules to nftables.staging
Signed-off-by: Adam Williamson <awilliam@redhat.com>
2025-12-30 08:56:14 -08:00
Adam Williamson
3e8c446877 proxies: block IP attempting SQL injections on openQA
I hope I got this right. This IP is trying Little Bobby Tables
attacks on openQA and it's making the servers crash.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2025-12-30 08:46:28 -08:00
Adam Williamson
d7fbddc338 varnish: drop kerneltest
It was moved to openshift in 2024 (see e.g. 0e5f679). Dropped
from haproxy config in 55056c6.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2025-12-26 19:39:02 +00:00
Adam Williamson
8801582e01 varnish: drop blockerbugs
Moved to openshift in 2022 (see e.g. ab4db44) and was dropped from
the haproxy config in 55056c6, nothing listens on 10022 on the
proxies these days.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2025-12-26 19:39:02 +00:00
Adam Williamson
3ef38feb21 varnish: remove askbot
See cb22afd (removed ask config in 2018). It's been gone since
then. Nothing listens on 10021 on the proxies.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2025-12-26 19:39:02 +00:00
Adam Williamson
4f6c6f7460 varnish: remove packages
See 5413a21 (noting it was moved to openshift in 2020) and
55056c6 (removed it from haproxy config).

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2025-12-26 19:39:02 +00:00
Adam Williamson
bee72cf44d varnish: drop bodhi
Was moved to openshift long ago. All of these URLs are now just
302s to bodhi.fedoraproject.org in the httpd config. Nothing
listens on port 10009 on the proxies.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2025-12-26 19:39:02 +00:00
Adam Williamson
13eeea6d6a varnish: drop mirrormanager (not mirrorlists)
Was moved to openshift. Was dropped from haproxy config in
55056c6, but not from varnish.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2025-12-26 19:39:02 +00:00
James Antill
982818878e updates+uptimes: Add --hist and --osnames options.
Signed-off-by: James Antill <james@and.org>
2025-12-26 13:12:25 -05:00
James Antill
c127602949 Remove rest of f41-test.
Signed-off-by: James Antill <james@and.org>
2025-12-26 12:46:03 -05:00
Kevin Fenzi
5dee660cac proxy3: use fqdn in nagios
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2025-12-25 08:49:17 -08:00
James Antill
efa0061ca5 Remove f41-test from inventory.
Signed-off-by: James Antill <james@and.org>
2025-12-25 08:35:47 -05:00
Adam Williamson
ae1dfd09d2 Drop fas backend from varnish config
I'm pretty sure this is a vestige of FAS2. 'fas01' resolves on
*most* proxies, but to an IP address that doesn't exist. On
proxy01.stg (but not proxy02.stg for some reason?) it does not
resolve at all, and this causes varnish to fail to start up.
Let's just get rid of it.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2025-12-23 23:26:50 -08:00
Greg Sutcliffe
9fae8c7d2d Zabbix: First try of the CMDB-in-Zabbix-Inventory idea (#12817)
Signed-off-by: Greg Sutcliffe <fedora@emeraldreverie.org>
2025-12-22 15:09:07 +00:00
Pavel Raiskup
cd95aa0095 copr-be: try to use x86 copr04 2025-12-20 15:54:12 +01:00
James Antill
c68ec66f3e Move prox01.stg to F43.
Signed-off-by: James Antill <james@and.org>
2025-12-19 14:39:12 -05:00
Jiri Kyjovsky
b7f3eff5f0 copr-anubis: allow webhooks 2025-12-19 19:45:53 +01:00
David Kirwan
6a12544029 forgejo: modifying ipsilon config for the staging dist-git instance
Signed-off-by: David Kirwan <davidkirwanirl@gmail.com>
2025-12-19 13:34:53 +00:00
David Kirwan
53e01287bb forgejo: update ipsilon with the correct temporary hostname for callback
Signed-off-by: David Kirwan <davidkirwanirl@gmail.com>
2025-12-19 13:26:46 +00:00
Greg Sutcliffe
b3b1947c21 Zabbix: Update host_reboot play to shush Zabbix
Signed-off-by: Greg Sutcliffe <fedora@emeraldreverie.org>
2025-12-19 13:15:01 +00:00
Greg Sutcliffe
149047b50d Copr: fix IP hostvars on vmhost-x86-copr04 - again
Signed-off-by: Greg Sutcliffe <fedora@emeraldreverie.org>
2025-12-19 11:51:57 +00:00
Greg Sutcliffe
f639e26c12 Copr: fix IP hostvars on vmhost-x86-copr04
Signed-off-by: Greg Sutcliffe <fedora@emeraldreverie.org>
2025-12-19 11:43:49 +00:00
Greg Sutcliffe
8f6c1878f8 Zabbix: fix tags on task
Signed-off-by: Greg Sutcliffe <fedora@emeraldreverie.org>
2025-12-19 11:42:51 +00:00
Adam Williamson
16ddce81e8 Forgejo attachment proxy: special-case testdays-web
This is a bit ugly, but can't think of a better way right now.
Since @kparal is using this migration of testdays-web from prod
pagure to staging forgejo as a test case for prod migrations in
general, let's make sure it works properly by proxying attachment
requests to prod pague instead of staging.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2025-12-18 17:46:36 -08:00
Adam Williamson
08f04c6d36 Whoops, fix a missing stg. in forgejo attachment proxying
Signed-off-by: Adam Williamson <awilliam@redhat.com>
2025-12-18 17:44:54 -08:00
Tomas Hrcka
18a56cc89e [forge] Add mapping for konflux-integration organization
Signed-off-by: Tomas Hrcka <thrcka@redhat.com>
2025-12-18 19:37:36 +00:00
Adam Williamson
01150e5290 elections: use set-forwarded-headers: replace for now
This should 'fix' broken redirects in the elections UI, see
https://pagure.io/fedora-infrastructure/issue/12997 .

This probably isn't ultimately the correct fix but it should make
things work for now. The real issue seems to be that elections'
custom WSGI app wrapper which attempts to handle the app being
reverse-proxied doesn't handle all proxied headers and/or doesn't
handle comma-separated list values. The long-term fix is likely
to be using werkzeug/middleware/proxy_fix.py instead, see
https://pagure.io/elections/issue/106 .

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2025-12-18 11:14:50 -08:00
Adam Williamson
cacc7710ad proxies/forge: fix attachment proxying for images
This turned out to be a bit complicated, see
https://codeberg.org/forgejo/forgejo/issues/6360#issuecomment-9010932 . Pagure
images in comments use root-relative Markdown links, like this:

![image.png](/group/repo/issue/raw/files/image.png)

but Forgejo renders those relative to *the repo*, not the server root, so
they get rendered as something like:

<img src="/forgejoorg/forgejorepo/group/repo/issue/raw/files/image.png">

However, it does *not* do this for *non-image* root-relative links, so those
aren't 'broken'. This means we need to handle *both* cases in the proxying,
and we also need to keep in mind that Pagure allows repos without a group.
So we can wind up with one, two, three or four folders before /issue.

I did some testing and I *think* this should cover all cases. I've tested
this does fix images, I haven't tested on a non-image attachment yet (need
to find one).

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2025-12-18 17:39:26 +00:00
Adam Williamson
219ffbf416 proxies/forge: fix SSL failures with attachment reverse proxy
The attachment reverse proxy was failing for several reasons, one
of which is that SSL options weren't set up correctly so the SSL
connection to pagure.io failed. This adds a Proxy section for
stg.pagure.io with the appropriate settings to make it work.

There are still several other issues, but this at least fixes the
SSL problem.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2025-12-18 17:39:26 +00:00
Pavel Raiskup
373bda5563 copr-hypervisor: avoid using ansible copr module for now
https://github.com/fedora-copr/copr/issues/4094
2025-12-18 18:20:01 +01:00
David Kirwan
1a18ff41fd communishift: mark project communishift-fedora-coreos-ai-helpers do not
clean up.

Signed-off-by: David Kirwan <davidkirwanirl@gmail.com>
2025-12-18 16:09:42 +00:00
Pavel Raiskup
02fb5aac8f copr-hypervisor: drop the hack for helpers repo 2025-12-18 17:07:17 +01:00
Pavel Raiskup
514bb44914 copr-be: limit the number of builds in a single sandbox
This appears to be problem in recent days.  One user still can submit
more builds in parallel, but not in a single project (e.g., Packit).
2025-12-18 17:03:39 +01:00
David Kirwan
3272113adc communishift: enabling the notifications to go to project admins
Signed-off-by: David Kirwan <davidkirwanirl@gmail.com>
2025-12-18 15:54:42 +00:00
David Kirwan
4f4fbd3c26 communishift: renaming tasks in cleanup notification playbook
Signed-off-by: David Kirwan <davidkirwanirl@gmail.com>
2025-12-18 15:39:37 +00:00
David Kirwan
2154067fef communishift: rename task being called in cleanup notification playbook
Signed-off-by: David Kirwan <davidkirwanirl@gmail.com>
2025-12-18 15:36:32 +00:00
David Kirwan
ada7943373 communishift: remove unnecessary imports in clean up notification tasks
Signed-off-by: David Kirwan <davidkirwanirl@gmail.com>
2025-12-18 15:34:33 +00:00
David Kirwan
b28a963e32 communishift: clean up the project cleanup notification tasks
Signed-off-by: David Kirwan <davidkirwanirl@gmail.com>
2025-12-18 15:26:57 +00:00
Pavel Raiskup
ee10005271 copr-hypervisor: drop glanceclient
It's not easily installable on RHEL 10, and we anyway upload images
directly from copr-backend these days.
2025-12-18 16:18:45 +01:00
Pavel Raiskup
4078ccff24 copr-hypervisor: don't enable el8 on el10 hosts 2025-12-18 16:15:54 +01:00
Aurélien Bompard
7635095372 Noggin: increase the worker timeout
Signed-off-by: Aurélien Bompard <aurelien@bompard.org>
2025-12-18 12:31:18 +01:00
Jakub Kadlcik
e751ba0278 backend: allow resalloc WebUI to connect to the database
See https://github.com/fedora-copr/copr/issues/4007
2025-12-18 11:48:12 +01:00
Jakub Kadlcik
158fc0e6a1 backend: I think this is the correct indentation 2025-12-18 11:47:16 +01:00
Jakub Kadlcik
56852ba78c copr-backend: disable NoNewPrivileges for lighttpd
See https://github.com/fedora-copr/copr/issues/4007
2025-12-18 11:21:32 +01:00
Greg Sutcliffe
2c9a9fab6a Kickstart: fix truncated lines
Signed-off-by: Greg Sutcliffe <fedora@emeraldreverie.org>
2025-12-16 17:27:27 +00:00
Greg Sutcliffe
33de21c579 Kickstart: adjust disk sizes for Copr 10-disk RHEL 10 KS
Signed-off-by: Greg Sutcliffe <fedora@emeraldreverie.org>
2025-12-16 17:22:33 +00:00
Greg Sutcliffe
5af110bad7 Kickstart: add copr 10-disk RHEL 10 KS
Signed-off-by: Greg Sutcliffe <fedora@emeraldreverie.org>
2025-12-16 16:59:24 +00:00
Mattia Verga
7cdf3ae91c bodhi-stg: disable returning back celery results
Signed-off-by: Mattia Verga <mattia.verga@tiscali.it>
2025-12-16 11:31:15 +00:00
Kevin Fenzi
22a321a6a1 Revert "kojipkgs / varnish: cache also ostree repo objects dir listings"
This reverts commit 267cbc3c74.

Perhaps this needs some more work to match these requests.
2025-12-15 18:14:39 -08:00