Task · GCV-0073

Define ordered decommission for Git Sync credentials

Description

GrafanaProvisioningConnection uses the common non-destructive management policies, so removing the claim removes its Kubernetes management objects while retaining the external Grafana Connection and Securevalue. The existing stack decommission contract does not define ordering or evidence for these separately vended children. Blindly switching both to Delete could remove the secure value before the connection or revoke a credential without review. Settle an explicit owner-authorized lifecycle covering Connection-before-Securevalue ordering, credential revocation, the ExternalSecret-owned Kubernetes Secret boundary, and observable completion evidence.

Acceptance Criteria

Definition of Done

Implementation Plan

Wave 14: define and implement retain-by-default Git Sync credential lifecycle, platform-authorized ordered deletion, and an observable completion signal without changing a released API incompatibly.

Implementation Notes

Wave 14 implemented retain-default external lifecycle, platform-bound deletion authorization, observed phase witnesses, Connection-before-Securevalue withdrawal, and composite decommission status. Local just check passed with pinned envtest and KUBECONFIG=/dev/null. No live deletion or credential revocation was exercised.

Final Summary

Completed at 1f2af4a0b37c244a799e1fe0cdfcea2fa5abd82e; hosted Validate public reference run 35364595851 passed at that exact SHA. Ordered decommission is schema-backed, renderer-enforced, documented, and covered by focused plus integrated tests.

View the source file on GitHub