Skip to content

chore: Update Go SDK to 1.26 and modernize codebase#316

Open
pweiber wants to merge 4 commits into
GoogleCloudPlatform:mainfrom
pweiber:go-update
Open

chore: Update Go SDK to 1.26 and modernize codebase#316
pweiber wants to merge 4 commits into
GoogleCloudPlatform:mainfrom
pweiber:go-update

Conversation

@pweiber
Copy link
Copy Markdown
Contributor

@pweiber pweiber commented Feb 25, 2026

This PR aims to update the current go sdk to 1.26 and modernize some parts for the JWT sample

  • Upgrade Go from 1.23 to 1.26 across go.mod, Dockerfile, CI workflow, and README
  • Migrate JWT library from dgrijalva/jwt-go (unmaintained, CVE-prone) to golang-jwt/jwt/v5
  • Harden JWT header extraction: case-insensitive comparison via strings.EqualFold and RawValue→Value fallback
  • Apply Go modernizations: ioutil.ReadFile → os.ReadFile, interface{} → any, HasPrefix/TrimPrefix → CutPrefix, err == io.EOF → errors.Is(err, io.EOF)
  • Replace deprecated grpc.Dial with grpc.NewClient
  • Migrate github.com/golang/protobuf/proto to google.golang.org/protobuf/proto

Signed-off-by: pweiber <periclesweiber@ciandt.com>
Signed-off-by: pweiber <periclesweiber@ciandt.com>
…arden JWT header extraction

Signed-off-by: pweiber <periclesweiber@ciandt.com>
@pweiber pweiber requested review from a team as code owners February 25, 2026 18:06
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.

2 participants