Skip to content

Merge secureboot certificate expiry feature to 26.1-lcm#7094

Open
chunjiez wants to merge 17 commits into
26.1-lcmfrom
feature/26.1-lcm/uefi-certs-expiry
Open

Merge secureboot certificate expiry feature to 26.1-lcm#7094
chunjiez wants to merge 17 commits into
26.1-lcmfrom
feature/26.1-lcm/uefi-certs-expiry

Conversation

@chunjiez
Copy link
Copy Markdown
Collaborator

No description provided.

Stephen Cheng and others added 15 commits May 21, 2026 16:08
Add a new DynamicRO field to track Secure Boot certificate status per VM.
The field indicates whether UEFI Secure Boot certificates need updating.

- Define enum (ok, update_available, update_on_boot) and field in datamodel
- Check certificate state via varstore-nvram-certcheck on import and
  DB upgrade for UEFI Secure Boot VMs
- Skip control domains, default templates, and non-Secure Boot VMs
  in the DB upgrade rule

Signed-off-by: Stephen Cheng <stephen.cheng@citrix.com>
…eter

Add a new versioned parameter 'update' to VM.set_NVRAM_EFI_variables,
allowing varstored to indicate whether Secure Boot certificates were
changed during an NVRAM write. This enables xapi to maintain the
VM.secureboot_certificates_state field accurately.

The 'update' parameter is an enum with three values:
- 'yes': certificates were updated, set state to 'ok'
- 'no': certificates unchanged, keep current state as-is
- 'unspecified': (default for v1 callers) run certcheck to determine state

Signed-off-by: Stephen Cheng <stephen.cheng@citrix.com>
Signed-off-by: Chunjie Zhu <chunjie.zhu@cloud.com>
Signed-off-by: Chunjie Zhu <chunjie.zhu@cloud.com>
Also fix other comments during review

Signed-off-by: Stephen Cheng <stephen.cheng@citrix.com>
Signed-off-by: Chunjie Zhu <chunjie.zhu@cloud.com>
Signed-off-by: Chunjie Zhu <chunjie.zhu@cloud.com>
Signed-off-by: Chunjie Zhu <chunjie.zhu@cloud.com>
Signed-off-by: Chunjie Zhu <chunjie.zhu@cloud.com>
Signed-off-by: Chunjie Zhu <chunjie.zhu@cloud.com>
Signed-off-by: Chunjie Zhu <chunjie.zhu@citrix.com>
Signed-off-by: Chunjie Zhu <chunjie.zhu@citrix.com>
Test 4653642, standalone VM uefi certificates updates test, Pass
Test 243110 (Dev Run), ToolStack regression test, Pass (3 test cases
cannot be scheduled to run)
Comment thread ocaml/idl/datamodel_common.ml Outdated
Comment thread ocaml/idl/datamodel_vm.ml Outdated
Chunjie Zhu and others added 2 commits May 26, 2026 14:53
@chunjiez
Copy link
Copy Markdown
Collaborator Author

Test,

  • Job 4657628, secure boot certificate update test, Pass
  • Job 243410 (Dev Run), ring3 regression test, Pass

We have a minor issue in RPU, it is not a code defect but a rpm package issue, we will update xapi.spec.

@chunjiez
Copy link
Copy Markdown
Collaborator Author

@changlei-li

The test on the feature 26.1-lcm branch looks good, see my above comments.

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.

2 participants