Repository navigation
Conversation
NumaryBot
reviewed
Oct 27, 2026
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.
Summary
Connectivity Core/API already resolve registry rewrites and
pullSecretparameters, but the credentials must exist in the Stack namespace. Reuse that configuration to provision Stack-owned ResourceReferences without changing image parsing or registry behavior. These source-linked references keep rotating for the Stack lifetime: removing Connectivity or changing its registry must not remove credentials still used by Ledger/Auth. Obsolete Core/API references require explicit cleanup after checking consumers.Plugins need their own explicit source because Stack Operator does not resolve their Catalog images. Add one Setting,
connectivity.instances.image-pull-secrets, accepting one source Secret name. Stack Operator creates one stable reference per configured Stack and fixes the destination toghcr-pull-connectivity-plugins. It also manages one shared plugins Policy with a stable name, targeting only configured Stack namespaces throughinstanceSelectorand leaving Core/API untouched.Add optional
ResourceReference.spec.targetName, with existing source-name behavior when omitted. Preserve source authorization and reject unmanaged or incompatible destination writers. Core/API copies retain the configured names; plugin source changes keep their reference and destination stable; an empty per-stack Setting overrides a wildcard. No new Core/API Setting or Policy, generic registry auto-copy feature, Catalog inference, or external Connectivity Operator changes.Tracks EN-3215. Sandbox cleanup: MR !166 removes only the Connectivity Operator imagePullSecrets from the Regions HelmRelease. It leaves Secrets and Catalogs unchanged and does not depend on this feature. This PR remains needed for clients using private registries.
Evidence
After: Core/API reuse their existing registry configuration; one plugin Setting provisions copies and one shared Policy.
f55545e473a8c2ba398b72e657b7875c709bfb1f.just pre-commitpassed with verified Go 1.27.3, golangci-lint 2.15.0 and Kustomize 4.5.7, including generation, three lint runs, Helm rendering and documentation/catalog generation.f55545e4; the prior Core/API lifetime blocker is resolved. The reviewer also independently reran the four focused unit packages successfully.No deployment or live registry pull qualification. Envtest does not run Kubernetes garbage collection or the Connectivity workload controller.
Merge Danger
Door: two-way, with credential cleanup requiring care.
Blast Radius: stacks.
Install the updated ResourceReference CRD with the controller: older schemas prune
targetName. Source Secrets need an authorizedformance.com/stacklabel and a unique matching logical name. Existing unmanaged local Secrets retain their rotation lifecycle. Removing the final reference owner can garbage-collect a copy; source authorization removal alone does not revoke existing copies. Overlapping Policies retain Connectivity's priority/name precedence. Install the Policy CRD and generated RBAC before configuring the plugin Setting; restart Operator if that optional API becomes available after startup.Leave this PR and the sandbox MR open in draft for David's review. No merge, release or deployment is authorized.