Skip to content

feat(attest): unhide attest override and mark it as beta - #1403

Draft
dangrondahl wants to merge 1 commit into
mainfrom
feat/attest-override-beta
Draft

dangrondahl wants to merge 1 commit into
mainfrom
feat/attest-override-beta

Conversation

@dangrondahl

@dangrondahl dangrondahl commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

Customers already use kosli attest override, but the command is hidden, so it doesn't show up in kosli attest --help or in the generated docs. This PR removes Hidden: true and adds the betaCLI annotation, which is how attest decision is set up. The command now appears in help and docs, and --help shows the standard "Beta Feature" notice.

Added TestLifecycleAttestOverrideIsBetaAndVisible to lifecycle_test.go.

Draft: the override API endpoint is still hidden and may be behind a feature flag. Mark this ready for review once the endpoint is public.

Checklist

  • Docs are autogenerated from CLI help — make sure the help text reflects your changes
  • Helm chart (charts/k8s-reporter/) updated, if needed. Note: these changes live in a separate PR (n/a)
  • Terraform provider and related changes (terraform-provider-kosli, terraform-aws-kosli-reporter) updated, if needed (n/a)

attest override is in active customer use, so it should be discoverable
in help and docs while the API endpoint is still beta.
@github-actions github-actions Bot added go Pull requests that update go code feat labels Nov 20, 2026
@claude

claude Bot commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

Claude finished @dangrondahl's task in 1m 14s —— View job


PR Review: unhide attest override and mark it as beta

  • Static checks (build / vet / mod tidy)
  • Read the diff and compare it with existing beta commands
  • Post review

Static analysis

Check Result
go build ./... ✅ pass
go vet ./cmd/kosli/ ✅ pass
go mod tidy + git diff --exit-code go.mod go.sum ✅ no changes
go test -run TestLifecycle ⚠️ not run. The CI sandbox needs approval to run go test, so CI has to confirm this one.

Review

The change is small and follows the existing pattern.

  • Consistency: Annotations: map[string]string{betaCLIAnnotation: ""} at cmd/kosli/attestOverride.go:73 is the same setup as attestDecision.go:97, attestInToto.go:305 and other beta commands. Removing Hidden: true is all it takes to get the command into kosli attest --help and the generated docs.
  • Test: TestLifecycleAttestOverrideIsBetaAndVisible uses the same structure as the decision and rego-policy lifecycle tests next to it. It checks both visibility and beta status via isBeta(), so it would catch either one regressing.
  • Help text: The Short description ends in two spaces ("Override an attestation in a trail. "). This is normal in this repo (37 other commands do the same), so nothing to change.
  • Behaviour: Flags, validation and the request path are unchanged. This PR only changes help and docs, so there are no new security or performance risks.

Optional (non-blocking):

  • Now that the command is public, check that the Long description and examples are good enough for customer-facing docs. In particular, the help text could say what --original-attestation-type is for and when you need it, since the second example uses it but the first doesn't.
  • I agree with the draft note: wait until the override API endpoint is public. Otherwise the docs will advertise a command that fails for orgs without the feature flag.

Summary

✅ Looks good to merge once the endpoint is public. I found no blocking issues.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feat go Pull requests that update go code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant