Commit graph

4486 commits

Author SHA1 Message Date
Yuming Zhu
2408e86ff6 in proxyuser case, do use username rather than principal 2019-10-10 13:02:55 +00:00
Yuming Zhu
d662fb837d keep on using REMOTE_USER
and handover realm translation to auth_to_local rules in /etc/krb5.conf
2019-10-10 13:02:55 +00:00
Yu Ming Zhu
4a3dc40147 use GSS_NAME instead of REMOTE_USER for GSSAPI auth
jira: https://projects.engineering.redhat.com/browse/BST-475
2019-10-10 13:01:24 +00:00
Tomas Kopecek
0fa9eb08d6 PR#1648: support multiple realms by kerberos auth
Merges #1648
https://pagure.io/koji/pull-request/1648

Fixes: #1629
https://pagure.io/koji/issue/1629
support multiple realms by kerberos auth(both krbV and GSSAPI)

Related: #1419
https://pagure.io/koji/issue/1419
checking kerberos prinicipal instead of username in GSSAPI authentication
2019-10-10 16:38:00 +02:00
Yu Ming Zhu
cace979532 fix unittests 2019-10-10 16:37:57 +02:00
Yu Ming Zhu
30ff46f1b0 fix error msg and regex sytax 2019-10-10 16:37:57 +02:00
Yu Ming Zhu
855ffa6b5c hub: fix condition mistake in get_user 2019-10-10 16:37:57 +02:00
Yu Ming Zhu
2034695e88 add an option to set server realm for all clients 2019-10-10 16:37:56 +02:00
Yu Ming Zhu
6179d8f9d8 hub: remove asList in queryOpts of list_user_krb_principals 2019-10-10 16:37:56 +02:00
Yu Ming Zhu
0e411f215b hub: backward compatible for cli moshimoshi command 2019-10-10 16:37:56 +02:00
Yu Ming Zhu
831f0dfdaf cli: fix moshimoshi for krbLogin 2019-10-10 16:37:56 +02:00
Yu Ming Zhu
ce8ff9068c fix table name typo 2019-10-10 16:37:56 +02:00
Yu Ming Zhu
ab37e28d4d hub: add AllowedKrbRealms option and (add|remove)UserKrbPrincipal API 2019-10-10 16:37:56 +02:00
Yu Ming Zhu
aaeb41e57b change users and krb_principal operations 2019-10-10 16:37:56 +02:00
Yuming Zhu
f47d630acd update schema with new table - user_krb_principals 2019-10-10 16:37:56 +02:00
Tomas Kopecek
e54f9fdd23 PR#1657: Use bytes for debug string
Merges #1657
https://pagure.io/koji/pull-request/1657

Fixes: #1656
https://pagure.io/koji/issue/1656
TypeError: can't concat str to bytes with --debug-xmlrpc enabled
2019-10-10 12:39:24 +02:00
Tomas Kopecek
327c23d072 Use bytes for debug string
Fixes: https://pagure.io/koji/issue/1656
2019-10-10 12:39:17 +02:00
Tomas Kopecek
51a6832093 PR#1068: hub: [getRPMFile] add strict behavior
Merges #1068
https://pagure.io/koji/pull-request/1068

Fixes: #1053
https://pagure.io/koji/issue/1053
API call getRPMFile with non existing rpm should return error

Fixes: #1054
https://pagure.io/koji/issue/1054
API call getRPMFile with non existing filename should return error
2019-10-10 12:36:31 +02:00
Yuming Zhu
473bc1460b hub: [getRPMFile] add strict behavior 2019-10-10 18:18:32 +08:00
Tomas Kopecek
d3ef006842 PR#1631: check options for list-signed
Merges #1631
https://pagure.io/koji/pull-request/1631

Fixes: #1552
https://pagure.io/koji/issue/1552
CLI command koji list-signed  returns none
2019-10-10 11:45:30 +02:00
Tomas Kopecek
b1db812e47 check options for list-signed
Fixes: https://pagure.io/koji/issue/1552
2019-10-10 11:45:24 +02:00
Mike McLean
79921c8922 PR#1688: clarify fixed/affected versions in cve announcement
Merges #1688
https://pagure.io/koji/pull-request/1688
2019-10-09 10:59:01 -04:00
Mike McLean
db75522ec7 clarify fixed/affected versions 2019-10-09 10:54:57 -04:00
Mike McLean
cdd3483b80 PR#1687: Docs updates for CVE-2019-17109
Merges #1687
https://pagure.io/koji/pull-request/1687
2019-10-09 10:45:31 -04:00
Mike McLean
af66445883 bump version to match most recent release 2019-10-09 10:42:17 -04:00
Mike McLean
dd09e81411 bump docs version 2019-10-09 10:39:57 -04:00
Mike McLean
e76aa3d1d2 release notes for 1.18.1 2019-10-09 10:39:57 -04:00
Mike McLean
f2f3d19998 CVE-2019-17109 announcement text 2019-10-09 10:39:57 -04:00
Mike McLean
91d6f0b607 PR#1686: Fix for CVE-2019-17109
Merges #1686
https://pagure.io/koji/pull-request/1686
2019-10-09 10:23:15 -04:00
Mike McLean
a9f3afdef7 whitespace: adjust indentations 2019-10-09 08:41:15 -04:00
Mike McLean
e5b36d8f21 hub plugins: use joinpath instead of os.path.join 2019-10-09 08:41:15 -04:00
Mike McLean
c49660be33 hub: use joinpath instead of os.path.join 2019-10-09 08:41:15 -04:00
Mike McLean
f0cdeaab07 tests for joinpath 2019-10-09 08:41:15 -04:00
Mike McLean
3354da7024 joinpath function 2019-10-09 08:41:15 -04:00
Tomas Kopecek
3a4a30034e PR#1680: drop unused host.repoAddRPM call
Merges #1680
https://pagure.io/koji/pull-request/1680

Fixes: #1655
https://pagure.io/koji/issue/1655
Drop host.repoAddRPM call
2019-10-09 09:17:24 +02:00
Tomas Kopecek
873a159e08 drop unused host.repoAddRPM call
Fixes: https://pagure.io/koji/issue/1655
2019-10-09 09:17:20 +02:00
Tomas Kopecek
93b3deda85 PR#1666: Fix typo preventing vm builds
Merges #1666
https://pagure.io/koji/pull-request/1666

Fixes: #1665
https://pagure.io/koji/issue/1665
Typo prevents vm builds
2019-10-09 09:15:18 +02:00
Tomas Kopecek
63648170df Fix typo preventing vm builds
Bug introduced in PR #967 prevents vm builds to work. There is an
additional option to method verifyChecksum.

Fixes: https://pagure.io/koji/issue/1665
2019-10-09 09:15:14 +02:00
Tomas Kopecek
60f2b4f7d4 PR#1677: docs for build.extra.source
Merges #1677
https://pagure.io/koji/pull-request/1677

Fixes: #1673
https://pagure.io/koji/issue/1673
Document extra.source.original_url
2019-10-09 09:14:08 +02:00
Tomas Kopecek
b8017bfff5 docs for build.extra.source
Fixes: https://pagure.io/koji/issue/1673
2019-10-09 09:14:04 +02:00
Tomas Kopecek
c4a6f7daa1 PR#1675: Subselect gives better performance
Merges #1675
https://pagure.io/koji/pull-request/1675

Fixes: #1671
https://pagure.io/koji/issue/1671
koji-gc: handle_trash takes years
2019-10-09 09:12:50 +02:00
Tomas Kopecek
ff57615460 Subselect gives better performance
Original query based on JOINs is 1000x slower in better cases. Sub-query
helps a lot here.

Fixes: https://pagure.io/koji/issue/1674
2019-10-09 09:12:47 +02:00
Tomas Kopecek
9d2faca407 PR#1642: Handle sys.exc_clear in Python 3
Merges #1642
https://pagure.io/koji/pull-request/1642

Fixes: https://pagure.io/koji/issue/1641
2019-10-08 14:38:12 +02:00
Brendan Reilly
8eea824490 Handle sys.exc_clear in Python 3
Fixes: #1641
2019-10-08 14:38:09 +02:00
Tomas Kopecek
acd51ea2bc PR#1157: cli: [make-task] raise readable error when no args
Merges #1157
https://pagure.io/koji/pull-request/1157
2019-10-08 10:40:07 +02:00
Yuming Zhu
90d3447e44 cli: [make-task] raise readable error when no args 2019-10-08 10:40:03 +02:00
Tomas Kopecek
f7fda34982 PR#1678: swapped values in message
Merges #1678
https://pagure.io/koji/pull-request/1678

Fixes: #1090
https://pagure.io/koji/issue/1090
groupListRemove API should return GenericError for remove group which not has specific tag name
2019-10-08 10:36:59 +02:00
Tomas Kopecek
bf0f66b0f9 PR#1676: Made difference between Builds and Tags sections more clear
Merges #1676
https://pagure.io/koji/pull-request/1676
2019-10-08 09:45:51 +02:00
Brendan Reilly
63ffb48f9c Made difference between Builds and Tags sections more clear 2019-10-08 09:45:48 +02:00
Tomas Kopecek
0d6d9a51a6 swapped values in message
Related: https://pagure.io/koji/issue/1090
2019-10-03 16:03:03 +02:00