Repository navigation
feat(attest): unhide attest override and mark it as beta - #1403
Draft
dangrondahl wants to merge 1 commit into
Draft
dangrondahl wants to merge 1 commit into
dangrondahl wants to merge 1 commit into
Conversation
attest override is in active customer use, so it should be discoverable in help and docs while the API endpoint is still beta.
Contributor
|
Claude finished @dangrondahl's task in 1m 14s —— View job PR Review: unhide
|
| 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 |
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: ""}atcmd/kosli/attestOverride.go:73is the same setup asattestDecision.go:97,attestInToto.go:305and other beta commands. RemovingHidden: trueis all it takes to get the command intokosli attest --helpand the generated docs. - Test:
TestLifecycleAttestOverrideIsBetaAndVisibleuses the same structure as the decision and rego-policy lifecycle tests next to it. It checks both visibility and beta status viaisBeta(), 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-typeis 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.
3 tasks
This branch has not been deployed
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.
Customers already use
kosli attest override, but the command is hidden, so it doesn't show up inkosli attest --helpor in the generated docs. This PR removesHidden: trueand adds thebetaCLIannotation, which is howattest decisionis set up. The command now appears in help and docs, and--helpshows the standard "Beta Feature" notice.Added
TestLifecycleAttestOverrideIsBetaAndVisibletolifecycle_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
charts/k8s-reporter/) updated, if needed. Note: these changes live in a separate PR (n/a)