Cryptsetup development
 help / color / mirror / Atom feed
From: Ondrej Kozina <okozina@redhat.com>
To: cryptsetup@lists.linux.dev
Cc: xeyrion@gmail.com
Subject: Re: Rotating OPAL range key
Date: Thu, 12 Nov 2026 18:22:52 +0100	[thread overview]
Message-ID: <e9143d96-db6f-46dd-8804-10254d859864@redhat.com> (raw)
In-Reply-To: <CAB9Cg3=1UKw0KHYDh42P69wPDm1DABfLNDsftjdTJp6s6YvE2A@mail.gmail.com>

On 11/11/26 18:02, xeyrion@gmail.com wrote:
> Hello,
> 
> If my LUKS key gets compromised and I am using '--hw-opal-only', what
> is the procedure to do proper key rotation?

> 
> I can rotate LUKS key using 'luksChangeKey', but as far as I can tell,
> that will keep the OPAL range key unchanged. And since nothing is ever
> reliably deleted on flash drives, OPAL key is still available with the
> compromised LUKS key, making the rotation moot.
> 
> Since OPAL range key can be trivially rotated using eg sed-util, is
> this just a missing feature in cryptsetup, or is there any technical
> reason why this cannot/should not be done? If it's a missing feature,
> are there any manual workarounds possible? Can a new OPAL key somehow
> be "injected" into LUKS key slot?
> 
> Thanks in advance.

There is planned support for User authority PIN rotation, via 
https://gitlab.com/cryptsetup/cryptsetup/-/merge_requests/976

It will be mostly beneficial for OPAL2 devices with SUM support, but it 
can be used also with regular OPAL2 devices.

What sed-util command did you mean exactly?

With regards
O.


  reply	other threads:[~2026-11-12 17:23 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-11 17:02 Rotating OPAL range key xeyrion
2026-11-12 17:22 ` Ondrej Kozina [this message]
2026-11-15  3:36   ` xeyrion
2026-11-30  9:57     ` Ondrej Kozina

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=e9143d96-db6f-46dd-8804-10254d859864@redhat.com \
    --to=okozina@redhat.com \
    --cc=cryptsetup@lists.linux.dev \
    --cc=xeyrion@gmail.com \
    /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