fix(windows99): accept bounded identity dry-run evidence
All checks were successful
CD Pipeline / workflow-shape (push) Successful in 0s
CD Pipeline / cancel-stale-cd (push) Has been skipped
CD Pipeline / tests (push) Successful in 1m7s
CD Pipeline / build-and-deploy (push) Successful in 5m5s
AWOOOI Harbor 110 Local Repair / workflow-shape (push) Successful in 1s
AWOOOI Harbor 110 Local Repair / harbor-110-local-repair (push) Successful in 1m0s
CD Pipeline / post-deploy-checks (push) Successful in 4m29s

This commit is contained in:
ogt
2026-07-10 10:12:27 +08:00
parent acbf26e089
commit 5dd64bc723
3 changed files with 92 additions and 19 deletions

View File

@@ -77,6 +77,7 @@ _CANDIDATE_CONFIRMATION_ALLOWED_KINDS = {
"target_alias_hint",
"authorized_console_identity",
"verified_backup_path_fingerprint",
"bounded_identity_metadata_single_unassigned_candidate",
}
_CANDIDATE_CONFIRMATION_FORBIDDEN_ACTIONS = [
"raw_vmx_path_output",
@@ -495,6 +496,14 @@ def validate_windows99_vmx_source_candidate_confirmation_packet(
_CANDIDATE_CONFIRMATION_ALLOWED_KINDS
):
rejected_fields.append("candidate_identity_kind")
if (
str(packet.get("candidate_identity_kind") or "")
== "bounded_identity_metadata_single_unassigned_candidate"
and _int(locator.get("identity_unassigned_ubuntu_candidate_count"), 0) != 1
):
rejected_fields.append(
"candidate_identity_kind.requires_single_unassigned_identity_candidate"
)
if str(packet.get("candidate_identity_evidence_ref") or "").strip() == "":
rejected_fields.append("candidate_identity_evidence_ref")
if _int(packet.get("candidate_match_count"), 0) != 1: