Use the "data-list" classes to style the Hosts table in the channelinfo
page. This makes the header row stand out and easier to read, matching
the rest of the data tables in kojiweb.
This change also fixes a problem in some downstream themes. For example,
Fedora's theme and Brew's theme set "text-align: right" for all tbody.th
elements. These themes do this in order to control the larger parent
"info" table header cells, but it ends up mis-aligning un-classed
sub-tables like this one. With this change, the "list-header" class
left-aligns the header row text, and the "data-list" class left-aligns
the final text.
This allows for users authenticated to the Koji Web interface via
Kerberos to be proxied to the HUB using an SSL certificate and
(in theory) vice versa though it's not clear why you'd want that.
This is useful in environments where the owners of the Kerberos
realm are not willing to create service accounts and export
keytabs for them.
Set WebAuth = kerberos to indicate that users are authenticated
to the web via Kerberos. The existing config controls how kojiweb
authenticates to the HUB.
If using this, it is recommended to set
LoginCreatesUser = Off
in hub.conf, to avoid accidental creation of Koji accounts for
users of the wider Kerberos realm.
We've replaced it with requests library some time ago, this code has no
better sensitivity than requests error checking, so we can drop it
completely.
Fixes: https://pagure.io/koji/issue/2752
In koji-1.22.0-129-g0ef3c751 I've changed the way how
site-packages directory is obtained. What I did not realize back
then is there can be multilib systems which will not search for
packages in /usr/lib64. But 64bit systems do look into /usr/lib.
Therefore, let's pick the location where both systems work.
Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1894261Fixes: #2578https://pagure.io/koji/issue/2578
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
So far, in all Makefiles we have a complicated way to construct
PKGDIR path which is used to install python modules into.
Firstly, python version is obtained, and then system prefix and
these are then used to construct the PKGDIR path. Well, we can do
better. We can use 'site.getsitepackages()[0]' to obtain exactly
the path we are after.
This also fixes the problem on distributions which have split
/usr/lib and /usr/lib64 directories, because with the way we are
constructing the PKGDIR path we assume that the directories are
the same (or one is a symlink to another). Well, that is not
always the case.
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>