sidetag: extend is_sidetag_owner for untag ops

Related: https://pagure.io/koji/issue/3848
This commit is contained in:
Tomas Kopecek 2023-06-20 14:20:07 +02:00
parent 38a966abd5
commit 13097dff36
2 changed files with 26 additions and 4 deletions

View file

@ -122,8 +122,12 @@ Example for `/etc/koji-hub/hub.conf`:
match action block && is_sidetag_owner :: allow
all :: deny
There are two special policy tests `is_sidetag` and `is_sidetag_owner` with
expectable behaviour.
There are two special policy tests ``is_sidetag`` and ``is_sidetag_owner`` with
expectable behaviour. ``is_sidetag_owner`` can handle optional
``tag``/``fromtag``/``both`` keywords which specify data to be tested. Default
is testing ``tag`` in policy data, ``fromtag`` can test this field (e.g. in
``untagBuild`` case) and ``both`` fails if any of the involved tags is not owned
by sidetag owner.
Now Sidetag Koji plugin should be installed. To verify that, run
`koji list-api` command -- it should now display `createSideTag`