mirror of
https://github.com/ivuorinen/f2b.git
synced 2026-01-25 19:03:58 +00:00
feat: Upgrade Go version from 1.22 to 1.25.1 with enhanced security (#68)
This commit is contained in:
@@ -1 +1 @@
|
||||
1.23.0
|
||||
1.25.1
|
||||
|
||||
@@ -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"]
|
||||
|
||||
@@ -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.
|
||||
|
||||
[](https://choosealicense.com/licenses/mit/)
|
||||
[](https://golang.org/)
|
||||
[](https://golang.org/)
|
||||
[](https://github.com/ivuorinen/f2b/actions)
|
||||
|
||||
---
|
||||
|
||||
@@ -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
2
go.mod
@@ -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
4
go.sum
@@ -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=
|
||||
|
||||
Reference in New Issue
Block a user