Skip to content

Releases

v3.0.1

Choose a tag to compare

@github-actions github-actions released this 23 Nov 21:08
f482380

3.0.1 (2026-11-23)

Bug Fixes

  • add the /v3 suffix to the module path (#16) (b4bec0f)

v3.0.0

Choose a tag to compare

@github-actions github-actions released this 16 Nov 15:06
b21d521

3.0.0 (2026-11-16)

⚠ BREAKING CHANGES

  • the HTTP API, the configuration variables and the database schema are not compatible with 2.x. See the migration guide.

Features

  • add the init tool and the resource generator (122950b)
  • rewrite the core around feature packages (4247ac9)

Bug Fixes

  • repair the Docker build and harden CI (#12) (f06c837)
  • return timestamps in UTC on every database driver (b586f75)

Documentation

  • add the project website (0979ef7)
  • rewrite the README for v3 and seed the changelog (2fe3065)

v2.0.1 — Security fixes

Choose a tag to compare

@antoniopaya22 antoniopaya22 released this 13 Oct 11:51
61a63bb

Security release. Upgrading is recommended for every project based on this template.

Security

  • Client IP spoofing: chi's middleware.RealIP trusted X-Forwarded-For / X-Real-IP headers that clients can forge (GHSA-3fxj-6jh8-hvhx). The router now resolves the client IP from the TCP peer by default, or from the entry added by your own proxies when HTTP_TRUSTED_PROXIES is set. Request logs use the resolved client_ip.
  • Vulnerable dependencies: govulncheck reported 8 reachable vulnerabilities (chi, kin-openapi, pgx, x/text) plus others in x/crypto and x/sys. All direct dependencies are upgraded; govulncheck now reports none affecting the code.

Tooling

  • CI runs govulncheck and uses the latest Go 1.26 patch release.
  • CodeQL code scanning, OpenSSF Scorecard and grouped Dependabot updates.
  • SECURITY.md with private vulnerability reporting.

Upgrade notes

  • New optional setting HTTP_TRUSTED_PROXIES (default 0). Set it to the number of reverse proxies in front of the API if you need the real client IP behind a load balancer.

Full changelog: 2.0.0...2.0.1

v2.0.0 — Modern Go 1.26 rewrite

Choose a tag to compare

@antoniopaya22 antoniopaya22 released this 13 Oct 11:20
ee28796

A complete rewrite of the template on modern Go. The legacy Gin-based v1 remains available in the 1.0.0 tag.

Highlights

  • Go 1.26, standard-library-first bootstrap with graceful shutdown
  • chi router with request IDs, timeouts, structured slog logging and CORS
  • OpenAPI 3.1 contract as the source of truth, with request and response validation and interactive docs at /docs
  • JWT authentication (golang-jwt/jwt/v5) and a first-admin bootstrap flow
  • PostgreSQL for production (pgx/v5) with SQLite kept for local development, plus versioned migrations
  • Service and repository layers with explicit context.Context propagation
  • Health endpoints (/health/live, /health/ready), Prometheus metrics and optional pprof
  • Table-driven unit tests, integration tests against PostgreSQL, go vet, golangci-lint and GitHub Actions CI

Breaking changes

  • Gin has been replaced by chi; the HTTP layer, project layout and configuration are new.
  • The Go module path is now github.com/antoniopaya22/go-rest-template (previously github.com/antonioalfa22/go-rest-template).

Other

  • Licensed under MIT.

Full changelog: 1.0.0...2.0.0

v1.0.0

Choose a tag to compare

@antoniopaya22 antoniopaya22 released this 11 Sep 09:35
Updated template