On Thu, 11 Jun 2026 at 17:34, Adam Williamson
<[email protected]> wrote:
>
> I've had 2FA turned on on my account for years, and I deal with it.
> Would it be nice if g-o-a handled ticket renewal? Sure. Is it a
> dealbreaker? No. I have `kinit -R [email protected]` in my
> shell history. I run it once a day. It's fine.

I have this automated using systemd user units. It's really dead
simple (and could even be packaged as an RPM after some basic
configurability is added). This is a slightly simplified (and
untested) version of what I have in my home dir:

$ cat "$HOME/.config/systemd/user/krenew.timer"
[Unit]
Description=Run krenew every 30m

[Timer]
OnCalendar=*:00/30:00
OnStartupSec=10m

[Install]
WantedBy=timers.target
$ cat "$HOME/.config/systemd/user/krenew.service"
[Unit]
Description=Run krenew

[Service]
Type=oneshot
ExecStart=kinit -R <principal>@FEDORAPROJECT.ORG
$

You just need to add those two files into your home dir (or globally
into /usr/lib/systemd/user/), and then run once:
$ systemctl --user enable krenew.timer && systemctl --user start krenew.timer

(My setup is a bit more complicated - there is a script instead of the
plain kinit -R ... that handles multiple principals and caches, but
this simple version should work for most after possibly some minor
tweaks.)
-- 
_______________________________________________
devel mailing list -- [email protected]
To unsubscribe send an email to [email protected]
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/[email protected]
Do not reply to spam, report it: 
https://forge.fedoraproject.org/infra/tickets/issues/new

Reply via email to