* Rotating OPAL range key
@ 2026-11-11 17:02 xeyrion
2026-11-12 17:22 ` Ondrej Kozina
0 siblings, 1 reply; 4+ messages in thread
From: xeyrion @ 2026-11-11 17:02 UTC (permalink / raw)
To: cryptsetup
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.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Rotating OPAL range key
2026-11-11 17:02 Rotating OPAL range key xeyrion
@ 2026-11-12 17:22 ` Ondrej Kozina
2026-11-15 3:36 ` xeyrion
0 siblings, 1 reply; 4+ messages in thread
From: Ondrej Kozina @ 2026-11-12 17:22 UTC (permalink / raw)
To: cryptsetup; +Cc: xeyrion
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.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Rotating OPAL range key
2026-11-12 17:22 ` Ondrej Kozina
@ 2026-11-15 3:36 ` xeyrion
2026-11-30 9:57 ` Ondrej Kozina
0 siblings, 1 reply; 4+ messages in thread
From: xeyrion @ 2026-11-15 3:36 UTC (permalink / raw)
To: Ondrej Kozina; +Cc: cryptsetup
That merge request seems to be exactly what I am looking for. Thanks.
I will keep an eye on it.
What makes it less useful without SUM? Does it not address the exact
use case of rotating a compromised LUKS key and the corresponding
OPAL2 user pin?
Re: sedutil, I was referring to '--setPassword' command to change the
user password.
On Thu, Nov 12, 2026 at 11:23 AM Ondrej Kozina <okozina@redhat.com> wrote:
>
> 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.
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Rotating OPAL range key
2026-11-15 3:36 ` xeyrion
@ 2026-11-30 9:57 ` Ondrej Kozina
0 siblings, 0 replies; 4+ messages in thread
From: Ondrej Kozina @ 2026-11-30 9:57 UTC (permalink / raw)
To: cryptsetup; +Cc: xeyrion
On 11/15/26 04:36, xeyrion@gmail.com wrote:
>
> What makes it less useful without SUM? Does it not address the exact
> use case of rotating a compromised LUKS key and the corresponding
> OPAL2 user pin?
Devices not configured for SUM (Single User Mode), or devices without
proper support for it, can not effectively cut off access to the locking
range protected data by changing a PIN of User authority associated with
the range. The Admin1 PIN has always full access and can unlock the
locking range. This is mistake in OPAL2 standard fix by SUM extension.
SUM fixes this problem by not allowing Admin1 PIN to be used to unlock a
locking range configured for SUM. Admin authority can only erase such LR
but it does not get access to the data.
O.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2026-11-30 9:57 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-11 17:02 Rotating OPAL range key xeyrion
2026-11-12 17:22 ` Ondrej Kozina
2026-11-15 3:36 ` xeyrion
2026-11-30 9:57 ` Ondrej Kozina
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox