Skip to content

Feature/go 1.24 upgrade#65

Merged
thoom merged 3 commits intomasterfrom
feature/go-1.24-upgrade
May 31, 2025
Merged

Feature/go 1.24 upgrade#65
thoom merged 3 commits intomasterfrom
feature/go-1.24-upgrade

Conversation

@thoom
Copy link
Copy Markdown
Owner

@thoom thoom commented May 31, 2025

Fixes #64. Fixes #63 Fixes #59

Updates to Go 1.24.

thoom added 3 commits May 30, 2025 18:32
…o 1.24 - Update Dockerfile to use golang:1.24-alpine - Update GitHub Actions workflows to use Go 1.24.x - Update action versions (checkout@v4, setup-go@v5) - Fix YAML syntax errors in main.yml workflow - Fix Go 1.24 compatibility issues in output.go - Maintain all existing functionality including custom CA support
@github-actions
Copy link
Copy Markdown

🏷️ [bumpr]
Next version:0.16.0
Changes:0.15.1...thoom:feature/go-1.24-upgrade

@thoom thoom requested a review from Copilot May 31, 2025 01:20
@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud Bot commented May 31, 2025

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR upgrades the project to Go 1.24 and introduces changes to support custom CA certificates, inline PEM content for client certificates, and updates to CI/CD workflows.

  • Update Go version in go.mod, Dockerfile, and GitHub workflows.
  • Refactor client authentication handling to support an additional CA field and mixed inline/file path PEM content.
  • Update output functions to use Sprint instead of Sprintf and improve error messages in configuration loading.

Reviewed Changes

Copilot reviewed 13 out of 13 changed files in this pull request and generated no comments.

Show a summary per file
File Description
output/output.go Changed formatting calls from Sprintf to Sprint where no formatting is needed.
main.go Updated flag definitions and modified the BuildClientAuth call to include custom CA.
go.mod & Dockerfile Upgraded Go version to 1.24.
config/config.go & config_test.go Enhanced error messages with examples and added tests for YAML parsing failures.
client/* (including client.go) Refactored client certificate processing, added support for inline CA PEM content, and updated tests.
README.md Updated documentation for client authentication options using inline PEM or file paths.
.github/workflows/* Updated action versions and configuration to support Go 1.24.
.vscode/settings.json Added SonarLint connected project settings.
Comments suppressed due to low confidence (2)

client/client.go:21

  • The custom VerifyPeerCertificate callback bypasses all verification by always returning nil. Confirm that this is only activated in insecure contexts to avoid potential security risks.
VerifyPeerCertificate: func(rawCerts [][]byte, verifiedChains [][]*x509.Certificate) error { /* ... */ return nil }

output/output.go:40

  • Switching from Sprintf to Sprint removes any formatting capabilities. Please verify that no formatting placeholders are needed in the printed output.
fmt.Fprintln(bo.Out, color.New(c).Sprint(txt))

@thoom thoom merged commit 55184b2 into master May 31, 2025
5 checks passed
@thoom thoom deleted the feature/go-1.24-upgrade branch May 31, 2025 01:29
@github-actions
Copy link
Copy Markdown

🚀 [bumpr] Bumped!
New version:0.16.0
Changes:0.15.1...0.16.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Allow custom-ca Helpful Config error GHA Release is deprecated

2 participants