Commit graph

198 commits

Author SHA1 Message Date
Peter Oliver
feff4cf268 fkinit: Request ticket with 28 hour lifetime
This is the maximum lifetime currently allowed by the Fedora KDC.

Having a ticket with a lifetime longer than 24 hours makes the ticket easier to renew if one logs into ones computer at around the same time every day.
2026-06-19 12:55:47 +01:00
Fedora Release Engineering
a8b86fd628 Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild 2026-01-16 11:13:04 +00:00
Cristian Le
c6eed73137 Move fkinit user default check
Otherwise the check for .fedora.upn does not apply
2025-12-08 22:05:46 +00:00
Jens Petersen
f16a03c604 fkinit: disable the timeouts for systemd-ask-password 2025-10-11 14:32:23 +08:00
Alexander Bokovoy
6cccdb3807 krb5 configurations: add auto_fast_armor = true
MIT Kerberos build gained capability to obtain Anonymous PKINIT ticket
automatically and use it to build a FAST channel armor during initial
ticket acquisition. This allows automatic enablement of passwordless
pre-authentication methods provided by FreeIPA.

The option is ignored by the Kerberos builds which do not have such
support. Once Kerberos packages upgraded, users will be able to see
requests for their OTP tokens in bare kinit command:

  $ kinit user
  Enter OTP token value:

  instead of using

  $ kinit -c fast.ccache -n @FEDORAPROJECT.ORG
  $ kinit -T fast.ccache user
  Enter OTP token value:

Signed-off-by: Alexander Bokovoy <abokovoy@redhat.com>
2025-09-22 11:19:05 +03:00
Fedora Release Engineering
8221f339a6 Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild 2025-07-23 20:26:34 +00:00
Kevin Fenzi
73574f51d5 Drop old s390 koji config and add a wrapper for riscv
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2025-07-06 15:44:20 -07:00
Jens Petersen
6ee74af2e4 fixup riscv.conf to live in config dir not bindir 2025-06-27 15:21:27 +08:00
45ef3873ef fkinit: Add support for ~/.fedora.upn
This is the known file for setting the FAS user for Fedora infrastructure
client tools to use when the local Unix user does not match the FAS user.

Adding support for this with fkinit makes it easier to use in containerized
environments.
2025-06-10 06:33:59 -04:00
Kashyap Chamarthy
0485438d22 Add a RISC-V Koji config file
I named it "riscv" (instead of "risc-v", or "riscv64") because the Koji
URLs begins with it: https://riscv-koji.fedoraproject.org/koji.

Signed-off-by: Kashyap Chamarthy <kchamart@redhat.com>
2025-03-27 12:37:11 +01:00
Stephen Gallagher
5f0ded9848 Fix version matching for krb5
The pre-1.0 version of fedora-packager lacked the dependency on
fedora-packager-kerberos, so if we were updating from that version (such
as on Fedora 40), fedora-packager-kerberos would attempt to upgrade
while the fedora-packager package remained at the older version and they
would encounter a file conflict.

This patch adds the reverse dependency on fedora-packager-kerberos to
ensure that they are both upgraded together.

Signed-off-by: Stephen Gallagher <sgallagh@redhat.com>
2025-02-13 08:33:03 -05:00
Stephen Gallagher
2e3de6ead1 Update to version 1.1
Signed-off-by: Stephen Gallagher <sgallagh@redhat.com>
2025-02-06 14:39:44 -05:00
Stephen Gallagher
f818d36ccd Add help documentation about $FKINIT_OTP variable
Signed-off-by: Stephen Gallagher <sgallagh@redhat.com>
2025-02-06 14:39:00 -05:00
Miro Hrončok
56bb70b205 fkinit: Allow to pass the OTP token via $FKINIT_OTP
This allows me to run:

    $ FKINIT_OTP=$(ykman oath accounts code accounts.fedoraproject.org --single) fkinit

I can even alias this:

    $ alias fkinit='FKINIT_OTP=$(ykman oath accounts code accounts.fedoraproject.org --single) fkinit'

And the invocation then looks like this:

    $ fkinit
    Touch your YubiKey...
    🔐 FAS password: (press TAB for no echo)

Signed-off-by: Miro Hrončok <miro@hroncok.cz>
2025-02-06 14:39:00 -05:00
Stephen Gallagher
d68c55fa44 fkinit: Use herestring for pass/OTP
For added security, pass the password and OTP directly via a BASH
herestring instead of via `echo`. This will avoid putting the value into
the process table.

Signed-off-by: Stephen Gallagher <sgallagh@redhat.com>
2025-02-06 14:39:00 -05:00
Otto Liljalaakso
42690c1fe8 Recommend fedora-review
fedora-review is included in the packages to install in Installing
Packager Tools [1], the only other package being fedora-packager. Make
the setup a bit simpler by getting everything from fedora-packager.

(As a side note, nothing in Package Maintainer Docs actually mentions
*using* fedora review. So the other way to fix the issue would be to
not ask to install fedora-review in Installing Packager Tools. But
since it is a useful packager tool, it seems valid to included it in
fedora-packager.)

[1]: https://docs.fedoraproject.org/en-US/package-maintainers/Installing_Packager_Tools/
2025-01-18 19:44:59 +00:00
Fedora Release Engineering
e6509e5ab8 Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild 2025-01-16 18:06:24 +00:00
c9cefe0444 Merge #8 Recommend python3-koji-cli-plugins 2024-10-14 22:26:33 +00:00
6f051d6fe8 Downgrade kerberos dependency back to Recommends
... but keep conditional Requires to prevent file conflicts.
(rhbz#2315569)
2024-10-11 15:00:50 +02:00
319a562210 Recommend python3-koji-cli-plugins
This is needed for `koji edit-sidetag` e.g. for bootstrapping:

```
koji edit-sidetag --rpm-macro _with_bootstrap=1 <sidetag_name>
```

Signed-off-by: Michel Lind <salimma@fedoraproject.org>
2024-09-24 14:34:23 -05:00
6c43db0862 Recommend rpmdistro-repoquery 2024-08-17 13:39:08 +02:00
273bbdb0e8 Version 1.0 2024-08-17 10:16:32 +02:00
ec5a61722d Recommend fedora-repoquery
- See https://fedoraproject.org/wiki/Changes/fedora-repoquery_tool
2024-08-15 13:25:14 +02:00
3cd6e157cc Recommend fedrq 2024-08-15 13:23:36 +02:00
22336a84fc Capitalize sentences and names
[skip changelog]
2024-08-14 17:57:36 +02:00
66e2aa9188 Make kerberos subpackage required by the main package
This fixes the spec file syntax. I tried to use Coflicts in a way that
is not supported by rpm.

But also, I think we should use Requires here. The importance of
kerberos auth has only grown since this package was split out, and it
doesn't make sense to have a "fedora packager environment" without
kerberos.
2024-08-14 17:56:32 +02:00
e49a605843 Do not allow mismatched version installations
In CI tests, we get this:
Warning: skipped PGP checks for 1 package from repository: testing-farm-tag-repository
  - file /usr/share/licenses/fedora-packager/COPYING from install of fedora-packager-0.6.0.7-10.fc41.noarch conflicts with file from package fedora-packager-kerberos-0.6.0.7-16.fc41.noarch

We don't want to install mismatched versions of the main package and the
subpackage in any case. This could lead to confusion.
2024-08-10 10:18:28 -04:00
Stephen Gallagher
ec95d50e99 fkinit: prompt for password and OTP separately
Also runs 'klist' afterwards to confirm success.

This adds an explicit dependency on 'systemd' for the use of the
systemd-ask-password command. As that package was already an indirect
dependency, this doesn't increase the footprint.

Signed-off-by: Stephen Gallagher <sgallagh@redhat.com>

Originally submitted and reviewed in
https://pagure.io/fedora-packager/pull-request/179.
2024-08-09 11:33:56 -04:00
882f5fef53 Drop fedora-getsvn 2024-08-09 11:33:56 -04:00
fa47025bb1 Actually drop fedora-burn-yubikey
20d5b901e0 tried to drop fedora-burn-yubikey,
but because of confusion between /usr/bin and /usr/sbin, one copy
was left behind.
2024-08-09 11:27:16 -04:00
2bb511d3d9 Restore original GPLv2+ license text
The project was always licensed as GPLv2+, but the license file was
changed from GPLv2 to GPLv3 during a cleanup. (GPL was the file for
the project, and COPYING was a symlink to automake's COPYING file.)

commit 139f99fc38eca529cc74c2763d5dbe84465829bb
Author: Todd Zullinger <tmz@pobox.com>
Date:   Thu Jan 29 15:46:18 2009 -0600

    Remove generated files and other autotools cruft
    ---
     COPYING                       |    1 -
     GPL                           |  339 ----
    ...

commit e23766acb2e084fe845e23392192deb5b1aaec1e
Author: Todd Zullinger <tmz@pobox.com>
Date:   Thu Jan 29 15:46:18 2009 -0600

    Restore COPYING as a regular file
    ---
     COPYING |  674 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
     1 files changed, 674 insertions(+), 0 deletions(-)
     create mode 100644 COPYING

Restore the original GPLv2 text so that the declared license matches
the license text.
2024-08-09 11:25:44 -04:00
411d7a36b2 Merge separate "upstream" into this repository
There is no point in having a separate upstream, there are no other
users of that project except for Fedora. My moving the few files that
we need here, we can simplify the workflow quite a bit.

Difference in build outputs:
$ rpmdiff -iT noarch/fedora-packager-0.6.0.7-{11,12}.fc41.noarch.rpm
removed     REQUIRES config(fedora-packager) = 0.6.0.7-11.fc41
added       REQUIRES config(fedora-packager) = 0.6.0.7-12.fc41
removed     PROVIDES config(fedora-packager) = 0.6.0.7-11.fc41
added       PROVIDES config(fedora-packager) = 0.6.0.7-12.fc41
removed     PROVIDES fedora-packager = 0.6.0.7-11.fc41
added       PROVIDES fedora-packager = 0.6.0.7-12.fc41
removed     REQUIRES rpmlib(PartialHardlinkSets) <= 4.0.4-1
removed     /usr/share/doc/fedora-packager
removed     /usr/share/doc/fedora-packager/AUTHORS
removed     /usr/share/doc/fedora-packager/ChangeLog
removed     /usr/share/doc/fedora-packager/TODO

$ rpmdiff -iT noarch/fedora-packager-kerberos-0.6.0.7-{11,12}.fc41.noarch.rpm
removed     REQUIRES config(fedora-packager-kerberos) = 0.6.0.7-11.fc41
added       REQUIRES config(fedora-packager-kerberos) = 0.6.0.7-12.fc41
removed     PROVIDES config(fedora-packager-kerberos) = 0.6.0.7-11.fc41
added       PROVIDES config(fedora-packager-kerberos) = 0.6.0.7-12.fc41
removed     PROVIDES fedora-packager-kerberos = 0.6.0.7-11.fc41
added       PROVIDES fedora-packager-kerberos = 0.6.0.7-12.fc41
removed     /usr/share/licenses/fedora-packager-kerberos
removed     /usr/share/licenses/fedora-packager-kerberos/COPYING
added       /usr/share/licenses/fedora-packager
added       /usr/share/licenses/fedora-packager/COPYING

The three doc files are dropped because they are completely outdated
and incomplete and it doesn't make sense to install them.
The COPYING files is shared because that's simpler.
2024-08-09 11:25:44 -04:00
Miroslav Suchý
85ac56327b convert GPLv2+ license to SPDX
This is part of https://fedoraproject.org/wiki/Changes/SPDX_Licenses_Phase_4
2024-07-25 23:49:12 +02:00
Fedora Release Engineering
5fec13811d Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild 2024-07-17 22:59:14 +00:00
Fedora Release Engineering
801fcf4664 Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild 2024-01-24 11:25:55 +00:00
Fedora Release Engineering
55b98094c9 Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild 2024-01-19 19:07:44 +00:00
e3a7199c28 Pull in rpmautospec
It is the default mechanism, so fedora-packager should ensure it is
installed.
2023-11-23 10:08:50 +01:00
1df1a22674 Convert to %autorelease and %autochangelog
[skip changelog]
2023-11-23 10:08:23 +01:00
Fedora Release Engineering
e2d9878cc3 Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2023-07-19 19:32:39 +00:00
Kevin Fenzi
20d5b901e0 Drop the fedora-packager-yubikey subpackage as fas2 is retired. Fixes rhbz#2165100 2023-04-29 12:35:46 -07:00
Fedora Release Engineering
91adab39a6 Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2023-01-19 03:18:18 +00:00
Fedora Release Engineering
ee09fb2304 Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2022-07-21 03:02:16 +00:00
Mohan Boddu
1533c9d7e5 Add a switch to fkinit for the staging infra (abompard)
Signed-off-by: Mohan Boddu <mboddu@bhujji.com>
2022-05-12 16:11:24 -04:00
Fedora Release Engineering
e13e65eb6c - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2022-01-20 02:52:58 +00:00
Fedora Release Engineering
114c2f53f8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2021-07-21 22:50:11 +00:00
Dusty Mabe
a7fde86069 Make fedora-packager-kerberos subpackage
Breaks out the kerberos configs into own subpackage so that users
who want to connect to kerberos but not install all the depenencies
of `fedora-packager` can do that.

Fixes https://pagure.io/fedora-packager/issue/152

Signed-off-by: Dusty Mabe <dusty@dustymabe.com>
2021-06-09 15:55:11 +02:00
Tomas Hrcka
83022e7554 Add automeka builddep
Signed-off-by: Tomas Hrcka <thrcka@redhat.com>
2021-05-11 11:27:26 +02:00
Tomas Hrcka
6b9a905088 Bump release 0.6.0.6
Signed-off-by: Tomas Hrcka <thrcka@redhat.com>
2021-05-11 10:33:26 +02:00
Nils Philippsen
28e488ec0c Merge branch 'epel8' into rawhide 2021-04-19 15:43:49 +02:00
Nils Philippsen
9c1a5587f2 Merge branch 'f32' into rawhide 2021-03-23 11:42:42 +01:00