Skip to content

Update google.golang.org/grpc to v1.79.3 - #274

Merged
kalroy merged 10 commits into
add_invalid_attemptsfrom
update-grpc-v1.79.3
May 19, 2026
Merged

Update google.golang.org/grpc to v1.79.3#274
kalroy merged 10 commits into
add_invalid_attemptsfrom
update-grpc-v1.79.3

Conversation

@Aishwarya2001A

@Aishwarya2001A Aishwarya2001A commented May 15, 2026

Copy link
Copy Markdown

Update google.golang.org/grpc to v1.79.3

Bumps gRPC from v1.29.0 to v1.79.3 to align with chef/automate-private.

Changed Files (9)

go.mod

  • Updated google.golang.org/grpc to v1.79.3 in both require and replace directives
  • Added go.etcd.io/etcd/client/v3 v3.5.21 and go.etcd.io/etcd/client/pkg/v3 v3.5.21 — modern modular etcd client, compatible with grpc v1.79.3
  • Removed old monolithic go.etcd.io/etcd which depended on grpc/naming (removed in grpc v1.30.0)

go.sum

  • Updated checksums for all new and changed dependencies

storage/etcd/config.go

  • Migrated import paths to the modern modular etcd client:
    • go.etcd.io/etcd/clientv3go.etcd.io/etcd/client/v3
    • go.etcd.io/etcd/clientv3/namespacego.etcd.io/etcd/client/v3/namespace
    • go.etcd.io/etcd/pkg/transportgo.etcd.io/etcd/client/pkg/v3/transport

storage/etcd/etcd.go

  • Migrated go.etcd.io/etcd/clientv3go.etcd.io/etcd/client/v3

storage/etcd/etcd_test.go

  • Migrated go.etcd.io/etcd/clientv3go.etcd.io/etcd/client/v3

storage/etcd/types.go

  • Minor whitespace alignment in Keys struct fields (no logic change)

cmd/dex/config.go (not in diff — restored inline with etcd files)

  • Restored etcd storage registration in the storages map

server/api_test.go

  • Replaced deprecated grpc.Dial + grpc.WithInsecure() with grpc.NewClient + insecure.NewCredentials()

Dockerfile

  • Updated build image: golang:1.15.6-alpine3.12golang:1.24-alpine3.21
  • Updated runtime image: alpine:3.12alpine:3.21
  • Added CGO_CFLAGS="-D_LARGEFILE64_SOURCE" to fix sqlite3 CGO build on Alpine musl-libc

.github/workflows/ci.yml

  • Upgraded actions/setup-go from v1v5 (required: Node.js 16 deprecated on GitHub runners)
  • Kept etcd service image at gcr.io/etcd-development/etcd:v3.2.9 (original working version)
  • Added DEX_ETCD_ENDPOINTS env var to the test run step

- Update grpc dependency from v1.29.0 to v1.79.3 in go.mod
- Remove storage/etcd backend (incompatible with grpc v1.30+ due to removed grpc/naming package)
- Remove etcd import and storage entry from cmd/dex/config.go
- Run go mod tidy to update go.sum

Signed-off-by: Aishwarya2001A <aaishwar@progress.com>
Signed-off-by: Aishwarya2001A <aaishwar@progress.com>
…_SOURCE

Signed-off-by: Aishwarya2001A <aaishwar@progress.com>
Signed-off-by: Aishwarya2001A <aaishwar@progress.com>
@Aishwarya2001A Aishwarya2001A self-assigned this May 15, 2026
Signed-off-by: Aishwarya2001A <aaishwar@progress.com>
Migrate from the old monolithic go.etcd.io/etcd module (which depended
on google.golang.org/grpc/naming, removed in grpc v1.30.0) to the
modern modular go.etcd.io/etcd/client/v3 v3.5.21.

Changes:
- storage/etcd/: restored all 4 files with updated import paths
  - go.etcd.io/etcd/clientv3 -> go.etcd.io/etcd/client/v3
  - go.etcd.io/etcd/clientv3/namespace -> go.etcd.io/etcd/client/v3/namespace
  - go.etcd.io/etcd/pkg/transport -> go.etcd.io/etcd/client/pkg/v3/transport
- cmd/dex/config.go: restored etcd storage registration
- go.mod: added go.etcd.io/etcd/client/v3 and client/pkg/v3 v3.5.21
- .github/workflows/ci.yml: update etcd image to v3.5.21, add DEX_ETCD_ENDPOINTS env var

Signed-off-by: Aishwarya2001A <aaishwar@progress.com>
etcdctl is not bundled in gcr.io/etcd-development/etcd:v3.5.21 image.
Switch health check to use curl against the /health HTTP endpoint.

Signed-off-by: Aishwarya2001A <aaishwar@progress.com>
…velopment/etcd image)

Signed-off-by: Aishwarya2001A <aaishwar@progress.com>
v3.2.9 was the original working image with a compatible etcdctl
health check. The etcd client/v3 Go module is still v3.5.21 —
the CI image version does not need to match the Go module version.

Signed-off-by: Aishwarya2001A <aaishwar@progress.com>
Signed-off-by: Aishwarya2001A <aaishwar@progress.com>
Comment thread .github/workflows/ci.yml
steps:
- name: Set up Go
uses: actions/setup-go@v1
uses: actions/setup-go@v5

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Why are we changing this?

@kalroy
kalroy merged commit 2fb1334 into add_invalid_attempts May 19, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants