You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit dc8aefe
Browse filesBrowse the repository at this point in the historyBrowse files
tang: skip storing adv when server supports tang_pub
When the Tang server advertises the tang_pub capability via the
Tang-Capabilities HTTP header in its /adv response, skip storing
the advertisement (clevis.tang.adv) in the JWE protected header.
At decrypt time, the server exchange key is obtained directly from
the tang_pub field in the /rec recovery response instead.
This significantly reduces the metadata written to the LUKS header
while maintaining full backward compatibility: when the capability
header is absent or the advertisement is provided offline, the adv
is stored as before.
Encrypt side:
- Capture /adv response headers and check for Tang-Capabilities
- Conditionally omit adv from JWE header when tang_pub is available
Decrypt side:
- Make adv extraction optional (non-fatal when absent)
- Extract tang_pub from recovery response and validate its thumbprint
- Fail fast if adv IS present but kid does not match (tamper detection)
- Fall back to stored adv for servers without tang_pub support
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Signed-off-by: Sergio Arroutbi <sarroutb@redhat.com>
0 commit comments