Skip to content

fix(connectivities)!: EN-3335 align ExecuteNumscript scopes and prepare v3.21.3 - #581

Open
Dav-14 wants to merge 4 commits into
mainfrom
codex/fix-en3335-read-query
Open

Dav-14 wants to merge 4 commits into
mainfrom
codex/fix-en3335-read-query

Conversation

@Dav-14

@Dav-14 Dav-14 commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Align EN-3335 with Connectivity #595 and prepare v3.21.3.

 Stack-managed Connectivity Ledger Credentials
   ledger:ReadAccount / WriteLedger / WriteMetadata / WriteQuery
-  ledger:WriteTransaction
+  ledger:ExecuteNumscript — mapped stored/dynamic scripts in Apply
+  ledger:ReadQuery — AnalyzeNumscript before stored-template provisioning

Fresh and existing credentials converge to exactly six scopes with superuser=false. Reconciliation preserves credential identity, key ID, distributed Secret references, stack isolation and delegated subject, and waits for the Ledger operator to observe the updated generation. Repeated reconciliation writes nothing. The supported binding remains the existing distributed key-id and seed.hex Secret references; no derived bundle Secret is created.

Both Helm charts retain the prepared 3.21.3 / appVersion: v3.21.3 and regenerated dependency lock. No release tag is created.

Dependencies and compatibility

Requires compatible Core from Connectivity #595 and its Ledger #2634 ExecuteNumscript contract. Core sends script actions and the cursor write in the same atomic Apply batch. Coordinate Core, Ledger and the Operator grants before rollout; canonical RC.2/RC.3 scope names alone do not establish action compatibility.

Behavioral breaking change: the exact scope set removes ledger:WriteTransaction. Older Core versions that claim that scope or submit CreateTransaction are incompatible. The previous ReadQuery-only revision of this PR retained that grant; this revision replaces it with ExecuteNumscript. Human approval for this behavioral break remains required before merge; this PR does not claim that approval.

API/data changes: no new CRD fields, key rotation, Secret format or configurable scope list. No performance claim is made.

Integration

Merged current main (02d8aa8a) into this PR branch, preserving the Gateway routing from #576. Retained main's dependency versions in root and operator-utils; the previous logging build workaround is already on main and is no longer part of this PR's effective diff.

Evidence

  • Fresh creation asserts the six-scope contract. Fake-client migration tests cover RC.1 names, five canonical grants and the former six-grant set with WriteTransaction. They assert in-place identity/isolation preservation, stale readiness rejection, new observed generation and no repeated writes.
  • go test -race -p 2 ./internal/resources/connectivities -count=1 passed after integrating main.
  • just pre-commit passed after integrating main, using cached Nix Go 1.27.3 and golangci-lint 2.15.0 plus local Helm/Kustomize tools. The first attempt with the host v1 linter failed before checks; the compatible v2 run passed. No CRD or generated documentation drift.
  • Exact ordered scope comparison with Connectivity #595 passed; git diff --check passed.
  • Full repository tests and Kubernetes E2E were not run locally. Live grant application and authenticated ingestion remain unverified.
  • Independent source review: Principal Engineer and Product Engineer pass for the scoped change. SRE runtime qualification remains open: Credentials readiness proves distribution, not actual Ledger grant application or successful ingestion.

Merge Danger

Door: coordinated rollback.

Blast Radius: Stack-managed Connectivity credentials.

Before: mapped-script Core lacks ExecuteNumscript authorization and stored-template provisioning lacks ReadQuery on the five-grant baseline. After: the exact new six-grant contract authorizes both. Removing WriteTransaction reduces the supported scope surface and requires matching Core. Rolling back Operator alone can remove ExecuteNumscript or ReadQuery and stop script execution or provisioning. Restore matching Core claims/actions, Operator-desired grants and Ledger authorization together.

Before release, verify migration of an existing credential against a real compatible Ledger, inspect applied registered-key grants, exercise authenticated provisioning/ingestion and denial of unrelated privileges, and record all three revisions. No merge, release, Regions change or deployment is included in this update.

@NumaryBot NumaryBot added risk: high bot-reviewed draft-reviewed NumaryBot reviewed this draft, but published no readiness signal. labels Nov 20, 2026
@Dav-14
Dav-14 marked this pull request as ready for review November 20, 2026 15:12
@Dav-14
Dav-14 requested a review from a team as a code owner November 20, 2026 15:12
@NumaryBot NumaryBot added review-approved The NumaryBot review gate is satisfied for the current head. and removed draft-reviewed NumaryBot reviewed this draft, but published no readiness signal. labels Nov 20, 2026
NumaryBot
NumaryBot previously approved these changes Nov 20, 2026

@NumaryBot NumaryBot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The required automated review completed with no remaining findings.

@Dav-14
Dav-14 enabled auto-merge (squash) November 23, 2026 14:29
@Dav-14 Dav-14 changed the title fix(connectivities): EN-3335 grant ReadQuery and prepare v3.21.3 fix(connectivities): EN-3335 align ExecuteNumscript scopes and prepare v3.21.3 Nov 25, 2026
@NumaryBot NumaryBot removed the review-approved The NumaryBot review gate is satisfied for the current head. label Nov 25, 2026
@Dav-14 Dav-14 changed the title fix(connectivities): EN-3335 align ExecuteNumscript scopes and prepare v3.21.3 fix(connectivities)!: EN-3335 align ExecuteNumscript scopes and prepare v3.21.3 Nov 25, 2026
@NumaryBot NumaryBot added the review-approved The NumaryBot review gate is satisfied for the current head. label Nov 25, 2026

@NumaryBot NumaryBot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The required automated review completed with no remaining findings.

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

bot-reviewed build-images review-approved The NumaryBot review gate is satisfied for the current head. risk: high

Development

Successfully merging this pull request may close these issues.

2 participants