Commit graph

758 commits

Author SHA1 Message Date
Kevin Fenzi
c4024c4aa4 pdc: fare thee well!
This commit retires pdc from ansible.
The website should get redirected to a wiki page about the retirement.
If for some reason we need to bring things back, the vm's will still
have their disks and xml saved off so we can bring it back.
Would need to revert this, run proxy playbooks and do a little cleanup
on the redirect, then bring the vm's back up.
Hopefully we don't have to.

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2024-08-02 13:39:15 -07:00
Nils Philippsen
48f4990dd9 Fix typos
Signed-off-by: Nils Philippsen <nils@redhat.com>
2024-07-01 13:34:48 +00:00
Nils Philippsen
205e2c9ed5 distgit/pagure: Set git directories as safe
This was fixed previously for pagure.io in the context of
paguremirroring. Turns out, it affects all kinds of git operations, so
document and move accordingly.

Fixes: releng#12181
Fixes: fedora-infrastructure#12010

Signed-off-by: Nils Philippsen <nils@redhat.com>
2024-06-27 11:21:19 +02:00
Nils Philippsen
0adf0869a6 distgit/pagure: Appease yamllint
Signed-off-by: Nils Philippsen <nils@redhat.com>
2024-06-27 11:21:07 +02:00
Michal Konecny
38ca9f6f73 [distgit/pagure] Set ACL for newly created files in /var/log/pagure
Fix for https://pagure.io/fedora-infrastructure/issue/11957 was introduced to
pagure role, but it wasn't added to dist-git role as well. Let's fix that.

Signed-off-by: Michal Konecny <mkonecny@redhat.com>
2024-06-04 10:40:45 +02:00
Kevin Fenzi
a3977e7038 releng: retired-packages: also supress popd output
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2024-05-10 09:37:07 -07:00
Kevin Fenzi
9fecd9fd7c distgit / retired-packages: make cron job quieter
Right now the cron job is mailing out something like:

/tmp/releng.HEQKVAc ~
Cloning into 'releng'...
~

Hopefully this will make it not send that email unless there's an error.

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2024-05-06 09:12:10 -07:00
Lenka Segura
f137bbb0f1 Remove pagure-sync-bugzilla.py.js script
The script is not referenced anywhere and the sync is now done by
distgit_bugzilla_sync toddler.

Signed-off-by: Lenka Segura <lsegura@redhat.com>
2024-04-24 16:24:12 +00:00
Kevin Fenzi
7d7f8c51ad pagure: roll out pull request acl update to prod
See: https://pagure.io/fedora-infra/ansible/pull-request/1825

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2024-04-02 11:15:07 -07:00
Kevin Fenzi
b7294036cc pagure / dist-git: add staging conditional for testing
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2024-03-27 15:33:46 -07:00
Maja Massarini
5e046c04a6 pagure: add descriptions for new available pull_request acls
Related with commit 1efcf8a90b
We need to update the acls table with their descriptions.

pagure/cli/admin.py update-acls

The above command can update the table and it looks for descriptions in the ACLS config variable.
2024-03-27 22:12:32 +00:00
Lenka Segura
be15763f0f Change permissions on the retired_packages cron
Signed-off-by: Lenka Segura <lsegura@redhat.com>
2024-03-04 09:02:58 +00:00
Lenka Segura
41ee09672d [distgit] Add MAILTO and remove the git repo after running script
Signed-off-by: Lenka Segura <lsegura@redhat.com>
2024-02-29 11:08:06 +01:00
Lenka Segura
ae1f7adc8a [distgit] Fix the cron job: clone into temp dir
Signed-off-by: Lenka Segura <lsegura@redhat.com>
2024-02-24 22:14:34 +00:00
Maja Massarini
1efcf8a90b Add pr update and rebase acls to user tokens
Packit needs this ACLs to be able to update PRs it has already created.
We are implementing this feature:
https://github.com/packit/packit/issues/2182

Packit needs this ACLs just in distgit.
2024-02-21 09:51:29 +01:00
Lenka Segura
8a3c70cf14 Remove stg condition for running retired-packages script on pkgs01
Signed-off-by: Lenka Segura <lsegura@redhat.com>
2024-02-19 15:16:06 +01:00
Lenka Segura
f9d29c7b4b Add BODHI_URL to pagure config
Part of an initiative to remove PDC calls.
Active branches are now checked from a call to bodhi, not to pdc.
Needed for the check in distgit - avoid pushing to EOL branches

Signed-off-by: Lenka Segura <lsegura@redhat.com>
2024-01-10 12:32:02 +01:00
Aurélien Bompard
64da337e67
Use fedora-messaging-git-hook on dist-git
Signed-off-by: Aurélien Bompard <aurelien@bompard.org>
2023-12-04 17:58:49 +01:00
amedvede
e88add7dd1 distgit: added CSP headers for staging
Signed-off-by: amedvede <amedvede@redhat.com>
2023-11-23 10:54:07 +01:00
Lenka Segura
1ec305ee0b releng: Schedule a cron job to retrieve retired packages nightly
Signed-off-by: Lenka Segura <lsegura@redhat.com>
2023-11-21 08:56:50 +00:00
amedvede
3fe6717504 feat: added bodhi to csp headers of distgit
Signed-off-by: amedvede <amedvede@redhat.com>
2023-11-20 10:14:04 +01:00
Kevin Fenzi
88596cb852 pagure-dist-git: more config to quash info/debug output on https push
We also have fedora-messaging spewing out on pushes, so lets set that
back to warning, and we also need to change the default pagure logging
root to WARN.

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2023-01-17 12:55:24 -08:00
Kevin Fenzi
721d018ad6 pagure-dist-git: stop spewing INFO/DEBUG on https pushes
Right now when someone does a https push they get about 100 lines of
INFO and DEBUG from pagure. Everything from acls to messaging to pika to
everything. There's no need for all this debug/info spew.
Lets disable it and go back to just WARNINGS

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2023-01-17 12:33:45 -08:00
Kevin Fenzi
a6878760ea distgit: increase cgi body to 10G from 1G default to allow larger uploads
Fixes ticket 11001

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2022-11-23 10:13:00 -08:00
Kevin Fenzi
f183f5262b pagure-stg01 / ipsilon*.stg: split db passwords from stg and prod
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2022-09-19 13:53:15 -07:00
Kevin Fenzi
977212dcfd src.fp.o: try enabling h2 on backend first
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2022-08-03 12:17:26 -07:00
Kevin Fenzi
3c960624f4 fas2: good bye! You served long and well
Remove fas2 and all the checks that depended on it.

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2022-07-01 12:09:36 -07:00
Kevin Fenzi
68141d381b resultsdb: drop old vm's and adjust other apps to new openshift url
Drop resultsdb vars and playbooks.
resultsdb is now in openshift and on a different url.
Adjust bodhi, pagure dist git for the new url.
Drop taskotron roles.

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2022-06-21 14:01:28 -07:00
Mohan Boddu
d731413fc5 Enable pushing to master branches for modules
https://pagure.io/releng/issue/10139

Signed-off-by: Mohan Boddu <mboddu@bhujji.com>
2022-03-09 22:17:34 +00:00
88a5027744 Update roles/distgit/pagure/templates/pagure.cfg
Add Transtats link to CSP_HEADERS for Translation Status button to work.
2021-11-19 00:45:56 +00:00
Michal Konečný
98ea6b11fc distgit: Add pull_request_close ACL
Currently it's not possible to create token with pull_request_close ACL
for user (see https://pagure.io/pagure-dist-git/issue/144).

This commit will allow users to add pull_request_close ACL to their
token. The user is still validated if it has the permission, so adding
this ACL to user token doesn't allow user to use API to close any PR
currently opened in dist-git.

Thanks @pingou for helping me with this.

Signed-off-by: Michal Konečný <mkonecny@redhat.com>
2021-08-11 15:22:42 +02:00
Lenka Segura
d654d59f3a Change FAS link from admin.fp.o to accounts.fp.o 2021-08-04 14:19:45 +00:00
Mattia Verga
15f3dea6a1 Use bugzilla.stage instance after partner-bugzilla shutdown
Signed-off-by: Mattia Verga <mattia.verga@protonmail.com>
2021-07-31 17:08:49 +00:00
e8ceea85f1 distgit/pagure: change GIT_URL_SSH to use username
Signed-off-by: Ryan Lerch <rlerch@redhat.com>
2021-06-22 22:03:28 +10:00
39b3f92abc distgit/pagure: remove the commit ACL for API keys in stg
This was removed in prod in d0a8837 but left around in stg for
testing purposes. However, it is suspected that this was causing
users to not be able to push to forks in distgit, so removing.

https://pagure.io/fedora-infrastructure/issue/10045

Signed-off-by: Ryan Lerch <rlerch@redhat.com>
2021-06-22 19:32:58 +10:00
Pierre-Yves Chibon
6906744f61 distgit/pagure: Specify the url to oraculum in the config
Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>
2021-05-04 11:53:21 +02:00
Pierre-Yves Chibon
292c0baf78 distgit: adjust the way we override the branches when querying PDC
Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>
2021-04-06 14:04:16 +02:00
Pierre-Yves Chibon
2b46c6a7fb basessh/distgit: adjust the way ssh is configured for distgit
Basically, we are now installing a small wrapper in /usr/local/bin
which just echoes to stdout what should be in the authorized_keys
file for that user.
That content is generated by retrieving the ssh key from sssd via
the command sss_ssh_authorizedkeys as well as the usual ssh way to
restrict the action an user/key can do: command="...".
In this case, we're setting a couple of environment variable that
are needed later on for things to work properly as well as only
allow the user to call the aclchecker.py script provided by pagure.

Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>
2021-04-03 21:16:51 +02:00
Pierre-Yves Chibon
00804542f3 Revert "basessh/distgit: adjust the way ssh is configured for distgit"
This is still being reviewed and wasn't meant to be pushed out yet

This reverts commit 67844b4504.
2021-04-03 19:10:54 +02:00
Pierre-Yves Chibon
67844b4504 basessh/distgit: adjust the way ssh is configured for distgit
Basically, we are now installing a small wrapper in /usr/local/bin
which just echoes to stdout what should be in the authorized_keys
file for that user.
That content is generated by retrieving the ssh key from sssd via
the command sss_ssh_authorizedkeys as well as the usual ssh way to
restrict the action an user/key can do: command="...".
In this case, we're setting a couple of environment variable that
are needed later on for things to work properly as well as only
allow the user to call the aclchecker.py script provided by pagure.

Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>
2021-04-03 19:01:38 +02:00
Pierre-Yves Chibon
9d4f6c7620 distgit/pagure: disable the hook to block un-signed commits
Relates to https://pagure.io/fedora-infrastructure/issue/9793

Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>
2021-03-29 14:50:51 +02:00
Pierre-Yves Chibon
74b32a1768 distgit/pagure: fix thee if/else/endif block
Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>
2021-03-02 11:18:29 +01:00
Pierre-Yves Chibon
5d83949656 distgit/pagure: Turn off username lookup in dist-git
Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>
2021-03-02 11:16:06 +01:00
Pierre-Yves Chibon
8b39d13364 pagure/dist-git: Adjust the IP list allowed on the internal endpoint - again
Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>
2021-03-01 17:26:47 +01:00
Pierre-Yves Chibon
caa8b7054a pagure/dist-git: Adjust the IP list allowed on the internal endpoint
Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>
2021-03-01 17:02:50 +01:00
Pierre-Yves Chibon
40bfa1604b distgit/pagure: Let pagure to manage ssh keys in stg
Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>
2021-03-01 16:36:20 +01:00
Pierre-Yves Chibon
0d1d2aace5 distgit/pagure: create the git user and add it to the packager group
Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>
2021-03-01 16:25:10 +01:00
Pierre-Yves Chibon
ac2c21ca4a distgit/pagure: in stg we'll use the git user now
Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>
2021-03-01 16:17:57 +01:00
Pierre-Yves Chibon
218d692b85 dist-git/pagure: configure pagure to allow access via a single git user for everyone
Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>
2021-03-01 13:21:25 +01:00
Pierre-Yves Chibon
d0a8837c07 distgit/pagure: remove the commit ACL for API keys in prod
This ACL turns out to be too confusing to users as it currently
does not work with our OIDC set-up with fedpkg.
Once we'll have figured out how to make both work together or
keep one and remove the other, we can revisit.

Keeping this in staging so we have a place where we can experiment
with this.

Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>
2021-02-18 09:26:48 +01:00