feat: Upgrade Go version from 1.22 to 1.25.1 with enhanced security (#68)

This commit is contained in:
Copilot
2025-09-24 18:11:32 +03:00
committed by GitHub
parent a3d616e0d0
commit 73dc3fa761
6 changed files with 7 additions and 11 deletions

View File

@@ -1 +1 @@
1.23.0
1.25.1

View File

@@ -376,7 +376,7 @@ dockers:
- "ghcr.io/ivuorinen/f2b:latest-amd64"
dockerfile: |
FROM alpine:3.20
FROM alpine:3.22
RUN apk --no-cache add ca-certificates
COPY f2b /usr/local/bin/
ENTRYPOINT ["f2b"]
@@ -401,7 +401,7 @@ dockers:
- "ghcr.io/ivuorinen/f2b:latest-arm64"
dockerfile: |
FROM alpine:3.20
FROM alpine:3.22
RUN apk --no-cache add ca-certificates
COPY f2b /usr/local/bin/
ENTRYPOINT ["f2b"]
@@ -426,7 +426,7 @@ dockers:
- "ghcr.io/ivuorinen/f2b:latest-armv7"
dockerfile: |
FROM alpine:3.20
FROM alpine:3.22
RUN apk --no-cache add ca-certificates
COPY f2b /usr/local/bin/
ENTRYPOINT ["f2b"]

View File

@@ -4,7 +4,7 @@ A modern, secure, and extensible Go CLI tool for managing [Fail2Ban](https://www
Built with Go, featuring automatic sudo privilege management, shell completion, and comprehensive security.
[![MIT License](https://img.shields.io/badge/License-MIT-green.svg)](https://choosealicense.com/licenses/mit/)
[![Go Version](https://img.shields.io/badge/Go-%3E%3D1.20-blue.svg)](https://golang.org/)
[![Go Version](https://img.shields.io/badge/Go-%3E%3D1.25-blue.svg)](https://golang.org/)
[![Build Status](https://img.shields.io/badge/tests-passing-brightgreen.svg)](https://github.com/ivuorinen/f2b/actions)
---

View File

@@ -143,7 +143,7 @@ fail2ban/client.go
### Core Technologies
- **Language**: Go 1.20+
- **Language**: Go 1.25+
- **CLI Framework**: [Cobra](https://github.com/spf13/cobra)
- **Logging**: [Logrus](https://github.com/sirupsen/logrus) with structured output and contextual logging
- **Testing**: Go's built-in testing with comprehensive mocks and fluent testing framework

2
go.mod
View File

@@ -1,6 +1,6 @@
module github.com/ivuorinen/f2b
go 1.22
go 1.25
require (
github.com/hashicorp/go-version v1.7.0

4
go.sum
View File

@@ -11,12 +11,8 @@ github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZN
github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM=
github.com/sirupsen/logrus v1.9.3 h1:dueUQJ1C2q9oE3F7wvmSGAaVtTmUizReu6fjN8uqzbQ=
github.com/sirupsen/logrus v1.9.3/go.mod h1:naHLuLoDiP4jHNo9R0sCBMtWGeIprob74mVsIT4qYEQ=
github.com/spf13/cobra v1.9.1 h1:CXSaggrXdbHK9CF+8ywj8Amf7PBRmPCOJugH954Nnlo=
github.com/spf13/cobra v1.9.1/go.mod h1:nDyEzZ8ogv936Cinf6g1RU9MRY64Ir93oCnqb9wxYW0=
github.com/spf13/cobra v1.10.1 h1:lJeBwCfmrnXthfAupyUTzJ/J4Nc1RsHC/mSRU2dll/s=
github.com/spf13/cobra v1.10.1/go.mod h1:7SmJGaTHFVBY0jW4NXGluQoLvhqFQM+6XSKD+P4XaB0=
github.com/spf13/pflag v1.0.6 h1:jFzHGLGAlb3ruxLB8MhbI6A8+AQX/2eW4qeyNZXNp2o=
github.com/spf13/pflag v1.0.6/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg=
github.com/spf13/pflag v1.0.9 h1:9exaQaMOCwffKiiiYk6/BndUBv+iRViNW+4lEMi0PvY=
github.com/spf13/pflag v1.0.9/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg=
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=