#1923 Git hooks should query REST api for list of enabled hooks.
Opened 7 years ago by ralph. Modified a year ago

Currently, the git hooks need to access the pagure db to get the list of enabled hooks. This requires privileges in the git hook that are unsavory.

Instead, the git hooks should query the REST api to get the list of enabled hooks. This would allow us to separate code executing as non-system users from code that needs to access the database.


The main issue this is tracking is that the gitolite user needs read access to the Pagure configuration file.
Pagure should be reworked so that this is not needed.

Well, the hooks need access to a config file, we could have a dedicate one just for them which would likely contain much less information.

This is a good idea and something to work on nonetheless :)

Metadata Update from @pingou:
- Issue tagged with: RFE

7 years ago

Metadata Update from @wombelix:
- Issue set to the milestone: 5.13

a year ago

Login to comment on this ticket.

Metadata