Complete FIDO2 Integration with Fedora Luks2, Unlock, GUI Login, and Sudo Auth (Revised for Fedora Linux 44)

Hi @rlengland,

I’m circling back with an update on this project. The original Fedora 42 setup worked as described in the published article. After the machine had been sitting in the closet for about a year, I brought it back out and encountered issues getting the uTrust key working reliably again.

I’ve since upgraded the same Dell E6430 to Fedora 44 and transitioned to a YubiKey. That has been very reliable in my testing, including repeated authentication attempts, different USB ports, and reboots.

On Fedora 44, I successfully tested PIN and touch authentication for LUKS2 full disk unlock, LightDM desktop login, Cinnamon screen unlock, sudo, and graphical privilege escalation through Polkit. I also verified password fallback for these paths.

Would you and the other editors be interested in a new article or a follow up to the original?

I could cover the Fedora 44 configuration, the transition to the YubiKey, and the testing and recovery steps. The goal is a nearly passwordless daily workflow, with strong, unique passwords retained for emergency recovery. This testing was performed on Fedora 44; I haven’t validated the configuration on Fedora 45.

Thanks again for helping get the original article published!

Joe Murphy

+1 from me. Thanks!

Yes. +1
That sounds good and drop a reference to the previous article indicating this is an update.

Looking forward to it.

I suspect what Richard meant was more along the lines of:

… and [I will] drop a reference [in] to the previous article indicating this [new article] is an update [available].

But I could be wrong. :slightly_smiling_face:

Thanks, Gregory! I defer to however you guys want it done. It was a full, fun day working on this project. I have 82 photos if anybody wants to see each step, from installation to full implementation. :rofl: I’m hoping to show the build to some WA CIRT folks this week at SecureWorld in Bellevue.

Joe M

@ihs-2025 We really need the articles to be in the Fedora Magazine WordPress instance. That is what we use to publish the Fedora Magazine articles.

This site might contain some items of interest

This link will take your to the WordPress Engine instance for the Fedora Magazine

From the menu in the left column of that page, select
*Posts>Add Post
to open the new article to edit and started writing.

When you have your article ready to review in the Fedora Magazine WordPress site, please leave a comment in this topic, with a preview link, and we will start the review process.

The overall Magazine work flow is described at this link as well as other helpful information.

This site might contain some items of interest

If you run into ANY questions or issues with WordPress or the process for creating/publishing, contact us and we can help sort things out.

Thank you,

I’ll get that done.

Joe

Hey everyone,

Two links for review 1. Two FIDO2 security keys on Fedora 45 - Fedora Magazine & 2. Fedora 45 FIDO2 lab guide - Fedora Magazine

Following up on my earlier: I’ve now submitted “Two FIDO2 security keys on Fedora 45” for review in WordPress. Apologies for the delay while I finished fall quarter coursework.

side note: I have a separate illustrated lab guide with the commands, verification steps, and troubleshooting observations. Does anyone think it should be added to this article, posted separately, or held for another purpose or a later date? I have photographs covering much of the process, from the installation through operation and testing, and would provide relevant examples.

One point I hope comes through clearly is the intended everyday workflow: start with a clean installation, retain strong, unique, high-entropy disk and account recovery passwords, and use two enrolled FIDO2 keys with PIN and touch for normal authentication. The passwords remain available for emergency recovery. The goal is to reduce routine exposure of reusable passwords as one part of defense in depth. I welcome suggestions for explaining those benefits and limitations more clearly without overstating what this lab demonstrated.

Separately, I demonstrated the workstation to members of Washington’s volunteer Cyber Incident Response Team and other attendees at SecureWorld in Bellevue, where it attracted considerable interest. I am part of preliminary discussions about Fedora as a possible foundation for incident response workstations. Its early and still exploratory, but they highlight potential practical applications beyond this home use.

Thank you for your time, side note: I noticed some issues trying to render commands in word press without scrolling.
R,

Joe Murphy

https://fedoramagazine.org/?p=44843&preview=true & Guide Draft link: Fedora 45 FIDO2 lab guide - Fedora Magazine

Hi Joe. I haven’t attempted to follow your guide yet, but at a glance, it looks like you did a lot of great research!

A picture is worth a thousand words. Go ahead and include them.

By the way, I noticed that WordPress corrupted some of your commands (e.g. &lt; instead of <). :confused: Hopefully we can fix those. If it helps, there is a tip in the documentation about pasting code into WordPress.

WP Engine Tip #4:

Use the Edit as HTML option when pasting into preformatted blocks. Current versions of WP Engine are known to strip leading hash marks (#) and leading whitespace when content is pasted into preformatted blocks. Some non-alphanumeric characters may also get garbled (&, <, >, etc.). Using the Edit as HTML option (listed under the vertical ellipsis) prior to pasting content into the block seems to workaround this problem. Be sure to paste your content between the <pre> tags and do not overwrite them. After pasting your content, switch back to visual mode by using the Edit visually option to see a better representation of what the final result will look like to the reader.

Hi Gregory,

Thank you for taking the time to look everything over and for the helpful feedback!

I’ve submitted the more detailed lab guide as a separate proposed post. I actually have around 83 photographs documenting the process from the initial Fedora installation through configuration, troubleshooting, and successful operation. I certainly don’t want to overwhelm readers with too many images.

Would you recommend including a selection of the most relevant photographs in the guide, or is there another approach you think would work better? I’d appreciate your guidance.

I’ve also been working through the WordPress code formatting issues you mentioned. Changing the command sections to the Code format has helped, although I’ve noticed some longer commands now require horizontal scrolling to read everything. I’m still working on getting the formatting right and making sure the commands display correctly.

Thanks again for your time and encouragement. I really appreciate the help!

Photos we can use: FEDORA 45 LAB PHOTOS - pCloud

Photos folder for this lab you can view online easy: FEDORA 45 LAB PHOTOS - pCloud

Thanks Joe. What I’d like to do with those images would be to go through them with GIMP and use its crop and perspective tools to reduce them to just the screen image. For example, your first image would become:

But that would be quite a bit of work.

Also, since there are so many images, I wonder if you could create a gallery on fedorapeople.org (e.g. fedorapeople.org – jsimon’s event gallery 2016) and link to that from your Fedora Magazine article as supplemental materials? I have no idea how difficult setting up such an image gallery on fedorapeople.org would be. I think you have to be in at lease one Fedora Project group to get access to fedorapeople.org, so that may not work.

Thanks Gregory.

I’ve asked one of my AI assistants to go through the images, crop them down to just the screen content, and handle the perspective correction where needed—basically the work we were talking about. We’ll see how that turns out.

My plan is to upload the processed/cropped versions to pCloud in a separate folder so you can look through them and let me know which ones you’d like to use.

Alternatively, I could upload all the cropped photos as Figure 1, Figure 2, Figure 3, etc., and simply reference them in the article (e.g., “see Figure 3”). Totally up to you—whatever is easiest on your end.

Let me know which approach you prefer and I’ll get the images ready.

New pCloud folder link (cropped images for your review):

Thanks Joe. I’m glad you found an easy way to crop down all those images. I guess I should have stated which ones I thought were most import first.

I think the screenshots that show your partitioning configuration, the dracut commands, the authselect commands, and the systemd-cryptenroll commands appear to be the “richer” images in terms of what they reveal about your set up process.

I would omit the standard loading screens and the dnf output.

The more important ones are the ones that demonstrate you entering command parameters and that show what the response(s) from the command should look like.

As long as the images are not required in order for someone to be able to complete the task, it is OK if they are hosted on a third-party site. My main concern with the images being stored outside of Fedora Magazine is that Fedora Magazine might outlive the external service provider.

Thanks.

Thanks, Gregory. I appreciate the clarification about which screenshots are most useful. I’ve been focusing on the partition configuration, Dracut, authselect, and systemd-cryptenroll commands, particularly the screenshots that demonstrate the actual command parameters and resulting output. I have substantially reduced and reorganized the images in the companion lab guide.

I’ve also completed another technical and editorial review of the guide, but I’ve encountered a persistent WordPress formatting issue that I could use some help resolving before final submission.

The problem involves special characters in the command blocks:

  • Step 6: The > redirection operator in the pamu2fcfg command appears as &gt;.

  • Step 8: The same issue occurs with the second-key registration command.

  • Step 8: The Python merge script displays characters such as &lt;&lt; and &#091; instead of the correct operators and brackets.

I’ve tried Code and Preformatted blocks, including Fedora’s recommended Edit as HTML workaround. I’ve also tried Paragraph blocks, but those can introduce other problems, such as converting double hyphens into typographic dashes. Unfortunately, the character-encoding problem persists even in the article preview.

The readers copying these commands could encounter errors, which is the last thing I want in a technical guide.

Would you or Mr. England be able to suggest a reliable solution or help me correct these blocks? I have an updated PDF and screenshots showing the problem if those would be useful.

Other than these formatting issues and any changes you recommend, I believe the guide is ready for editorial review. I would certainly welcome any further feedback.

Thanks again for your time and guidance!

Joe Murphy

Guide temp link: Fedora 45 FIDO2 lab guide - Fedora Magazine

Hello Gregory and Richard,

I’ve completed as much of the editing, formatting, and technical review as I know how to do on both of The Fedora 45 FIDO2 articles. I’ve incorporated Gregory’s recommendations regarding the screenshots and reviewed the Fedora Magazine contributor guidelines.

Both articles are now marked Pending Review in WordPress.

Main article — Two FIDO2 security keys on Fedora 45:

https://fedoramagazine.org/?p=44843&preview=true&preview_id=44843

Companion article — Fedora 45 FIDO2 lab guide:

https://fedoramagazine.org/?p=44877&preview=true&preview_id=44877

The main article discusses the experiment, its purpose, findings, and limitations. The companion guide contains the complete step-by-step procedure, commands, screenshots, and observed results from my November 3 testing.

I’ve also added and organized numerous screenshots throughout the full lab guide for your review, following Gregory’s recommendations. I focused primarily on images demonstrating actual configuration commands, parameters, and resulting outputs, particularly for partitioning, Dracut, authselect, and systemd-cryptenroll. I tried to select the most useful images without overwhelming readers. Please feel free to recommend removing, replacing, cropping, or adjusting any images you believe would improve the guide. I still have the original lab photographs available if needed.

One remaining technical formatting issue: WordPress continues to display certain special characters incorrectly in the lab guide’s command blocks, particularly in Steps 6 and 8. I’ve tried Code and Preformatted blocks, along with the recommended Edit as HTML workaround, but the issue persists in the article preview. I’d appreciate any assistance resolving this so readers can reliably copy and execute the commands.

I’ve also included an editorial note requesting that The original 2025 Fedora 42 article link forward to this new Fedora 45 follow-up and that the new article link to the companion lab guide once published. My hope is that readers can easily follow the progression between all three publications.

At this point, I believe I’ve done everything I can to prepare both articles for your review. Please let me know if there is anything else I can do, correct, or provide to make your work easier. I’m certainly open to any additional edits or recommendations you may have.

Thank you for your time, patience, and assistance. I appreciate the opportunity to contribute.

V/r
Joe M.

Thanks Joe! We can take it from here. I’ll see what I can do with that formatting problem and, if I have any questions, I’ll ask here.

Thanks much :folded_hands:

Hi Joe. I’ve just begun a run-through of your lab and I’ve notice one very small oddity. One of your screenshots shows a typo. I attempted to enter what was shown in the screenshot and I was confused that I was not getting the same results.

My attempt at entering the command:

root@fedora:~# systemd-cryptenroll --fido2-device-list
systemd-cryptenroll: unrecognized option '--fido2-device-list'

I’ll replace the image with a corrected version.

Hi Gregory,

Thanks for catching that! I used AI to crop the image (as noted at the bottom of the report) to remove the salt and digest information above the command, and it appears to have altered the command text during that process.

Here is the original photograph, IMG_7736.HEIC. You can see it shows the correct command, sudo systemd-cryptenroll --fido2-device=list, followed by the successful device listing.

I should have caught the change when reviewing the cropped version. Thank you for replacing it and for your careful review!

I was also considering trimming some wording left from the AI-assisted drafting, such as the reminder about not publishing certain header information. I’ll leave that to your judgment. I haven’t made further changes because I didn’t want to interfere while you’re reviewing everything.

Thanks again!

Joe