public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
To: git-commits@fedoraproject.org
Subject: [rpms/fedora-packager] epel10.2: fkinit: Allow to pass the OTP token via $FKINIT_OTP
Date: Thu, 25 Jun 2026 13:20:51 GMT [thread overview]
Message-ID: <178239365162.1.3620669398033379910.rpms-fedora-packager-56bb70b205af@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/fedora-packager
Branch : epel10.2
Commit : 56bb70b205af4a5b7158e907b2499f1954d78db5
Author : Miro Hrončok <miro@hroncok.cz>
Date : 2025-02-06T14:39:00-05:00
Stats : +1/-1 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/fedora-packager/c/56bb70b205af4a5b7158e907b2499f1954d78db5?branch=epel10.2
Log:
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>
---
diff --git a/fkinit b/fkinit
index 1d53287..077678d 100755
--- a/fkinit
+++ b/fkinit
@@ -104,7 +104,7 @@ fi
kinit -n @$domain -c FILE:$armorcache
F_PASSWORD=$(systemd-ask-password "FAS password:")
-F_OTP=$(systemd-ask-password "FAS OTP (leave blank if not configured):")
+F_OTP=${FKINIT_OTP:-$(systemd-ask-password "FAS OTP (leave blank if not configured):")}
kinit -T FILE:$armorcache $_arg_user@$domain <<< "${F_PASSWORD}${F_OTP}" >/dev/null
unset F_PASSWORD
reply other threads:[~2026-06-25 13:20 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=178239365162.1.3620669398033379910.rpms-fedora-packager-56bb70b205af@fedoraproject.org \
--to=git-commits@fedoraproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox