Skip to content

Explicit key size to silence cryptsetup warning#848

Open
ben-grande wants to merge 1 commit into
QubesOS:mainfrom
ben-grande:cryptsetup-warn-plain
Open

Explicit key size to silence cryptsetup warning#848
ben-grande wants to merge 1 commit into
QubesOS:mainfrom
ben-grande:cryptsetup-warn-plain

Conversation

@ben-grande

Copy link
Copy Markdown
Contributor

We trust cryptsetup to provide sane defaults, but being implicit logs the following warning for every ephemeral volume on qube startup:

    WARNING: Using default options for cipher (aes-xts-plain64, key
    size 256 bits) that could be incompatible with older versions.
    For plain mode, always use options --cipher, --key-size and if
    no keyfile or keyring is used, then also --hash.

This is the reason why "--cipher" and "--key-size" are specified. A better solution would be to silence the warning and be implicit, as we don't care about the key for this volume, we'd always get the new cryptsetup default, but I didn't find a way to silence this warning.

Fixes: QubesOS/qubes-issues#10989

We trust cryptsetup to provide sane defaults, but being implicit logs
the following warning for every ephemeral volume on qube startup:

        WARNING: Using default options for cipher (aes-xts-plain64, key
        size 256 bits) that could be incompatible with older versions.
        For plain mode, always use options --cipher, --key-size and if
        no keyfile or keyring is used, then also --hash.

This is the reason why "--cipher" and "--key-size" are specified. A
better solution would be to silence the warning and be implicit, as we
don't care about the key for this volume, we'd always get the new
cryptsetup default, but I didn't find a way to silence this warning.

Fixes: QubesOS/qubes-issues#10989
@codecov

codecov Bot commented Jul 21, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 70.36%. Comparing base (9fa3b63) to head (f7d9ad0).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #848      +/-   ##
==========================================
- Coverage   70.37%   70.36%   -0.02%     
==========================================
  Files          61       61              
  Lines       14179    14212      +33     
==========================================
+ Hits         9979    10000      +21     
- Misses       4200     4212      +12     
Flag Coverage Δ
unittests 70.36% <ø> (-0.02%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

qubesd emits cryptsetup warning about using default cipher option that is possibly backwards incompatible

1 participant