Skip to content

feat(image): show the running upgrade anchor in image status - #416

Merged
Bugs5382 merged 2 commits into
mainfrom
feat/345-image-status-anchor
Nov 15, 2026
Merged

Bugs5382 merged 2 commits into
mainfrom
feat/345-image-status-anchor

Conversation

@Bugs5382

@Bugs5382 Bugs5382 commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor

What and why

cryptosctl image status now shows the upgrade anchor the running node checks incoming images against: its subject and SHA-256. Until now an operator could only prove it indirectly. ImageStatus gains upgrade_anchor_subject (field 6) and upgrade_anchor_sha256 (field 7), filled from the node's release certificate; human output prints both, and -o json / -o yaml carry them. The proto change is additive (buf breaking passes).

Closes #345

Verification

  • Lint clean
  • Tests pass
  • Build succeeds
  • Documentation updated (if behavior or API changed)

How this was verified

Tests first: TestImageStatus_ShowsTheUpgradeAnchor (human, json, yaml) and TestUpgrader_StatusReportsTheUpgradeAnchor failed before the change and pass after. Also run: task generate (regenerated node.pb.go), buf lint, buf breaking against main, go vet, golangci-lint run, and go test ./... through the pre-push hook. docs/image-sign.md gains a line on checking the anchor. The companion docs PR is CryptOS-PKI/website#51; merge together.


Before merging: add a closing comment summarizing what was actually done in this PR
(not just the checked boxes).

ImageStatus gains upgrade_anchor_subject and upgrade_anchor_sha256, filled from the release certificate the node checks incoming images against. cryptosctl image status prints them in human output and carries them in -o json and -o yaml.

Closes #345

Signed-off-by: Bugs5382 <12115015+Bugs5382@users.noreply.github.com>
@Bugs5382 Bugs5382 added this to the vNext milestone Nov 15, 2026
@Bugs5382 Bugs5382 added the enhancement New feature (feat). Minor version bump. label Nov 15, 2026
@Bugs5382 Bugs5382 self-assigned this Nov 15, 2026
@Bugs5382
Bugs5382 marked this pull request as ready for review November 15, 2026 06:37
@Bugs5382

Copy link
Copy Markdown
Contributor Author

Merging on the owner's approval. CI is green and the branch is clean.

@Bugs5382

Copy link
Copy Markdown
Contributor Author

Merging on the owner's approval. CI is green and the branch is clean.

@Bugs5382
Bugs5382 merged commit 5e0f370 into main Nov 15, 2026
16 checks passed
@Bugs5382
Bugs5382 deleted the feat/345-image-status-anchor branch November 15, 2026 20:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature (feat). Minor version bump.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(image): show the running upgrade anchor in image status

1 participant