Commit Graph

539 Commits

Author SHA1 Message Date
Ryan Lerch
080db33424 turn of new projects UI for production
Signed-off-by: Ryan Lerch <rlerch@redhat.com>
2026-02-09 12:37:51 +10:00
Kevin Fenzi
d30bdfb3ed pagure / staging: add missing endif
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2026-01-21 13:40:38 -08:00
Anton Medvedev
82f9af8767 feat(roles/pagure): adding myself as pagure admin on stg
Signed-off-by: Anton Medvedev <amedvede@redhat.com>
2026-01-21 21:37:26 +00:00
Kevin Fenzi
a754144f19 Update infra pagure.io links to forge.fp.o (WIP)
This should update all the references we have to
https://pagure.io/fedora-infrastructure to the
new https://forge.fedoraproject.org/infra/tickets/ area.

Do not merge this before the migration on tuesday.

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2026-01-20 14:39:40 -08:00
Kevin Fenzi
d00ef11307 Save pingou's email box
We should not flood his mailbox anymore.

I set it to go to admin@fedoraproject.org, but if it's too much for
everyone we could just set it to nobody, or adjust it so it doesn't send
so many, or something else.

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2026-01-19 22:25:57 +00:00
Greg Sutcliffe
140a6eb752 Zabbix: Don't hardcode trigger hostnames
Signed-off-by: Greg Sutcliffe <fedora@emeraldreverie.org>
2025-12-11 11:52:51 +00:00
Greg Sutcliffe
69fd257fd9 Zabbix: add external-check on Pagure certs
This is a POC on cert checks - it assigns an item to the Pagure host
(not via a template) but the actual check is executed on the Zabbix
server.

In reality, we should probably add LLD to certgetter01 for all the LE
certs, but this is a useful example for other cert types

Signed-off-by: Greg Sutcliffe <fedora@emeraldreverie.org>
2025-12-11 11:47:02 +00:00
Kevin Fenzi
065a89faeb pagure.io: increase processes
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2025-12-09 11:34:04 -08:00
Kevin Fenzi
fd342ee1a4 pagure.io: forbid generating archives from forks
pagure will generate a zip or gz archive of any particular thing on a
fork. scrapers crawl this and generate an archive for every single
tag in a fork.

Since we don't really need these in forks, lets forbid that.

Users that somehow need an archive for a fork can clone locally and
generate one. Non forks we are leaving enabled at this time as they
can/do use this for releases.

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2025-12-08 10:15:16 -08:00
Kevin Fenzi
88686312db pagure: enable rewriteengine
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2025-12-08 10:03:20 -08:00
Kevin Fenzi
8fbcbac96d pagure: fix order of operations to not block after proxying (which will not work)
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2025-12-08 10:00:54 -08:00
Kevin Fenzi
b88b92a719 pagure: disable /blame/ on pagure.io
The blame endpoint gets crawled a lot by scrapers and it's very
intensive for pagure. It has to run the blame in the git repo, which
can take a while and requests pile up.

While right now load is fine with it, it's might be causing
sporadic 503's that we are seeing cloing things. If there's a bunch
of blame requests cloging up the queue.

Users can git clone and run a blame locally if they need to.

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2025-12-08 09:57:07 -08:00
Michal Konecny
b4425bf9e6 [pagure] Re-enable project creation on staging
See https://pagure.io/fedora-infrastructure/issue/12943 for the reason
behind this.

Signed-off-by: Michal Konecny <mkonecny@redhat.com>
2025-11-27 11:14:33 +01:00
Kevin Fenzi
33b5710bb0 pagure: move python3-httplib2 to the right place
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2025-11-18 18:52:11 -08:00
Kevin Fenzi
f9a589fc50 pagure: actually install python3-httplib2 before trying to hotfix it
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2025-11-18 18:42:34 -08:00
Kevin Fenzi
03b49682a5 pagure: Only apply srcfpo hotfix on src.fp.o
We don't want to try and apply this on pagure.io/stg.pagure.io, it's
src.fedoraproject.org specific.

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2025-11-18 18:17:47 -08:00
Nick Bebout
c8aaf71b12 Fix Ben's commit 2025-09-23 18:57:02 -05:00
Ben Maconi
4bcf63ba93 added redirect for www.pagure.io to pagure.io 2025-09-23 18:35:49 -05:00
Kevin Fenzi
ef2b6c4dd5 pagure: enable anubis in prod
This should enable anubis on pagure.io.
If it needs backing out, revert this commit.

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2025-09-18 10:22:43 -07:00
Kevin Fenzi
c2a32e9b80 stg.pagure.io: add anubis pod
This adds a setup where we have podman pulling the anubis pod and
running it and then proxying requests through it for weighing.

The pod runs as an unpriv 'anubis' user and uses a systemd service file
to manage it.

Changes then are made in httpd config to terminate ssl and then proxy
via anubis. The flow is:

request -> httpd -> anubis/pod -> httpd (pagure wsgi app).

This is already manually setup on stg.pagure.io and this pr
should not change pagure.io any.

If/when we wish to enable this for pagure.io, we just need to adjust the
0_pagure.conf file and the playbook to include the role.

Note that we will want to use a different approach for proxies/other
applications. There we can use the native fedora anubis package, and
will need to adjust templates to handle the middle proxying.

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2025-09-05 16:33:08 +00:00
Pierre-Yves Chibon
81cf508f3a Stop sending pagure error emails to pingou
Pagure is currently sending tens of thousands of emails per day. It's
flooding my mail server and I can't keep up.
Since I'm not reading them anymore, it's likely better to just not send
them :(

Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>
2025-08-29 17:43:35 +00:00
Kevin Fenzi
8ee5e09ce1 pagure02: drop a bunch of old blocks
For now, we should be able to drop these blocks.
I checked logs and there have been no recent hits to these.
Of course they could become active again, but we can always put it back
in place. There's been requests from folks wanting to submit pr's that
their forks are blocked by these.

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2025-08-28 18:36:50 +00:00
James Antill
5f3f142be1 pagure: Actually add the rsyslog-logrotate file.
Signed-off-by: James Antill <james@and.org>
2025-08-26 14:13:16 -04:00
James Antill
db3727afb1 pagure: Fix rsyslog logrotate.
Signed-off-by: James Antill <james@and.org>
2025-08-26 13:38:11 -04:00
James Antill
9eb29f21e9 pagure: Revert part of the lint cleanup. Prev=c5ca51336411...
Signed-off-by: James Antill <james@and.org>
2025-08-26 13:17:08 -04:00
Lenka Segura
a2cfb0a360 pagure: hotfix for links to accounts.fpo
Signed-off-by: Lenka Segura <lsegura@redhat.com>
2025-08-07 21:15:42 +00:00
Lenka Segura
c5ca513364 pagure: Fix lint errors in main task
Signed-off-by: Lenka Segura <lsegura@redhat.com>
2025-08-07 22:21:42 +02:00
Kevin Fenzi
c12a1cb27d pagure: drop fedora-infra forks for now as crawlers are hammering the crap out of pagure over them
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2025-06-02 07:43:30 -07:00
Kevin Fenzi
836d79193c pagure: update ansible for latest blocks from ai
Update the latest project blocks that were added.

Also, extend the bot block to docs.pagure.io, which was
being hammered by scrapers.

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2025-05-30 10:02:24 -07:00
Kevin Fenzi
b55d66cc51 Revert "pagure: block some more forks and blame/history from ai scrapers"
This reverts commit 1c7ecb6bcf.

Lets see if the bots have moved on.
2025-05-26 08:32:37 -07:00
Kevin Fenzi
1c7ecb6bcf pagure: block some more forks and blame/history from ai scrapers
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2025-05-25 21:47:39 -07:00
Kevin Fenzi
f67d942dbb pagure: http.logrotate is a template now
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2025-05-24 21:21:27 -07:00
Kevin Fenzi
91e9a5627d httpd / botblocking: fix syntax on bot rewrite
These have to be in "s in order to do a string comparison, since
they were not, they were never matching anything. ;(

Fix them all up, and also block a few more repos on pagure that are
getting heavily crawled.

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2025-05-13 11:39:25 -07:00
Michal Konecny
a0046b5b4b [distgit] Fixing ansible lint errors
This commit is fixing ansible lint errors for distgit role.

It also introduces two new addition to skip list as the structure of our
ansible repository doesn't adhere to ansible standards.

The errors that will be now skipped are:
- role-name[path] - we have plenty of roles that have sub-roles inside
  them and we need to access them
- var-naming[no-role-prefix] - variables for roles are not usually
  prefixed correctly in our repository and forcing people to change that
  will introduce more issues than what it solves
2025-04-30 10:07:35 +00:00
Kevin Fenzi
4bba87381d pagure: block some old mirror copies of big projects
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2025-04-16 10:22:35 -07:00
Ryan Lerch
be6e3b0161 pagure: close pagure.io off to new projects
Signed-off-by: Ryan Lerch <rlerch@redhat.com>
2025-04-15 01:40:19 +00:00
Aurélien Bompard
d884a0f8ba Use the combined RabbitMQ CA cert in the clients
Signed-off-by: Aurélien Bompard <aurelien@bompard.org>
2025-04-11 15:15:45 +02:00
Ryan Lerch
654260ceff [pagure stg] disable new projects from being created
Signed-off-by: Ryan Lerch <rlerch@redhat.com>
2025-04-03 18:50:47 +10:00
Michal Konecny
1459e74b5a [pagure] Tweak the performance of httpd server
Today the pagure started to be unresponsive. After few hours of
debugging we narrowed the issue to worker limit. We tweaked the value to
something that should be more responsive and it helped.

Here is the PR to make the change permanent.

Thanks @gwmngilfen and @nphillip for help with that.
2025-03-26 14:03:34 +00:00
Michal Konecny
6b0a66cb37 [fedora-messaging] Adding topic_prefix back
Removing the topic_prefix from fedora messaging config files was a bit
premature. So let's put them back in place.

Signed-off-by: Michal Konecny <mkonecny@redhat.com>
2025-02-14 12:40:12 +01:00
Michal Konecny
6428f8f772 Sunset github2fedmsg and fedmsg
This commit is removing all the fedmsg related stuff from ansible
repository.

Signed-off-by: Michal Konecny <mkonecny@redhat.com>
2025-02-13 10:08:51 +00:00
Michal Konecny
2ec055db6f Use first uppercase letter for all handlers
This will unify all the handlers to use first uppercase letter for
ansible-lint to stop complaining.

I went through all `notify:` occurrences and fixed them by running
```
set TEXT "text_to_replace"; set REPLACEMENT "replacement_text"; git grep
-rlz "$TEXT" . | xargs -0 sed -i "s/$TEXT/$REPLACEMENT/g"
```

Then I went through all the changes and removed the ones that wasn't
expected to be changed.

Fixes https://pagure.io/fedora-infrastructure/issue/12391

Signed-off-by: Michal Konecny <mkonecny@redhat.com>
2025-02-10 20:31:49 +00:00
Michal Konecny
7b58dfdce8 Remove fedmsg and github2fedmsg from staging
The messaging bridges openshift project and github2fedmsg VM were
already removed in staging. This is to clean the ansible playbooks.

I will create a separate one for production after this one is merged.

Signed-off-by: Michal Konecny <mkonecny@redhat.com>
2025-02-04 09:13:40 +01:00
Kevin Fenzi
a6c874f45e pagure: fix overzellous shell call that should be a variable
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2025-01-24 20:18:38 -08:00
Ryan Lerch
47c68f478d ansiblelint fixes - fqcn[action-core] - template to ansible.builtin.template
Replaces references to template: with ansible.builtin.template

Signed-off-by: Ryan Lerch <rlerch@redhat.com>
2025-01-15 11:30:29 +10:00
Ryan Lerch
3c41882bb0 ansiblelint fixes - fqcn[action-core] - shell to ansible.builtin.shell
Replaces references to shell: with ansible.builtin.shell

Signed-off-by: Ryan Lerch <rlerch@redhat.com>
2025-01-15 11:29:10 +10:00
Ryan Lerch
25391e95b7 ansiblelint fixes - fqcn[action-core] - package to ansible.builtin.package
Replaces many references to  package: with ansible.builtin.package

Signed-off-by: Ryan Lerch <rlerch@redhat.com>
2025-01-15 11:28:00 +10:00
Ryan Lerch
462176464b ansiblelint fixes-- fqcn[action-core] - command to ansible.builtin.command
Replaces many references to  command: with ansible.builtin.command

Signed-off-by: Ryan Lerch <rlerch@redhat.com>
2025-01-15 11:26:47 +10:00
Ryan Lerch
6a3816dfdc ansiblelint fixes-- fqcn[action-core] - copy to ansible.builtin.copy
Replaces many references to 'copy' with ansible.builtin.copy

Signed-off-by: Ryan Lerch <rlerch@redhat.com>
2025-01-15 10:43:31 +10:00
Ryan Lerch
62952df107 ansiblelint fixes-- fqcn[action-core] - file to ansible.builtin.file
Replaces many references to  file: with ansible.builtin.file

Signed-off-by: Ryan Lerch <rlerch@redhat.com>
2025-01-15 10:41:52 +10:00