diff --git a/CHANGELOG.md b/CHANGELOG.md index 93fbf39..918b182 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,24 @@ Notable changes to this service, newest first, per release. This file is written for whoever runs the service or integrates against it. +## v0.2.0 + +The service now runs on **Go 1.27.4** and **azugo v0.50.2**. Nothing about the API or the +configuration changes. + +### Changed + +- **Go 1.27.4** (was 1.27.2), both in `go.mod` and as the image's default build toolchain + (`ARG GO_VERSION` in the `Dockerfile`). Rebuild the image to pick it up. +- **Libraries:** azugo → v0.50.2 (core v0.50.1), `go-authbyte` → v0.46.0, `go-platform-kit` → + v1.13.0, `go-sec-events` → v1.3.0, `go-gdpr-audit` → v1.2.0, `go-web-eid` → v0.16.0. +- **Request bodies are held to the framework's limit:** a body over `SERVER_MAX_REQUEST_BODY_SIZE` + (4 MiB when unset) is refused with 413. No route of this service sets a limit of its own; its + bodies are small. +- **Audit:** if a request body cannot be read when the audit step looks for the certificate's + subject, the response the caller already received is unchanged, the personal-data access record + for that request is skipped, and a warning is logged without any body content. + ## v0.1.2 A security release. **The service now builds with Go 1.27.2**, and its libraries move to their Go diff --git a/Dockerfile b/Dockerfile index 6754f29..b0da096 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -ARG GO_VERSION=1.27.2 +ARG GO_VERSION=1.27.4 FROM golang:${GO_VERSION} AS build WORKDIR /src diff --git a/audit/audit_test.go b/audit/audit_test.go index b2d03a2..1856257 100644 --- a/audit/audit_test.go +++ b/audit/audit_test.go @@ -2,6 +2,7 @@ package audit import ( "fmt" + "strings" "sync" "testing" "time" @@ -200,3 +201,71 @@ func TestMiddlewareDispatch(t *testing.T) { qt.Check(t, qt.Equals(sign.EventType, eventSigningCertificate)) qt.Check(t, qt.Equals(sign.Outcome, broker.OutcomeFailure)) } + +// reqCertSubject runs after the handler has answered. A body the framework will +// not read (over the request size limit) or one that is not a JSON object gives +// an empty subject and leaves the response and the security event as they are. +func TestReqCertSubjectBodyCases(t *testing.T) { + const limit = 64 + + tests := []struct { + name string + body []byte + }{ + {"over the limit", []byte(`{"certificate":"` + strings.Repeat("A", 4*limit) + `"}`)}, + {"malformed", []byte(`{"certificate":`)}, + {"not an object", []byte(`[1,2,3]`)}, + {"empty", nil}, + {"no certificate field", []byte(`{"other":"x"}`)}, + } + + for _, tt := range tests { + t.Run(tt.name, func(t *testing.T) { + sink := &captureSink{} + rec := New(secevents.NewEmitter(sink), nil, nil, zap.NewNop()) + + var subject string + var seen bool + + app := azugo.NewTestApp() + app.Use(func(next azugo.RequestHandler) azugo.RequestHandler { + return func(ctx *azugo.Context) { + ctx.SetMaxBodySize(limit) + next(ctx) + } + }) + app.Use(rec.Middleware()) + app.Post("/sign/certificate", func(ctx *azugo.Context) { + ctx.StatusCode(fasthttp.StatusOK) + ctx.Text("done") + }) + // The recorder acts on the same path; read the subject the way it does. + app.Post("/sign/finalize", func(ctx *azugo.Context) { + subject = reqCertSubject(ctx, "certificate") + seen = true + ctx.StatusCode(fasthttp.StatusOK) + ctx.Text("done") + }) + app.Start(t) + defer app.Stop() + tc := app.TestClient() + + resp, err := tc.Post("/sign/certificate", tt.body) + qt.Assert(t, qt.IsNil(err)) + qt.Check(t, qt.Equals(resp.StatusCode(), fasthttp.StatusOK)) + fasthttp.ReleaseResponse(resp) + + ev := sink.last() + qt.Assert(t, qt.IsNotNil(ev)) + qt.Check(t, qt.Equals(ev.EventType, eventSigningCertificate)) + qt.Check(t, qt.Equals(ev.Outcome, broker.OutcomeSuccess)) + + resp2, err := tc.Post("/sign/finalize", tt.body) + qt.Assert(t, qt.IsNil(err)) + qt.Check(t, qt.Equals(resp2.StatusCode(), fasthttp.StatusOK)) + fasthttp.ReleaseResponse(resp2) + qt.Check(t, qt.IsTrue(seen)) + qt.Check(t, qt.Equals(subject, "")) + }) + } +} diff --git a/audit/middleware.go b/audit/middleware.go index c91bfdd..b6b6299 100644 --- a/audit/middleware.go +++ b/audit/middleware.go @@ -97,9 +97,17 @@ func authorizedID(ctx *azugo.Context) string { // reqCertSubject extracts the eID national identifier from the first present // base64-DER certificate field in the request body, or "" when none can be // parsed. The raw id is returned for pseudonymization by the caller; it is never -// logged itself. +// logged itself. The handler has already answered when this runs, so a body +// that cannot be read (over the request size limit) leaves the response as it +// is: the subject is "" and a warning without any body content is logged. func reqCertSubject(ctx *azugo.Context, fields ...string) string { - body := ctx.Body.Bytes() + body, err := ctx.Body.Bytes() + if err != nil { + ctx.Log().Warn("audit: request body unreadable, certificate subject not recorded") + + return "" + } + if len(body) == 0 { return "" } diff --git a/go.mod b/go.mod index dd8e058..d54b738 100644 --- a/go.mod +++ b/go.mod @@ -1,47 +1,47 @@ module github.com/go-make-bytes/web-eid -go 1.27.2 +go 1.27.4 require ( - azugo.io/azugo v0.40.0 - azugo.io/core v0.40.0 - github.com/gmb-lib/go-authbyte v0.29.1 - github.com/gmb-lib/go-gdpr-audit v1.1.6 - github.com/gmb-lib/go-platform-kit v1.11.4 - github.com/gmb-lib/go-sec-events v1.2.2 - github.com/gmb-lib/go-web-eid v0.15.5 + azugo.io/azugo v0.50.2 + azugo.io/core v0.50.1 + github.com/gmb-lib/go-authbyte v0.46.0 + github.com/gmb-lib/go-gdpr-audit v1.2.0 + github.com/gmb-lib/go-platform-kit v1.13.0 + github.com/gmb-lib/go-sec-events v1.3.0 + github.com/gmb-lib/go-web-eid v0.16.0 github.com/go-quicktest/qt v1.102.0 github.com/spf13/cobra v1.10.2 github.com/spf13/viper v1.21.0 - github.com/valyala/fasthttp v1.75.0 + github.com/valyala/fasthttp v1.79.0 go.uber.org/zap v1.28.0 ) require ( - azugo.io/opentelemetry v0.40.0 // indirect - github.com/VictoriaMetrics/metrics v1.44.1 // indirect + azugo.io/opentelemetry v0.50.0 // indirect + github.com/VictoriaMetrics/metrics v1.45.0 // indirect github.com/cenkalti/backoff/v5 v5.0.3 // indirect - github.com/cenkalti/backoff/v7 v7.0.1 // indirect + github.com/cenkalti/backoff/v7 v7.0.3 // indirect github.com/cespare/xxhash/v2 v2.3.0 // indirect github.com/dgraph-io/ristretto/v2 v2.4.2 // indirect github.com/dustin/go-humanize v1.1.0 // indirect github.com/felixge/httpsnoop v1.1.0 // indirect github.com/fsnotify/fsnotify v1.10.1 // indirect - github.com/gabriel-vasile/mimetype v1.4.15 // indirect - github.com/go-jose/go-jose/v4 v4.1.5 // indirect + github.com/gabriel-vasile/mimetype v1.4.16 // indirect + github.com/go-jose/go-jose/v4 v4.1.9 // indirect github.com/go-logr/logr v1.4.4 // indirect github.com/go-logr/stdr v1.2.2 // indirect github.com/go-playground/locales v0.14.2 // indirect github.com/go-playground/universal-translator v0.18.2 // indirect - github.com/go-playground/validator/v10 v10.30.5 // indirect + github.com/go-playground/validator/v10 v10.30.6 // indirect github.com/go-viper/mapstructure/v2 v2.5.0 // indirect - github.com/goccy/go-json v0.11.2 // indirect + github.com/goccy/go-json v0.12.0 // indirect github.com/golang-jwt/jwt/v5 v5.3.1 // indirect github.com/google/go-cmp v0.7.0 // indirect github.com/google/uuid v1.6.0 // indirect - github.com/grpc-ecosystem/grpc-gateway/v2 v2.31.0 // indirect + github.com/grpc-ecosystem/grpc-gateway/v2 v2.34.0 // indirect github.com/inconshreveable/mousetrap v1.1.0 // indirect - github.com/klauspost/compress v1.20.1 // indirect + github.com/klauspost/compress v1.20.4 // indirect github.com/kr/pretty v0.3.1 // indirect github.com/kr/text v0.2.0 // indirect github.com/lafriks/http2 v0.6.1 // indirect @@ -49,7 +49,7 @@ require ( github.com/leodido/go-urn v1.5.0 // indirect github.com/mattn/go-colorable v0.1.16 // indirect github.com/mattn/go-isatty v0.0.24 // indirect - github.com/molecule-man/go-brrr v1.2.0 // indirect + github.com/molecule-man/go-brrr v1.3.1 // indirect github.com/oklog/ulid/v2 v2.1.2 // indirect github.com/pelletier/go-toml/v2 v2.4.3 // indirect github.com/pkg/errors v0.9.1 // indirect @@ -58,9 +58,9 @@ require ( github.com/sagikazarmark/locafero v0.12.0 // indirect github.com/spf13/afero v1.15.0 // indirect github.com/spf13/cast v1.10.0 // indirect - github.com/spf13/pflag v1.0.10 // indirect + github.com/spf13/pflag v1.1.0 // indirect github.com/subosito/gotenv v1.6.0 // indirect - github.com/valkey-io/valkey-go v1.0.78 // indirect + github.com/valkey-io/valkey-go v1.0.80 // indirect github.com/valyala/bytebufferpool v1.0.0 // indirect github.com/valyala/fastrand v1.1.0 // indirect github.com/valyala/histogram v1.2.0 // indirect @@ -84,13 +84,13 @@ require ( go.opentelemetry.io/proto/otlp v1.11.1 // indirect go.uber.org/atomic v1.12.0 // indirect go.uber.org/multierr v1.11.0 // indirect - go.yaml.in/yaml/v3 v3.0.5 // indirect - golang.org/x/crypto v0.58.0 // indirect - golang.org/x/net v0.61.0 // indirect - golang.org/x/sys v0.49.0 // indirect - golang.org/x/text v0.43.0 // indirect - google.golang.org/genproto/googleapis/api v0.0.0-20261005182115-fad411399dd8 // indirect - google.golang.org/genproto/googleapis/rpc v0.0.0-20261005182115-fad411399dd8 // indirect - google.golang.org/grpc v1.84.0 // indirect + go.yaml.in/yaml/v3 v3.0.6 // indirect + golang.org/x/crypto v0.59.0 // indirect + golang.org/x/net v0.62.0 // indirect + golang.org/x/sys v0.50.0 // indirect + golang.org/x/text v0.44.0 // indirect + google.golang.org/genproto/googleapis/api v0.0.0-20261116203732-fd2c7689a808 // indirect + google.golang.org/genproto/googleapis/rpc v0.0.0-20261116203732-fd2c7689a808 // indirect + google.golang.org/grpc v1.85.0 // indirect google.golang.org/protobuf v1.36.12 // indirect ) diff --git a/go.sum b/go.sum index c95b21a..20789ab 100644 --- a/go.sum +++ b/go.sum @@ -1,19 +1,19 @@ -azugo.io/azugo v0.40.0 h1:auUeGGFXPUKpLdxl0ELODkZIHe1fo77bH1QyXneTioA= -azugo.io/azugo v0.40.0/go.mod h1:Bqixn/Z31VyEr0dthchI8HGHsrFzB6inkybux7ZOR74= -azugo.io/core v0.40.0 h1:weaopsJuqPkSPJf8lj79dXdOt1N7Z42cQc+M+43PRXM= -azugo.io/core v0.40.0/go.mod h1:V9h/iwDaGTYda1IwIdCP+u0as/Bw+WGISWc6KS8V8Tc= -azugo.io/opentelemetry v0.40.0 h1:0JQdV++dtiOudwDo0DZ08CO2eU9CanBCfIUNiv/OOHY= -azugo.io/opentelemetry v0.40.0/go.mod h1:h04b9ZHl0vSy2wWf3k0Dik5EUQq+oLtnVvnMRwAHfzc= -github.com/VictoriaMetrics/metrics v1.44.1 h1:OMyGrMkhI3hnq+IpJ1gZK9VhXcsOjUX1CoOFv//bJ0I= -github.com/VictoriaMetrics/metrics v1.44.1/go.mod h1:xDM82ULLYCYdFRgQ2JBxi8Uf1+8En1So9YUwlGTOqTc= +azugo.io/azugo v0.50.2 h1:S0FnHGFwZ0XuBRBQM/Y0rhjgMq/+hZZcY1KX1eg/eMY= +azugo.io/azugo v0.50.2/go.mod h1:MP3dy12pZRHFXmyDPL0lgghARxFXMx48JqPsDeOf3lc= +azugo.io/core v0.50.1 h1:3P6qsow3l2pjQAFSuKsN0ET6R5ZgXaZRzvrKror5PWQ= +azugo.io/core v0.50.1/go.mod h1:5dTIUEN2nI5TfLhcRWje8sp6NbIWyKbOkh4HbfnPQck= +azugo.io/opentelemetry v0.50.0 h1:IseD0yQXtqycBW7jmjls9YKNZ6cS75OMBJt0R7h+Snw= +azugo.io/opentelemetry v0.50.0/go.mod h1:Ic0TJvyk03RQcdvdA6LUubkyk9lQVY0DAfJbKRUy2zU= +github.com/VictoriaMetrics/metrics v1.45.0 h1:Tv8dZRAjkO90rBTxYrWOHUWFBHsAKdKcZYmS/Wbo2EU= +github.com/VictoriaMetrics/metrics v1.45.0/go.mod h1:xDM82ULLYCYdFRgQ2JBxi8Uf1+8En1So9YUwlGTOqTc= github.com/bsm/ginkgo/v2 v2.12.0 h1:Ny8MWAHyOepLGlLKYmXG4IEkioBysk6GpaRTLC8zwWs= github.com/bsm/ginkgo/v2 v2.12.0/go.mod h1:SwYbGRRDovPVboqFv0tPTcG1sN61LM1Z4ARdbAV9g4c= github.com/bsm/gomega v1.27.10 h1:yeMWxP2pV2fG3FgAODIY8EiRE3dy0aeFYt4l7wh6yKA= github.com/bsm/gomega v1.27.10/go.mod h1:JyEr/xRbxbtgWNi8tIEVPUYZ5Dzef52k01W3YH0H+O0= github.com/cenkalti/backoff/v5 v5.0.3 h1:ZN+IMa753KfX5hd8vVaMixjnqRZ3y8CuJKRKj1xcsSM= github.com/cenkalti/backoff/v5 v5.0.3/go.mod h1:rkhZdG3JZukswDf7f0cwqPNk4K0sa+F97BxZthm/crw= -github.com/cenkalti/backoff/v7 v7.0.1 h1:+ulHti5s1d9QnfyOnLWVmQ/SaZ+TJQF9OdOI0i9BGZI= -github.com/cenkalti/backoff/v7 v7.0.1/go.mod h1:qcKBGwsu4hpxHtQ8tWYsQ+ifzx2+sS+Xx/3jfe30lI8= +github.com/cenkalti/backoff/v7 v7.0.3 h1:oJlXCmDgfNcGYViwioz1cZ1kHebejP4OLfJ/gqMQVWA= +github.com/cenkalti/backoff/v7 v7.0.3/go.mod h1:qcKBGwsu4hpxHtQ8tWYsQ+ifzx2+sS+Xx/3jfe30lI8= github.com/cespare/xxhash/v2 v2.3.0 h1:UL815xU9SqsFlibzuggzjXhog7bL6oX9BbNZnL2UFvs= github.com/cespare/xxhash/v2 v2.3.0/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs= github.com/cpuguy83/go-md2man/v2 v2.0.6/go.mod h1:oOW0eioCTA6cOiMLiUPZOpcVxMig6NIQQ7OS05n1F4g= @@ -30,20 +30,20 @@ github.com/frankban/quicktest v1.14.6 h1:7Xjx+VpznH+oBnejlPUj8oUpdxnVs4f8XU8WnHk github.com/frankban/quicktest v1.14.6/go.mod h1:4ptaffx2x8+WTWXmUCuVU6aPUX1/Mz7zb5vbUoiM6w0= github.com/fsnotify/fsnotify v1.10.1 h1:b0/UzAf9yR5rhf3RPm9gf3ehBPpf0oZKIjtpKrx59Ho= github.com/fsnotify/fsnotify v1.10.1/go.mod h1:TLheqan6HD6GBK6PrDWyDPBaEV8LspOxvPSjC+bVfgo= -github.com/gabriel-vasile/mimetype v1.4.15 h1:05iP/CYtZ/w455R/KZM6rZ5ieAdh99UPtd+d3YzLmaI= -github.com/gabriel-vasile/mimetype v1.4.15/go.mod h1:azpTcoLcDZRNgFou5j+APrqQx9HqVPWa6ijYQIIVswQ= -github.com/gmb-lib/go-authbyte v0.29.1 h1:SHszeV1MWVzxCRhjfnZ5HX//Yo/VuPzvxb+IexmKADg= -github.com/gmb-lib/go-authbyte v0.29.1/go.mod h1:jwMPCAi4nsVcAoXPLX/+83BqC07zAd9i3JNm2BZUuJc= -github.com/gmb-lib/go-gdpr-audit v1.1.6 h1:uefYBSz3KEIj22/+8Xo+1zWsemnWlunjtIowjCwZnv0= -github.com/gmb-lib/go-gdpr-audit v1.1.6/go.mod h1:YpmpElisKdAzkF5f7XSfKSVL7g9Vwgk4sjYLHMWBTJg= -github.com/gmb-lib/go-platform-kit v1.11.4 h1:SQiVq4OwAUE6D1+C977l/L2pqdZSnQACex+tE+pBUsg= -github.com/gmb-lib/go-platform-kit v1.11.4/go.mod h1:sfFN9cfCbeKYyHtm5pKWw+h9sejtncfyhjzwtmnoziU= -github.com/gmb-lib/go-sec-events v1.2.2 h1:UgkM4JoCVMnIvYC8X9hM3pcCEW0voz7++HlW8JEj7fs= -github.com/gmb-lib/go-sec-events v1.2.2/go.mod h1:2AZDHNJM6wO8gmec5KU+8JlFLPS2AkWQkF+aId6uM1M= -github.com/gmb-lib/go-web-eid v0.15.5 h1:/++XO5hWf//HymEWtz+Upo8XW0PMnPAlbWx6IX9YFFE= -github.com/gmb-lib/go-web-eid v0.15.5/go.mod h1:GqgZ87pblFo2bR9eoK3nDfVTK2tFQ14e25oranE3bcA= -github.com/go-jose/go-jose/v4 v4.1.5 h1:RjgjO2LOtWOJKUC5wpwY9LR3B3vwVAz6JS2YHfYU6eA= -github.com/go-jose/go-jose/v4 v4.1.5/go.mod h1:x4oUasVrzR7071A4TnHLGSPpNOm2a21K9Kf04k1rs08= +github.com/gabriel-vasile/mimetype v1.4.16 h1:5izNFuvA37st1dDRAcA7TtmngBmRgiIPDmTtiEvjx1E= +github.com/gabriel-vasile/mimetype v1.4.16/go.mod h1:3oFFwxX8kTklZwzIl2aQEDZT0lKY8xH92ST88bAwba4= +github.com/gmb-lib/go-authbyte v0.46.0 h1:T1c0Fx/gsf8hjI3ExI48o6G+c3royNzmdJctn5kyI2I= +github.com/gmb-lib/go-authbyte v0.46.0/go.mod h1:QZhlLpFzug6/gDRHRf3rUi3Xpr/fI0SkhsKxRkJDyPg= +github.com/gmb-lib/go-gdpr-audit v1.2.0 h1:Rt5LmhxOxIJZf5Nz+Va1sHumwzLB3R1fiRmlrmDmkKI= +github.com/gmb-lib/go-gdpr-audit v1.2.0/go.mod h1:KrQIKXTZ/LBw935XlKNATAM8jWjKtuBp0O6od200WPo= +github.com/gmb-lib/go-platform-kit v1.13.0 h1:DeoUXL4Eq309u9Ufhx9PleW/qMmkR8OXQoUHRcuAkYo= +github.com/gmb-lib/go-platform-kit v1.13.0/go.mod h1:FtcG128HmBeFcaO/+SSzxU9ZpkB52rhZFLJIYH2R9CI= +github.com/gmb-lib/go-sec-events v1.3.0 h1:ttnPVEHo54994amFuA9ppasfO54GMOiuUWKTfPy3+Vc= +github.com/gmb-lib/go-sec-events v1.3.0/go.mod h1:XS5KG84UYPrs/JU+ejo/E0mA2Zw1iqlQ0g+NQYd4+y0= +github.com/gmb-lib/go-web-eid v0.16.0 h1:j8m81ApSyOOeiAxPIhDyPUrHnwmgHOOu7RO4KK0WkT0= +github.com/gmb-lib/go-web-eid v0.16.0/go.mod h1:vs3wWtJ+HpHO2pxjsmh2A1/ECqzUibMg3gKS6GAl1XU= +github.com/go-jose/go-jose/v4 v4.1.9 h1:pKfeQkig1NmgK4hJrZYXLEYURXfoJB61Larw0uIW4gY= +github.com/go-jose/go-jose/v4 v4.1.9/go.mod h1:x4oUasVrzR7071A4TnHLGSPpNOm2a21K9Kf04k1rs08= github.com/go-logr/logr v1.2.2/go.mod h1:jdQByPbusPIv2/zmleS9BjJVeZ6kBagPoEUsqbVz/1A= github.com/go-logr/logr v1.4.4 h1:tG4xh9yMsRCAiodLVTxyrkzSZ9+o0L1Kg/+cPVcbP/8= github.com/go-logr/logr v1.4.4/go.mod h1:9T104GzyrTigFIr8wt5mBrctHMim0Nb2HLGrmQ40KvY= @@ -55,14 +55,14 @@ github.com/go-playground/locales v0.14.2 h1:d8UmcrM6Nip0hfGZKLGpAvZH37XB4TS0xzK9 github.com/go-playground/locales v0.14.2/go.mod h1:hxrqLVvrK65+Rwrd5Fc6F2O76J/NuW9t0sjnWqG1slY= github.com/go-playground/universal-translator v0.18.2 h1:LCsMLC9RzmbUMNUPVYD15dmcjwYAJhmX8mPZRW4rAVU= github.com/go-playground/universal-translator v0.18.2/go.mod h1:67VZIMp5lQpDWlnStOct22q1bkdJGJqHghbOtmkawxk= -github.com/go-playground/validator/v10 v10.30.5 h1:YyCXvVShZbs2Sm3Mb53eNOlhRXctSOzW5QJAouCTZL4= -github.com/go-playground/validator/v10 v10.30.5/go.mod h1:wEqiaov48pXX1kjhc3Da8y0M0Dtg/BK7gurFBLgwFrQ= +github.com/go-playground/validator/v10 v10.30.6 h1:E+mymlPNRzAMNz1FShrRvLeGWcprF5w305eLLgWieuo= +github.com/go-playground/validator/v10 v10.30.6/go.mod h1:jPLL8SKCXGe/g87QmEyNw3NO28nmGt5GCnZnufm7rj4= github.com/go-quicktest/qt v1.102.0 h1:HSQxCeh5YZH3EL3W39ixjtyaEhcWSXQHtHnMBzSs474= github.com/go-quicktest/qt v1.102.0/go.mod h1:p4lGIVX+8Wa6ZPNDvqcxq36XpUDLh42FLetFU7odllI= github.com/go-viper/mapstructure/v2 v2.5.0 h1:vM5IJoUAy3d7zRSVtIwQgBj7BiWtMPfmPEgAXnvj1Ro= github.com/go-viper/mapstructure/v2 v2.5.0/go.mod h1:oJDH3BJKyqBA2TXFhDsKDGDTlndYOZ6rGS0BRZIxGhM= -github.com/goccy/go-json v0.11.2 h1:jdZv93Tt4ioR8yW1CoNsvSxrcZlCXAUU1aZXN7gpXUA= -github.com/goccy/go-json v0.11.2/go.mod h1:3NdmfEkZlB7YI5UFw/qdFKq8XN1aiWR0YyRPWZNQltY= +github.com/goccy/go-json v0.12.0 h1:pD+oWouAiz4yruwXIt/iT+lOMeyhr1aTtxzaMP/RgVI= +github.com/goccy/go-json v0.12.0/go.mod h1:3NdmfEkZlB7YI5UFw/qdFKq8XN1aiWR0YyRPWZNQltY= github.com/golang-jwt/jwt/v5 v5.3.1 h1:kYf81DTWFe7t+1VvL7eS+jKFVWaUnK9cB1qbwn63YCY= github.com/golang-jwt/jwt/v5 v5.3.1/go.mod h1:fxCRLWMO43lRc8nhHWY6LGqRcf+1gQWArsqaEUEa5bE= github.com/golang/protobuf v1.5.4 h1:i7eJL8qZTpSEXOPTxNKhASYpMn+8e5Q6AdndVa1dWek= @@ -71,12 +71,12 @@ github.com/google/go-cmp v0.7.0 h1:wk8382ETsv4JYUZwIsn6YpYiWiBsYLSJiTsyBybVuN8= github.com/google/go-cmp v0.7.0/go.mod h1:pXiqmnSA92OHEEa9HXL2W4E7lf9JzCmGVUdgjX3N/iU= github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/grpc-ecosystem/grpc-gateway/v2 v2.31.0 h1:Bd7KaOxzULLxtZ/K5s1aLbWhR0+5RToO65TXHsf3bqQ= -github.com/grpc-ecosystem/grpc-gateway/v2 v2.31.0/go.mod h1:nN7ts3dFXKtCZWc//yfkpcQNKJABg16/uDVAZpLDalo= +github.com/grpc-ecosystem/grpc-gateway/v2 v2.34.0 h1:vzlTzzi4tHLa/JQdIE5LeXw6SEX5EVVhq/VPqKHnKOk= +github.com/grpc-ecosystem/grpc-gateway/v2 v2.34.0/go.mod h1:FHXQZnW5pA0txiMr3jApv9uNJzZ+7mYZd+u+PPenCFU= github.com/inconshreveable/mousetrap v1.1.0 h1:wN+x4NVGpMsO7ErUn/mUI3vEoE6Jt13X2s0bqwp9tc8= github.com/inconshreveable/mousetrap v1.1.0/go.mod h1:vpF70FUmC8bwa3OWnCshd2FqLfsEA9PFc4w1p2J65bw= -github.com/klauspost/compress v1.20.1 h1:T7kKElXUMXrUJ2E9QhQhxFtcK5rPyLdsGZvdbLMPdiQ= -github.com/klauspost/compress v1.20.1/go.mod h1:LUdAzn7YLVvxLpc7y3V1m40wESHTgc1422pwwBSKYuI= +github.com/klauspost/compress v1.20.4 h1:dD0v/bvxtjCBqQu6sx1TNWkalEY5lNTIe+HY9w8TeNI= +github.com/klauspost/compress v1.20.4/go.mod h1:LUdAzn7YLVvxLpc7y3V1m40wESHTgc1422pwwBSKYuI= github.com/klauspost/cpuid/v2 v2.4.0 h1:S6Hrbc7+ywsr0r+RLapfGBHfyefhCTwEh3A0tV913Dw= github.com/klauspost/cpuid/v2 v2.4.0/go.mod h1:19jmZ9mjzoF//ddRSUsv0zfBTJWh3QJh9FNxZTMrGxU= github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE= @@ -93,12 +93,12 @@ github.com/mattn/go-colorable v0.1.16 h1:+2YjeAe7xP1OQbZW1jERPWWCDLlNqFNCvjiqGiA github.com/mattn/go-colorable v0.1.16/go.mod h1:6LmQG8QLFO4G5z1gPvYEzlUgJ2wF+stgPZH1UqBm1s8= github.com/mattn/go-isatty v0.0.24 h1:tGZZoVgT/KiqK1c8ocVLeDS8BSWMRd47J3Lbz7vsReI= github.com/mattn/go-isatty v0.0.24/go.mod h1:nMCL3Zebbrt45jsMDgnfIwz6ydEQApk5oEI3HqDio6A= -github.com/molecule-man/go-brrr v1.2.0 h1:dOJU45BC3Gc2WXoxAW0rgCAgVuu2gruAOGncfieA0Jw= -github.com/molecule-man/go-brrr v1.2.0/go.mod h1:7ybW6/7gA3oKY45jOfVNjSJDtrr6ea4tzbsTkjmQDC4= +github.com/molecule-man/go-brrr v1.3.1 h1:EwaJUzRIlp/dFmIpzq4J17CA5Zi5OHo2vOGmu09hF1w= +github.com/molecule-man/go-brrr v1.3.1/go.mod h1:7ybW6/7gA3oKY45jOfVNjSJDtrr6ea4tzbsTkjmQDC4= github.com/oklog/ulid/v2 v2.1.2 h1:IEclFb9JNvzYA6MW2SCxbLzcHTVsfqm3PrqGQJH5zec= github.com/oklog/ulid/v2 v2.1.2/go.mod h1:rcEKHmBBKfef9DhnvX7y1HZBYxjXb0cP5ExxNsTT1QQ= -github.com/onsi/gomega v1.42.1 h1:iN1rCUX+44NZ1Dc97MPoeFYbFR0vh8zxoxMFwKdyZ6I= -github.com/onsi/gomega v1.42.1/go.mod h1:REff/hsDsodHoKlWsP2mAPhu1+5/6hVYNf9rIEBpeSg= +github.com/onsi/gomega v1.44.0 h1:eAiGl3Pw5jz5GQdDff0BcxYpAX1JxW8xD7mFUuwNfZQ= +github.com/onsi/gomega v1.44.0/go.mod h1:e/C2HwaZ1DhvjzXXuFhcR7hY7Sh9pl7MmoWKEjzwcdA= github.com/pborman/getopt v0.0.0-20170112200414-7148bc3a4c30/go.mod h1:85jBQOZwpVEaDAr341tbn15RS4fCAsIst0qp7i8ex1o= github.com/pelletier/go-toml/v2 v2.4.3 h1:GTRvJQutkOSftxIFD5xw9aepkYNuPWmVJpffdDPYVpY= github.com/pelletier/go-toml/v2 v2.4.3/go.mod h1:2gIqNv+qfxSVS7cM2xJQKtLSTLUE9V8t9Stt+h56mCY= @@ -120,20 +120,20 @@ github.com/spf13/cast v1.10.0/go.mod h1:jNfB8QC9IA6ZuY2ZjDp0KtFO2LZZlg4S/7bzP6qq github.com/spf13/cobra v1.10.2 h1:DMTTonx5m65Ic0GOoRY2c16WCbHxOOw6xxezuLaBpcU= github.com/spf13/cobra v1.10.2/go.mod h1:7C1pvHqHw5A4vrJfjNwvOdzYu0Gml16OCs2GRiTUUS4= github.com/spf13/pflag v1.0.9/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg= -github.com/spf13/pflag v1.0.10 h1:4EBh2KAYBwaONj6b2Ye1GiHfwjqyROoF4RwYO+vPwFk= -github.com/spf13/pflag v1.0.10/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg= +github.com/spf13/pflag v1.1.0 h1:6W6MbVUrnMb8PEhjkqwsVLY7ryuzRfFHF4mQd7L94ag= +github.com/spf13/pflag v1.1.0/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg= github.com/spf13/viper v1.21.0 h1:x5S+0EU27Lbphp4UKm1C+1oQO+rKx36vfCoaVebLFSU= github.com/spf13/viper v1.21.0/go.mod h1:P0lhsswPGWD/1lZJ9ny3fYnVqxiegrlNrEmgLjbTCAY= github.com/stretchr/testify v1.12.1 h1:EuwCh5fleGS7H32xRwO3wRGT7DxrDhLAT6FF8MpWDWE= github.com/stretchr/testify v1.12.1/go.mod h1:MDEgiDPPsNp5cuIrHPPCyornHKgEVbtFUmoNlxoYthg= github.com/subosito/gotenv v1.6.0 h1:9NlTDc1FTs4qu0DDq7AEtTPNw6SVm7uBMsUCUjABIf8= github.com/subosito/gotenv v1.6.0/go.mod h1:Dk4QP5c2W3ibzajGcXpNraDfq2IrhjMIvMSWPKKo0FU= -github.com/valkey-io/valkey-go v1.0.78 h1:1Ce8hRaaNXpKfqmqZQRhnbVh1eW8MGR873pdXVvE4y8= -github.com/valkey-io/valkey-go v1.0.78/go.mod h1:gvC/r2m3eW4Hbj0YnjogTzNtFdPSM/D+NCqen+5OABM= +github.com/valkey-io/valkey-go v1.0.80 h1:nyjeE1W9RpUU1KcsApBLlzjisZMVmgTQBGmlsuC0vtE= +github.com/valkey-io/valkey-go v1.0.80/go.mod h1:9M4jE0WGI4fBPijXwbmnO3T7hu5UCjI9ABx+jMCvekQ= github.com/valyala/bytebufferpool v1.0.0 h1:GqA5TC/0021Y/b9FG4Oi9Mr3q7XYx6KllzawFIhcdPw= github.com/valyala/bytebufferpool v1.0.0/go.mod h1:6bBcMArwyJ5K/AmCkWv1jt77kVWyCJ6HpOuEn7z0Csc= -github.com/valyala/fasthttp v1.75.0 h1:W3xrvNJHG60j2ZCjxpP8kkB+oPG8kh9/g1n4+3xUwNA= -github.com/valyala/fasthttp v1.75.0/go.mod h1:JiVkPRZU124PuPsreV/s9dZRgG2lRK7wNEikdQ0Rk4s= +github.com/valyala/fasthttp v1.79.0 h1:32ur91W4kWG+1s6x3oDlP8/KNmjlZZlUzSSC4p9LSWE= +github.com/valyala/fasthttp v1.79.0/go.mod h1:NQN+PlgP93+JRPnCiApN5XwnI24oMQf8kuzrxtsTy9A= github.com/valyala/fastrand v1.1.0 h1:f+5HkLW4rsgzdNoleUOB69hyT9IlD2ZQh9GyDMfb5G8= github.com/valyala/fastrand v1.1.0/go.mod h1:HWqCzkrkg6QXT8V2EXWvXCoow7vLwOFN002oeRzjapQ= github.com/valyala/histogram v1.2.0 h1:wyYGAZZt3CpwUiIb9AU/Zbllg1llXyrtApRS815OLoQ= @@ -189,26 +189,26 @@ go.uber.org/multierr v1.11.0/go.mod h1:20+QtiLqy0Nd6FdQB9TLXag12DsQkrbs3htMFfDN8 go.uber.org/zap v1.28.0 h1:IZzaP1Fv73/T/pBMLk4VutPl36uNC+OSUh3JLG3FIjo= go.uber.org/zap v1.28.0/go.mod h1:rDLpOi171uODNm/mxFcuYWxDsqWSAVkFdX4XojSKg/Q= go.yaml.in/yaml/v3 v3.0.4/go.mod h1:DhzuOOF2ATzADvBadXxruRBLzYTpT36CKvDb3+aBEFg= -go.yaml.in/yaml/v3 v3.0.5 h1:N6y/pJk8buWs9NY5ERU2HSMfm+IuD/OtfdAnq6kESPw= -go.yaml.in/yaml/v3 v3.0.5/go.mod h1:HVTZu1O7/Vkt2N+BFy8Zza+lnLsABggaTM2ZpNIGuKg= -golang.org/x/crypto v0.58.0 h1:COkYLr4k7nDI4r6QtMML2AfzeIswWHAJthLS6K/M/54= -golang.org/x/crypto v0.58.0/go.mod h1:Xh+kl5A+M0gMiWDytH2Hhr5Z7WbNCpv/eB/EFgfSk+w= -golang.org/x/net v0.61.0 h1:RR+6j/BTBCrggOLugxa+66R8FvoN6MHlzDlZIbN9YFw= -golang.org/x/net v0.61.0/go.mod h1:WgDCOTH8iwtB66T4/GfI94AHo/hhdb7Hah9NDseQfiI= -golang.org/x/sys v0.49.0 h1:XbzkgYJHdqh/8m2Uu0W/dQv8nktxx4BFHp1M0gROTXA= -golang.org/x/sys v0.49.0/go.mod h1:hNLxWAXmnKAxqDtdwIYC4bM9oQPEecfsnNMuSxOs3og= -golang.org/x/text v0.43.0 h1:1QivrlhwAsnMOcqgOdl9my7s9OyZl8O5/UGUTJVXoWc= -golang.org/x/text v0.43.0/go.mod h1:hbSIYA/amXcRXTFSZqh8tWHEoqRvvbKPJ2uz/KU+a+s= -golang.org/x/tools v0.51.0 h1:k4Xc/1Om9jwkBJBo4NVLMSARBoWtK10mx+W5BnXCeAI= -golang.org/x/tools v0.51.0/go.mod h1:9eEncMayCV6zRMGhR5eZEC2iBx98qWcF1HZ9Z7wJOoA= +go.yaml.in/yaml/v3 v3.0.6 h1:zcDfvjXEqTQmpjniUBLc91xYJMB2c4QOFxEF/LCEckM= +go.yaml.in/yaml/v3 v3.0.6/go.mod h1:HVTZu1O7/Vkt2N+BFy8Zza+lnLsABggaTM2ZpNIGuKg= +golang.org/x/crypto v0.59.0 h1:xS2jhqYbzNrpvkWP2YTDf4TJwBy3ykR03i8vFDxEc7c= +golang.org/x/crypto v0.59.0/go.mod h1:veDyUwATGs3c+vN3VfTbzViMGXeTBk3WyhBOkn+F/4U= +golang.org/x/net v0.62.0 h1:18ELalfM5+XNRwzM2nYqXsZQ9ByS1uhj2O/U7+5jqRY= +golang.org/x/net v0.62.0/go.mod h1:WgDCOTH8iwtB66T4/GfI94AHo/hhdb7Hah9NDseQfiI= +golang.org/x/sys v0.50.0 h1:dkKZEFTEKaLr1sjhs0WiKqoi8Jj5nHbS3Njmx1UoMJs= +golang.org/x/sys v0.50.0/go.mod h1:hNLxWAXmnKAxqDtdwIYC4bM9oQPEecfsnNMuSxOs3og= +golang.org/x/text v0.44.0 h1:YItdp/mQNGnsmrgpcdA5yQ3bnRxCfo/Tj/iByGW9GGo= +golang.org/x/text v0.44.0/go.mod h1:S4FR1waQ9LbjQTls97SyRjDaUUVkaM+cXwwuG/G+MwY= +golang.org/x/tools v0.52.1-0.20261106145633-d407941a339a h1:Yqozs0FNPRoPGS4hNGlrNwRENWr5H5nVG9sN/f+5640= +golang.org/x/tools v0.52.1-0.20261106145633-d407941a339a/go.mod h1:ItcP5UNaVGG+Yc4eIYmaFLNJ4soEopkx5Y2d4lcEurs= gonum.org/v1/gonum v0.17.0 h1:VbpOemQlsSMrYmn7T2OUvQ4dqxQXU+ouZFQsZOx50z4= gonum.org/v1/gonum v0.17.0/go.mod h1:El3tOrEuMpv2UdMrbNlKEh9vd86bmQ6vqIcDwxEOc1E= -google.golang.org/genproto/googleapis/api v0.0.0-20261005182115-fad411399dd8 h1:cFbkNigDInw+wVTXc+CyhUsoHGJCw0BR6mlNoRVfre0= -google.golang.org/genproto/googleapis/api v0.0.0-20261005182115-fad411399dd8/go.mod h1:QK6p7IgD7IZEZJBhhSUCib5X2vMOzlrGCGUw2XyVDh0= -google.golang.org/genproto/googleapis/rpc v0.0.0-20261005182115-fad411399dd8 h1:0SXBqli5dnuCKMjI/X3FM226zEaEa0GUcSCJtN1vL2o= -google.golang.org/genproto/googleapis/rpc v0.0.0-20261005182115-fad411399dd8/go.mod h1:OaIUM3+LpYcK2GXM4FTmhWoIq371Owdr+Cc7/BsYHHc= -google.golang.org/grpc v1.84.0 h1:soMyaPJ8pAak5PIQ0DGBUir0XRo2fRoMqhNWMLlLxO0= -google.golang.org/grpc v1.84.0/go.mod h1:ljCht0DrxQrXBDRTZp52Qxh3Ffk8CdYm2sj4O2QN2C0= +google.golang.org/genproto/googleapis/api v0.0.0-20261116203732-fd2c7689a808 h1:138uiCpAaz8IK/8xoJcj2MQUWL5MMtaV7ofVoQJpuY8= +google.golang.org/genproto/googleapis/api v0.0.0-20261116203732-fd2c7689a808/go.mod h1:Q/ieadaUFs1Xg9kiCENqJcpZMo0aTO4nUCWroI7gAdQ= +google.golang.org/genproto/googleapis/rpc v0.0.0-20261116203732-fd2c7689a808 h1:fTdQSdJnh58Hq9AG3truAGfWr7VEZ3tCU3DE5kDnTDE= +google.golang.org/genproto/googleapis/rpc v0.0.0-20261116203732-fd2c7689a808/go.mod h1:OaIUM3+LpYcK2GXM4FTmhWoIq371Owdr+Cc7/BsYHHc= +google.golang.org/grpc v1.85.0 h1:BPBCfuVRQ1qvBhKDOq9uvQllMvO59rKsYhXpp7Dd8vw= +google.golang.org/grpc v1.85.0/go.mod h1:0rQrOD58yjal/0EaVbGBANindixsCZNQPDV3VKtaKuQ= google.golang.org/protobuf v1.36.12 h1:pJOKDDOyeXErUroCihFAd5LQuwXBSpVnKGrj5o/fwxc= google.golang.org/protobuf v1.36.12/go.mod h1:HTf+CrKn2C3g5S8VImy6tdcUvCska2kB7j23XfzDpco= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=