CLI: Update hypeman SDK to 4761d6828471a6c40c298a74934837cb01b17aad and add new commands/flags - #61
Open
kernel-internal[bot] wants to merge 4 commits into
Open
CLI: Update hypeman SDK to 4761d6828471a6c40c298a74934837cb01b17aad and add new commands/flags#61kernel-internal[bot] wants to merge 4 commits into
kernel-internal[bot] wants to merge 4 commits into
Conversation
Bumps github.com/kernel/hypeman-go to c2d1040 so the CLI builds against the latest generated SDK surface. A full enumeration of the 58 SDK methods in api.md and their param struct fields was compared against every command and flag in pkg/cmd/. No coverage gaps were found, so no new commands or flags were needed. Co-authored-by: Cursor <cursoragent@cursor.com>
…r auth The SDK now exposes IngressRuleParam.RequestHeaderAuth, letting an ingress rule require a matching request header before proxying. Expose it on `hypeman ingress create` via --request-header-auth-header/--request-header-auth-value for the single-rule shorthand and a request-header-auth=HEADER:VALUE option in the --rule grammar. Co-authored-by: Cursor <cursoragent@cursor.com>
Updates the Hypeman Go SDK to f8a5d4586ff9c812b8b5f0aa342bb0b7b47bd3dc, which adds a qemu-microvm hypervisor backend to the hypervisor enums. The CLI validates hypervisor names against hardcoded lists, so the new backend was unselectable until those lists accepted it. Accept it on `hypeman run --hypervisor`, `hypeman snapshot restore --target-hypervisor`, and `hypeman snapshot fork --target-hypervisor`, and render it in the `hypeman ps` HV column. Co-authored-by: Cursor <cursoragent@cursor.com>
Full enumeration of SDK methods (api.md) and param struct fields against the CLI command/flag tree found no coverage gaps, so this is a dependency bump only. Co-authored-by: Cursor <cursoragent@cursor.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR updates the Hypeman Go SDK to 4761d6828471a6c40c298a74934837cb01b17aad and adds CLI commands/flags for new SDK methods.
SDK Update
v0.23.1-0.20260810220603-4761d6828471)Coverage Analysis
This PR was generated by performing a full enumeration of SDK methods and CLI commands.
Every method in
api.mdwas cross-checked against the CLI command tree, and every field of all 31*Paramsstructs (plus their nested param types such asAutoStandbyPolicyParam,HealthCheckParam,RestartPolicyParam,SnapshotPolicyParam,VolumeMountParam,IngressRuleParam,SetSnapshotScheduleRequestParam, andMemoryReclaimRequestParam) was cross-checked against the CLI flag set. Nox-cli-skip: trueendpoints exist inopenapi.yaml.For this SDK bump specifically, no new coverage gaps were found: the diff from the previously pinned SDK commit touches only release workflow files and does not change the API surface. The commands and flags listed below were added by earlier commits on this evergreen branch.
New Commands
New Flags
--hypervisoronhypeman runacceptsqemu-microvmforInstanceNewParams.Hypervisor--request-header-auth-header/--request-header-auth-valueonhypeman ingress createforIngressRuleParam.RequestHeaderAuthrequest-header-auth=HEADER:VALUEoption on--ruleforhypeman ingress create--target-hypervisoronhypeman snapshot forkandhypeman snapshot restoreforSnapshotForkParams.TargetHypervisorandInstanceSnapshotRestoreParams.TargetHypervisor--stateonhypeman psforInstanceListParams.StateTriggered by: kernel/hypeman-go@4761d68
Reviewer: @sjmiller609
Note
Medium Risk
Ingress header auth affects edge routing security configuration; hypervisor selection changes which VMs can be created or restored, with validation-only CLI changes plus SDK dependency bump.
Overview
Updates hypeman-go to a newer pre-release build and wires two SDK gaps into the CLI.
Ingress request-header auth on
hypeman ingress create:--request-header-auth-header/--request-header-auth-valuefor single-rule creates, plusrequest-header-auth=HEADER:VALUEin the--rulegrammar (values may contain colons after the first separator). Shorthand auth flags cannot be mixed with--rule.qemu-microvmis accepted on--hypervisor(run),--target-hypervisor(snapshot restore/fork, withmicrovmalias), and shown asmicrovminhypeman ps. Help text notes microvm limitations (no PCI, hotplug memory, or more than eight virtio-mmio devices).Reviewed by Cursor Bugbot for commit 02aef63. Bugbot is set up for automated code reviews on this repo. Configure here.