Repository navigation
feat(connectivities)!: route Ledger gRPC traffic through the stack Gateway - #576
Conversation
NumaryBot
left a comment
There was a problem hiding this comment.
The required automated review completed with no remaining findings.
…teway connectivity-core now dials the Ledger v3 gRPC API through the stack Gateway (gateway:8080, h2c) instead of the ledger Service directly. The Gateway already routes ledger.BucketService, the only service connectivity-core calls, and owns the ledger backend TLS and gRPC port. - Set spec.ledgerAddress to the in-cluster Gateway address and remove spec.ledgerTLS, including on existing delegated resources. - Wait for a Gateway on the stack (GatewayNotFound) before provisioning. - Drop ledgers.V3GRPCBackendRef, which has no remaining caller. Keep its grpcPort test against the gateway backend helper. BREAKING CHANGE: the Connectivity module now requires a Gateway on the stack. Without one, the delegated Connectivity is not provisioned.
03e907f to
b52f5ed
Compare
NumaryBot
left a comment
There was a problem hiding this comment.
The required automated review completed with no remaining findings.
Upgrade the Uptrace Logrus bridge in the operator and its utility module. The 0.4 release uses attribute.Value in place of the removed log.Value API and keeps the OpenTelemetry security update.
|
All 18 local test suites passed. The operator and utilities build, and the pre-commit checks produced no generated changes. |
NumaryBot
left a comment
There was a problem hiding this comment.
The required automated review completed with no remaining findings.
Summary
connectivity-core now reaches the Ledger v3 gRPC API through the stack Gateway instead of dialing the
ledger-<stack>Service directly.spec.ledgerAddressis set togateway:8080(newgateways.InClusterAddress).spec.ledgerTLSis removed, including on already-provisioned delegated resources. The Gateway listener serves h2c in-cluster and handles the ledger backend TLS (CA trust pool + SNI) and the configured gRPC port.GatewayNotFound, orGatewayLookupFailedon a read error). The existing Gateway watch requeues the reconcile.ledgers.V3GRPCBackendRefhad no remaining caller and is removed. ItsgrpcPortoverride test now targetsledgerV3BaseSpec+ledgerV3GRPCBackendRef, which the Gateway backend still uses.Compatibility checks (connectivity repo)
ledger.BucketService, the service the Ledger v3 exposes throughGatewayGRPCAPI.ledgerTLSis optional in the connectivity CRD. Without it, the client dials with insecure credentials.TokenProviderand the protocol-version credentials returnRequireTransportSecurity() == false, so they are sent over plaintext. Caddy forwards theauthorizationandledger-protocol-versionmetadata unchanged. The gRPC route has no gatewayauthdirective, so the ledger still verifies the token.allow-same-namespacealready covers connectivity pods → gateway.Breaking change
The Connectivity module now requires a Gateway on the stack. Without one, the delegated Connectivity is not provisioned.
Notes for review
IdleTimeout, etc.).Tests
go test ./...with envtest assets (setup-envtest use 1.32.0): pass.golangci-lint run ./internal/...: 0 issues.TestConnectivityReconcileWaitsForGatewayBeforeProvisioning. Updated: delegated spec assertions (gateway:8080, noledgerTLS, legacyledgerTLSremoved on update).