Skip to content

fix(deploy): report the release version from the control plane image - #307

Merged
samuelmbabhazi merged 2 commits into
mainfrom
fix/control-plane-version
Nov 13, 2026
Merged

samuelmbabhazi merged 2 commits into
mainfrom
fix/control-plane-version

Conversation

@samuelmbabhazi

@samuelmbabhazi samuelmbabhazi commented Nov 13, 2026 •

Copy link
Copy Markdown
Collaborator

What

The control plane image now carries SHIPKEEP_VERSION in its runtime stage, so a release reports its own version at /api/v1/health and in the OpenAPI document.

Why

release.yml passes the version as a build argument, but only the build stage declared it, to stamp the agent binaries. The API reads SHIPKEEP_VERSION from its environment when it runs. The published v0.1.0-alpha.1 therefore answers {"status":"ok","version":"dev"}.

The fix reaches users with the next prerelease; v0.1.0-alpha.1 keeps answering dev.

How it was tested

On the local Docker rig, which was running the published v0.1.0-alpha.1 with a server enrolled and an application deployed:

  • before: GET /api/v1/health on the published image answers "version":"dev";
  • an image built from this branch with --build-arg SHIPKEEP_VERSION=0.1.0-alpha.2-test, put in .env in place of the published one, then docker compose up -d: the one-shot steps ran again, the control plane came back healthy and answers "version":"0.1.0-alpha.2-test"; the OpenAPI document reports the same version;
  • the existing account still signs in and the enrolled server is still ready.

Not built: the image without the build argument. The default stays dev, as declared in the Dockerfile.

Security considerations

The version of a release is public. No secret, route or permission changes.

Summary by CodeRabbit

  • New Features
    • The health endpoint now reports the control plane’s version. Builds can specify a version, and builds without one report dev by default. This makes the running version visible in health information.

The version was passed to the build stage only, to stamp the agent
binaries. The API reads SHIPKEEP_VERSION when it runs, so the published
0.1.0-alpha.1 answers "dev" at /api/v1/health and in its OpenAPI
document. The runtime stage now carries it.

Signed-off-by: samuel mbabhazi <[email protected]>
@coderabbitai

coderabbitai Bot commented Nov 13, 2026 •

Copy link
Copy Markdown

Explain Change →

Important

Review skipped

Review was skipped as selected files did not have any reviewable changes.

Run configuration

Commits

Reviewing files that changed from the base of the PR and between bc27a4a and c8fc068.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review

No actionable comments were generated in the recent review.

Walkthrough

The control plane runtime image now sets SHIPKEEP_VERSION to dev by default and exports it alongside the existing environment variables.

Changes: Control plane image

Layer / File(s) Summary
Runtime version environment
deploy/control-plane.Dockerfile
The runtime stage declares SHIPKEEP_VERSION=dev and exports it through ENV. A comment documents that the health endpoint reports this version.

Estimated code review effort: 1 (Trivial) | ~3 minutes

Change: Bug fix

Merge Risk: Minimal · previous review bc27a

This change lets released control plane images report their version at the health endpoint instead of always reporting dev. No actionable merge risk remains.

Security architecture risk: Minimal · up to bc27a

The change corrects release-version reporting without introducing a new endpoint, permission, secret, or persistent-state transition. No material security risk was identified in the changed flow.

Retained concerns
No architecture-level concerns identified.

Security review details

Security Blast Radius

  • inferred — The changed exposure is the release-version string reported by control-plane instances using the rebuilt image. The inspected consumers use it as response or document metadata, not as an authorization decision or privileged command.

Trust Boundaries and Controls

  • observed — The version originates in existing build configuration and is read from the process environment, not from the health request. The runtime remains configured as USER node, and the PR leaves release publishing permissions and credential handling unchanged.
Pre-merge checks: Passed 4

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title names the main change: the control plane image now carries the release version so /api/v1/health and the OpenAPI document report it. The raw summary confirms the Dockerfile now declares SH…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title names the main change: the control plane image now carries the release version so /api/v1/health and the OpenAPI document report it. The raw summary confirms the Dockerfile now declares SHIPKEEP_VERSION (default dev) in the runtime stage, matching the title's intent. The title uses the conventional commit form and is specific, so it passes.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Recent review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between 92a8321 and bc27a4a.

Files selected for processing: 1

  • deploy/control-plane.Dockerfile

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 7 remain after this review.

@samuelmbabhazi
samuelmbabhazi merged commit 39e2e4c into main Nov 13, 2026
16 checks passed
@samuelmbabhazi
samuelmbabhazi deleted the fix/control-plane-version branch November 13, 2026 08:12
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