Skip to content

feat(crypt-gpg): add a parameter for GPG password max tries - #2402

Draft
ChristianAngel wants to merge 2 commits into
dracut-ng:mainfrom
ChristianAngel:gpg-max-tries
Draft

feat(crypt-gpg): add a parameter for GPG password max tries#2402
ChristianAngel wants to merge 2 commits into
dracut-ng:mainfrom
ChristianAngel:gpg-max-tries

Conversation

@ChristianAngel

Copy link
Copy Markdown

This adds the rd.luks.key.max-tries parameter that specifies the number of times that dracut will prompt for a GPG password before falling back to passphrase decryption. Previously, the number of tries was hardcoded to be 3, but this parameter lets the user customize it. In particular, if rd.luks.key.max-tries is set to 0, dracut will re-prompt for the GPG password forever and will not try to fall back to a passphrase. If rd.luks.key.max-tries is not specified, the default value is 3.

This adds the rd.luks.key.max-tries parameter that specifies the number of times that dracut will prompt for a GPG password before falling back to passphrase decryption. Previously, the number of tries was hardcoded to be 3, but this parameter lets the user customize it. In particular, if rd.luks.key.max-tries is set to 0, dracut will re-prompt for the GPG password forever and will not try to fall back to a passphrase. If rd.luks.key.max-tries is not specified, the default value is 3.
@ChristianAngel
ChristianAngel requested a review from a team as a code owner April 23, 2026 01:20
@github-actions github-actions Bot added modules Issue tracker for all modules crypt-gpg Issues related to the crypt-gpg module crypt-lib labels Apr 23, 2026
@Conan-Kudo

Copy link
Copy Markdown
Collaborator

Please squash your style change into your feature change. The style change is a modification of your feature change commit anyway, and so the separation is irrelevant.

@bdrung

bdrung commented Jul 21, 2026

Copy link
Copy Markdown
Member

And the new rd.luks.key.max-tries should be documented in the man page.

@devkontrol devkontrol added the stale communication is stuck label Aug 10, 2026
@devkontrol
devkontrol marked this pull request as draft August 10, 2026 13:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

crypt-gpg Issues related to the crypt-gpg module crypt-lib modules Issue tracker for all modules stale communication is stuck

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants