Commit graph

480 commits

Author SHA1 Message Date
Jana Cupova
44f5ebaabb Authtype as enum and getSessionInfo prints authtype name
Fixes: https://pagure.io/koji/issue/3436
2022-07-26 14:36:00 +02:00
Jana Cupova
6d766bd412 www: Set SameSite and Set-Cookie2
Fixes: https://pagure.io/koji/issue/3389
2022-07-25 11:21:45 +02:00
Jana Cupova
c1e669111f www: archivelist and rpmlist raise error when imageID is unknown
Fixes: https://pagure.io/koji/issue/3381
2022-07-25 11:18:09 +02:00
Jana Cupova
3371b8f029 Order channels at hosts page
Fixes: https://pagure.io/koji/issue/3367
2022-06-20 09:31:53 +02:00
Jana Cupova
0faf0d8409 Add blocked option to packages page
Fixes: https://pagure.io/koji/issue/3330
2022-05-04 15:17:03 +02:00
Tomas Kopecek
75580d8296 www: display load/capacity at hosts page
https://pagure.io/koji/issue/3345
2022-05-04 15:14:17 +02:00
Jana Cupova
507317d070 Fix number of packages without blocked
Fixes: https://pagure.io/koji/issue/3328
2022-04-20 15:17:51 +02:00
Jana Cupova
80f6035461 Webui: add free task for admin
Fixes: https://pagure.io/koji/issue/2895
2022-04-19 12:42:45 +02:00
Tomas Kopecek
c94ce02633 www: fix attribute test
Related: https://pagure.io/koji/issue/3302
2022-03-28 14:02:55 +02:00
Ji-Hyeon Gim
1335841aeb web: encode filename as UTF-8
Signed-off-by: Ji-Hyeon Gim <potatogim@gluesys.com>
2022-03-28 13:53:32 +02:00
Jana Cupova
8f91020a01 Fix tag and target shows as string, not as dict to string
Fixes: https://pagure.io/koji/issue/3251
2022-03-21 14:30:03 +01:00
Alex Iribarren
68040263d3 Fix syntax error
Fixes: https://pagure.io/koji/issue/3264
2022-02-25 08:47:38 +01:00
Jana Cupova
ca7e67d808 Escape builds, tasks and tags name
Fixes: https://pagure.io/koji/issue/3155
2022-02-07 10:45:27 +01:00
Jana Cupova
c83d4598de Escape html values
Fixes: https://pagure.io/koji/issue/3155
2022-02-07 09:36:59 +01:00
Alex Iribarren
8e59e3f613 Show total builds and add two more date options 2022-01-31 10:20:53 +01:00
Jana Cupova
355c713044 Taginfo page shows packages with/without blocked
Fixes: https://pagure.io/koji/issue/1350
2021-12-20 09:08:47 +01:00
Jana Cupova
d370e42c64 www: rpminfo/fileinfo/imageinfo/archiveinfo page shows human-readable filesize
Fixes: https://pagure.io/koji/issue/2943
2021-12-13 17:05:17 +01:00
Ken Dreyer
0323c4f985 www: style channelinfo hosts table rows
Use the rowToggle helper to style the rows with alternating colors. This
makes this table easier to read.
2021-11-19 16:37:11 -05:00
Ken Dreyer
a791dd8670 www: fix alignments in channelinfo hosts table
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.
2021-11-19 16:29:45 -05:00
Tomas Kopecek
24e5c0cb45 further fixes (will be squashed before merge) 2021-11-04 12:07:05 +00:00
Tomas Kopecek
b6ccafafeb proxyauthtype for web users 2021-11-04 12:07:05 +00:00
Tim Smith
330e4d5a1f Reverse check order between WebCert and WebPrincipal in case both are set
In the case that both WebPrincipal and WebCert are set, reverse the
order of checking them so that WebCert is used by default.
2021-11-04 12:07:05 +00:00
Tim Smith
6e58377a89 Allow kojiweb to proxy users obtained via different mechanisms
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.
2021-11-04 12:07:05 +00:00
Jana Cupova
bc2a51350d Enable/disable channel
Fixes: https://pagure.io/koji/issue/1851
2021-07-20 10:33:50 +02:00
Jana Cupova
138d8f4e37 Update webUI number of tasks
Fixes: https://pagure.io/koji/issue/2930
2021-07-19 09:16:42 +02:00
Jana Cupova
aec9fba121 Add CLI related to channels + add comments to channels
Fixes: https://pagure.io/koji/issue/1711
Fixes: https://pagure.io/koji/issue/1849
2021-06-29 14:44:47 +02:00
Jana Cupova
6e1c7e772c Hosts page with more filters and added channel column
Fixes: https://pagure.io/koji/issue/1423
Fixes: https://pagure.io/koji/issue/827
2021-06-23 15:32:18 +02:00
Joe Talbott
cdb101225a kojiweb - Fix getting tag ID for buildMaven taskinfo page.
Fixes: https://pagure.io/koji/issue/2899
2021-06-21 13:56:00 +02:00
Jana Cupova
f8257908f5 Drop download link from deleted build
Fixes: https://pagure.io/koji/issue/2557
2021-06-21 13:55:08 +02:00
Tomas Kopecek
4896a29cb5 better label 2021-05-10 09:13:13 +02:00
Tomas Kopecek
aa2011c72b web: don't use count(*) on first tasks page
Fixes: https://pagure.io/koji/issue/2482
2021-05-10 09:13:13 +02:00
Tomas Kopecek
d87e684700 web: additional info on API page
Related: https://pagure.io/koji/issue/2825
2021-05-05 13:18:55 +02:00
Tomas Kopecek
0b9437c723 use with_owners=False 2021-04-19 15:15:53 +02:00
Jana Cupova
6a2c6e7586 Repo info with task id
Fixes: https://pagure.io/koji/issue/888
2021-04-19 15:15:10 +02:00
Alex Iribarren
a233a0ca72 Show VCS and DistURL tags as links when appropriate 2021-04-19 15:09:36 +02:00
Jana Cupova
f4bc5ef3a3 unify error messages for web
Fixes: https://pagure.io/koji/issue/2720
2021-04-07 10:49:03 +02:00
Jana Cupova
9dc0efd476 api getLastHostUpdate returns timestamp
fixes: https://pagure.io/koji/issue/2497
2021-03-29 11:23:06 +02:00
Tomas Kopecek
700a7bbdd4 web: optional KojiHubCA usage
Fixes: https://pagure.io/koji/issue/2742
2021-03-24 17:18:05 +01:00
Alex Iribarren
519d8c4fa6 Escape vcs and disturl 2021-03-10 16:29:21 +01:00
Tomas Kopecek
13f4023bf5 flake8 fixes 2021-02-16 14:43:49 +01:00
Tomas Kopecek
9fb1a537cb web: fix error for missing headers
Bug introduced in https://pagure.io/koji/pull-request/2683

Related: https://pagure.io/koji/issue/2541
2021-02-16 14:15:06 +01:00
Tomas Kopecek
8fb0a530a2 web: use correct srpm for getting headers
Related: https://pagure.io/koji/issue/2541
2021-02-16 14:10:57 +01:00
Tomas Kopecek
0b99fe14fb web: display VCS/DistURL rpm tags
Fixes: https://pagure.io/koji/issue/2541
2021-02-08 13:58:42 +01:00
Tomas Kopecek
684a3389c4 web: more accessible task colors/icons
Fixes: https://pagure.io/koji/issue/2583
2021-02-05 14:23:32 +01:00
Tomas Kopecek
96ae0ecef5 explicit encoding for text file operations
Fixes: https://pagure.io/koji/issue/2641
2021-01-26 13:36:25 +01:00
Ken Dreyer
5c3425b32b web: add comment explaining null start_time values
Explain why kojiweb falls back to creation_ts when start_ts is
unavailable. Thanks MikeM for the explanation.
2021-01-25 10:12:08 -07:00
Tomas Kopecek
87ff61574b web: return correct content-length
Fixes: https://pagure.io/koji/issue/2638
2021-01-25 14:40:45 +01:00
Tomas Kopecek
6d4831a6dc web: input validation
Fix for CVE-2020-15856

Fixes: https://pagure.io/koji/issue/2645
2021-01-18 11:06:35 +01:00
lrossett
1c787a323f flake8 fixes 2020-12-14 13:26:00 +01:00
lrossett
74061d5d71 set serverca opts 2020-12-14 13:26:00 +01:00