Skip to content

backport(v0.5.x): select key epochs in GetKey - #1631

Merged
kvinwang merged 1 commit into
release/v0.5.xfrom
backport/v0.5.x-v0-getkey-epochs
Nov 20, 2026
Merged

kvinwang merged 1 commit into
release/v0.5.xfrom
backport/v0.5.x-v0-getkey-epochs

Conversation

@kvinwang

Copy link
Copy Markdown
Collaborator

Backport of #1630 (guest-agent part) to v0.5.x.

Problem

0.5.x guests follow KMS key epochs at boot, so after a KMS root key rotation or an app epoch advance every GetKey key changes, with no way to reach the key from before the rotation.

Fix

  • GetKeyArgs gains optional root_epoch / app_epoch (unset = current, unchanged behaviour); GetKeyResponse reports the epochs used.
  • 0.5.x had no guest-side epoch fetch, so this also ports CertRequestClient::get_app_key and the in-memory cache of older app roots from next.

SDK support ships from next (#1630) and works against this agent.

Signed-off-by: Kevin Wang <wy721@qq.com>
@kvinwang
kvinwang merged commit 4577f48 into release/v0.5.x Nov 20, 2026
9 checks passed
@kvinwang
kvinwang deleted the backport/v0.5.x-v0-getkey-epochs branch November 20, 2026 12:44
@kvinwang kvinwang mentioned this pull request Nov 20, 2026
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.

1 participant