From 373a5cd9214e06e98e61c2922eeeb71308325308 Mon Sep 17 00:00:00 2001 From: txix Date: Fri, 25 Sep 2026 14:17:44 +0300 Subject: [PATCH] 2026-09-25 14:17:44: merge [main:5c8a554d4ffba92695a752c19539ee54ac6a125f]; --- .version | 2 +- changelog.md | 2 + cmd/migrate/main.go | 2 +- cmd/migrate/migration/runner.go | 2 +- controller/api/config.go | 2 +- controller/api/config_history.go | 2 +- controller/api/config_schema.go | 2 +- controller/api/variable.go | 2 +- controller/metrics.go | 2 +- controller/module.go | 2 +- entity/errors.go | 2 +- entity/xtypes/json.go | 2 +- entity/xtypes/time.go | 2 +- go.mod | 68 +++++----- go.sum | 170 +++++++++++-------------- helpers/helpers.go | 2 +- main.go | 7 +- repository/backend.go | 2 +- repository/config.go | 2 +- repository/config_history.go | 2 +- repository/config_schema.go | 2 +- repository/event.go | 2 +- repository/module.go | 2 +- repository/variable.go | 2 +- routes/routes.go | 62 ++++++++- service/api/config.go | 2 +- service/api/config_history.go | 2 +- service/api/config_schema.go | 2 +- service/api/module.go | 27 +++- service/event/cleaner.go | 2 +- service/event/compactor.go | 3 +- service/event/handler.go | 2 +- service/event/worker.go | 2 +- service/metrics/service.go | 2 +- service/module/backend/backend.go | 2 +- service/module/backend/cleaner.go | 2 +- service/module/emitter.go | 2 +- service/module/service.go | 2 +- service/rqlite/config_flags.go | 2 +- service/rqlite/credentials.go | 2 +- service/rqlite/db/db.go | 2 +- service/rqlite/goose_store/store.go | 2 +- service/rqlite/internal/rtls/config.go | 2 +- service/rqlite/main.go | 2 +- service/rqlite/runner.go | 2 +- service/startup/service.go | 2 +- service/subscription/service.go | 2 +- service/variable/service.go | 2 +- tests/acceptance_test.go | 2 +- 49 files changed, 236 insertions(+), 187 deletions(-) diff --git a/.version b/.version index 30291cb..afad818 100644 --- a/.version +++ b/.version @@ -1 +1 @@ -3.10.0 +3.11.0 diff --git a/changelog.md b/changelog.md index 40a1ecd..2ec007d 100644 --- a/changelog.md +++ b/changelog.md @@ -1,3 +1,5 @@ +### v3.11.0 +* Добавлены `admin` permission к endpoint'ам ### v3.10.0 * событие `MODULE_READY` теперь может быть обработано несколько раз, обновляя полученные данные об инстансе модуля ### v3.9.3 diff --git a/cmd/migrate/main.go b/cmd/migrate/main.go index 7fe25cc..e3f4337 100644 --- a/cmd/migrate/main.go +++ b/cmd/migrate/main.go @@ -18,9 +18,9 @@ import ( "github.com/jmoiron/sqlx" _ "github.com/mattn/go-sqlite3" - "github.com/pkg/errors" "github.com/txix-open/isp-kit/app" "github.com/txix-open/isp-kit/db" + "github.com/txix-open/isp-kit/errors" "isp-config-service/entity" "isp-config-service/entity/xtypes" "isp-config-service/migrate/migration" diff --git a/cmd/migrate/migration/runner.go b/cmd/migrate/migration/runner.go index 82bb783..1f57700 100644 --- a/cmd/migrate/migration/runner.go +++ b/cmd/migrate/migration/runner.go @@ -9,8 +9,8 @@ import ( "strings" "time" - "github.com/pkg/errors" "github.com/pressly/goose/v3" + "github.com/txix-open/isp-kit/errors" "github.com/txix-open/isp-kit/log" ) diff --git a/controller/api/config.go b/controller/api/config.go index 42b48a3..2f354bf 100644 --- a/controller/api/config.go +++ b/controller/api/config.go @@ -5,7 +5,7 @@ import ( "context" "strconv" - "github.com/pkg/errors" + "github.com/txix-open/isp-kit/errors" "github.com/txix-open/isp-kit/grpc" "github.com/txix-open/isp-kit/grpc/apierrors" "google.golang.org/grpc/metadata" diff --git a/controller/api/config_history.go b/controller/api/config_history.go index 63d2eec..73bb44a 100644 --- a/controller/api/config_history.go +++ b/controller/api/config_history.go @@ -6,7 +6,7 @@ import ( "isp-config-service/domain" "isp-config-service/entity" - "github.com/pkg/errors" + "github.com/txix-open/isp-kit/errors" "github.com/txix-open/isp-kit/grpc/apierrors" ) diff --git a/controller/api/config_schema.go b/controller/api/config_schema.go index 1594871..c801185 100644 --- a/controller/api/config_schema.go +++ b/controller/api/config_schema.go @@ -6,7 +6,7 @@ import ( "isp-config-service/domain" "isp-config-service/entity" - "github.com/pkg/errors" + "github.com/txix-open/isp-kit/errors" "github.com/txix-open/isp-kit/grpc/apierrors" ) diff --git a/controller/api/variable.go b/controller/api/variable.go index 89aef8c..4f2a3c5 100644 --- a/controller/api/variable.go +++ b/controller/api/variable.go @@ -4,7 +4,7 @@ package api import ( "context" - "github.com/pkg/errors" + "github.com/txix-open/isp-kit/errors" "github.com/txix-open/isp-kit/grpc/apierrors" _ "github.com/txix-open/isp-kit/grpc/apierrors" "isp-config-service/domain" diff --git a/controller/metrics.go b/controller/metrics.go index a3536e5..7648660 100644 --- a/controller/metrics.go +++ b/controller/metrics.go @@ -3,7 +3,7 @@ package controller import ( "context" - "github.com/pkg/errors" + "github.com/txix-open/isp-kit/errors" "github.com/txix-open/isp-kit/http/apierrors" "isp-config-service/domain" ) diff --git a/controller/module.go b/controller/module.go index 452ac4e..a0cc248 100644 --- a/controller/module.go +++ b/controller/module.go @@ -3,10 +3,10 @@ package controller import ( "context" - "github.com/pkg/errors" "github.com/txix-open/etp/v4" "github.com/txix-open/etp/v4/msg" "github.com/txix-open/isp-kit/cluster" + "github.com/txix-open/isp-kit/errors" "github.com/txix-open/isp-kit/json" "github.com/txix-open/isp-kit/log" "isp-config-service/helpers" diff --git a/entity/errors.go b/entity/errors.go index 55da7b1..69075dd 100644 --- a/entity/errors.go +++ b/entity/errors.go @@ -1,7 +1,7 @@ package entity import ( - "github.com/pkg/errors" + "github.com/txix-open/isp-kit/errors" ) var ( diff --git a/entity/xtypes/json.go b/entity/xtypes/json.go index 29d3dce..ce741f2 100644 --- a/entity/xtypes/json.go +++ b/entity/xtypes/json.go @@ -3,7 +3,7 @@ package xtypes import ( "strconv" - "github.com/pkg/errors" + "github.com/txix-open/isp-kit/errors" "github.com/txix-open/isp-kit/json" ) diff --git a/entity/xtypes/time.go b/entity/xtypes/time.go index d578271..9f3ed58 100644 --- a/entity/xtypes/time.go +++ b/entity/xtypes/time.go @@ -4,7 +4,7 @@ import ( "strconv" "time" - "github.com/pkg/errors" + "github.com/txix-open/isp-kit/errors" ) type Time time.Time diff --git a/go.mod b/go.mod index e1b6401..fb4cae5 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module isp-config-service -go 1.26 +go 1.26.0 replace ( github.com/armon/go-metrics => github.com/hashicorp/go-metrics v0.5.1 @@ -10,20 +10,19 @@ replace ( require ( github.com/Masterminds/squirrel v1.5.4 github.com/google/uuid v1.6.0 - github.com/pkg/errors v0.9.1 - github.com/pressly/goose/v3 v3.27.2 - github.com/prometheus/client_golang v1.23.2 + github.com/pressly/goose/v3 v3.27.3 + github.com/prometheus/client_golang v1.24.1 github.com/rqlite/gorqlite v0.0.0-20250609141355-ac86a4a1c9a8 github.com/rqlite/rqlite-disco-clients v0.0.0-20250205044118-8ada2b350099 github.com/rqlite/rqlite/v10 v10.2.7 - github.com/stretchr/testify v1.11.1 + github.com/stretchr/testify v1.12.1 github.com/tidwall/gjson v1.18.0 - github.com/txix-open/etp/v4 v4.1.1 + github.com/txix-open/etp/v4 v4.1.3 github.com/txix-open/go-cmp v0.0.0-20240401171944-16b203530f60 - github.com/txix-open/isp-kit v1.71.1 + github.com/txix-open/isp-kit v1.74.1 github.com/xeipuuv/gojsonschema v1.2.0 golang.org/x/sync v0.22.0 - google.golang.org/grpc v1.82.1 + google.golang.org/grpc v1.83.2 ) require ( @@ -49,20 +48,19 @@ require ( github.com/aws/smithy-go v1.27.2 // indirect github.com/bahlo/generic-list-go v0.2.0 // indirect github.com/beorn7/perks v1.0.1 // indirect - github.com/buger/jsonparser v1.2.0 // indirect + github.com/buger/jsonparser v1.6.1 // indirect github.com/cenkalti/backoff/v5 v5.0.3 // indirect github.com/cespare/xxhash/v2 v2.3.0 // indirect github.com/coder/websocket v1.8.15 // indirect - github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect github.com/fatih/color v1.19.0 // indirect - github.com/gabriel-vasile/mimetype v1.4.13 // indirect - github.com/getsentry/sentry-go v0.47.0 // indirect - github.com/go-faker/faker/v4 v4.9.0 // indirect - github.com/go-logr/logr v1.4.3 // indirect + github.com/gabriel-vasile/mimetype v1.4.15 // indirect + github.com/getsentry/sentry-go v0.49.0 // indirect + github.com/go-faker/faker/v4 v4.11.0 // 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.1 // indirect github.com/go-playground/universal-translator v0.18.1 // indirect - github.com/grpc-ecosystem/grpc-gateway/v2 v2.29.0 // indirect + github.com/grpc-ecosystem/grpc-gateway/v2 v2.30.0 // indirect github.com/hashicorp/go-hclog v1.6.3 // indirect github.com/hashicorp/go-immutable-radix v1.3.1 // indirect github.com/hashicorp/go-metrics v0.6.0 // indirect @@ -72,26 +70,25 @@ require ( github.com/hashicorp/golang-lru v1.0.2 // indirect github.com/hashicorp/raft v1.7.3 // indirect github.com/json-iterator/go v1.1.12 // indirect - github.com/klauspost/compress v1.19.0 // indirect + github.com/klauspost/compress v1.19.2 // indirect github.com/lann/builder v0.0.0-20180802200727-47ae307949d0 // indirect github.com/lann/ps v0.0.0-20150810152359-62de8c46ede0 // indirect - github.com/leodido/go-urn v1.4.0 // indirect + github.com/leodido/go-urn v1.5.0 // indirect github.com/mailru/easyjson v0.9.2 // indirect github.com/mattn/go-colorable v0.1.15 // indirect - github.com/mattn/go-isatty v0.0.22 // indirect + github.com/mattn/go-isatty v0.0.23 // indirect github.com/mattn/go-sqlite3 v1.14.47 // indirect github.com/mfridman/interpolate v0.0.2 // indirect github.com/mitchellh/mapstructure v1.5.0 // indirect github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect github.com/modern-go/reflect2 v1.0.2 // indirect github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect - github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect github.com/prometheus/client_model v0.6.2 // indirect - github.com/prometheus/common v0.69.0 // indirect + github.com/prometheus/common v0.70.1 // indirect github.com/prometheus/procfs v0.21.1 // indirect github.com/rqlite/raft-boltdb/v2 v2.0.0-20230523104317-c08e70f4de48 // indirect github.com/rqlite/sql v0.0.0-20260224021119-1b2524a41372 // indirect - github.com/sethvargo/go-retry v0.3.0 // indirect + github.com/sethvargo/go-retry v0.4.0 // indirect github.com/tidwall/match v1.2.0 // indirect github.com/tidwall/pretty v1.2.1 // indirect github.com/txix-open/bellows v1.2.0 // indirect @@ -102,23 +99,24 @@ require ( github.com/xeipuuv/gojsonreference v0.0.0-20180127040603-bd5ef7bd5415 // indirect go.etcd.io/bbolt v1.5.0 // indirect go.opentelemetry.io/auto/sdk v1.2.1 // indirect - go.opentelemetry.io/contrib/instrumentation/net/http/httptrace/otelhttptrace v0.69.0 // indirect - go.opentelemetry.io/otel v1.44.0 // indirect - go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.44.0 // indirect - go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp v1.44.0 // indirect - go.opentelemetry.io/otel/metric v1.44.0 // indirect - go.opentelemetry.io/otel/sdk v1.44.0 // indirect - go.opentelemetry.io/otel/trace v1.44.0 // indirect - go.opentelemetry.io/proto/otlp v1.10.0 // indirect + go.opentelemetry.io/contrib/instrumentation/net/http/httptrace/otelhttptrace v0.71.0 // indirect + go.opentelemetry.io/otel v1.46.0 // indirect + go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.46.0 // indirect + go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp v1.46.0 // indirect + go.opentelemetry.io/otel/metric v1.46.0 // indirect + go.opentelemetry.io/otel/sdk v1.46.0 // indirect + go.opentelemetry.io/otel/trace v1.46.0 // indirect + go.opentelemetry.io/proto/otlp v1.11.0 // indirect go.uber.org/multierr v1.11.0 // indirect go.uber.org/zap v1.28.0 // indirect - golang.org/x/crypto v0.54.0 // indirect - golang.org/x/net v0.57.0 // indirect + go.yaml.in/yaml/v3 v3.0.5 // indirect + golang.org/x/crypto v0.55.0 // indirect + golang.org/x/net v0.58.0 // indirect golang.org/x/sys v0.47.0 // indirect - golang.org/x/text v0.40.0 // indirect - google.golang.org/genproto/googleapis/api v0.0.0-20260630182238-925bb5da69e7 // indirect - google.golang.org/genproto/googleapis/rpc v0.0.0-20260724162435-b2f20204f0df // indirect - google.golang.org/protobuf v1.36.11 // indirect + golang.org/x/text v0.41.0 // indirect + google.golang.org/genproto/googleapis/api v0.0.0-20260825221802-da73d73af1c5 // indirect + google.golang.org/genproto/googleapis/rpc v0.0.0-20260825221802-da73d73af1c5 // indirect + google.golang.org/protobuf v1.36.12 // indirect gopkg.in/natefinch/lumberjack.v2 v2.2.1 // indirect gopkg.in/yaml.v3 v3.0.1 // indirect ) diff --git a/go.sum b/go.sum index 9d805c2..b5187fc 100644 --- a/go.sum +++ b/go.sum @@ -52,8 +52,8 @@ github.com/beorn7/perks v1.0.0/go.mod h1:KWe93zE9D1o94FZ5RNwFwVgaQK1VOXiVxmqh+Ce github.com/beorn7/perks v1.0.1 h1:VlbKKnNfV8bJzeqoa4cOKqO6bYr3WgKZxO8Z16+hsOM= github.com/beorn7/perks v1.0.1/go.mod h1:G2ZrVWU2WbWT9wwq4/hrbKbnv/1ERSJQ0ibhJ6rlkpw= github.com/boltdb/bolt v1.3.1/go.mod h1:clJnj/oiGkjum5o1McbSZDSLxVThjynRyGBgiAx27Ps= -github.com/buger/jsonparser v1.2.0 h1:4EFcvK1kD4jyj6YqNK6skK6w+y7FHHBR+XBCtxwu/6g= -github.com/buger/jsonparser v1.2.0/go.mod h1:6RYKKt7H4d4+iWqouImQ9R2FZql3VbhNgx27UK13J/0= +github.com/buger/jsonparser v1.6.1 h1:I0phFv0PlbLHnM7TZAVjZ2MJ2/eWRTDyuO7GLR98IEs= +github.com/buger/jsonparser v1.6.1/go.mod h1:6RYKKt7H4d4+iWqouImQ9R2FZql3VbhNgx27UK13J/0= 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/cespare/xxhash/v2 v2.1.1/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs= @@ -65,30 +65,28 @@ github.com/coder/websocket v1.8.15 h1:6B2JPeOGlpff2Uz6vOEH1Vzpi0iUz20A+lPVhPHtNU github.com/coder/websocket v1.8.15/go.mod h1:NX3SzP+inril6yawo5CQXx8+fk145lPDC6pumgx0mVg= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= -github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc h1:U9qPSI2PIWSS1VwoXQT9A3Wy9MM3WgvqSxFWenqJduM= -github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/dustin/go-humanize v1.0.1 h1:GzkhY7T5VNhEkwH0PVJgjz+fX1rhBrR7pRT3mDkpeCY= github.com/dustin/go-humanize v1.0.1/go.mod h1:Mu1zIs6XwVuF/gI1OepvI0qD18qycQx+mFykh5fBlto= github.com/fatih/color v1.13.0/go.mod h1:kLAiJbzzSOZDVNGyDpeOxJ47H46qBXwg5ILebYFFOfk= github.com/fatih/color v1.19.0 h1:Zp3PiM21/9Ld6FzSKyL5c/BULoe/ONr9KlbYVOfG8+w= github.com/fatih/color v1.19.0/go.mod h1:zNk67I0ZUT1bEGsSGyCZYZNrHuTkJJB+r6Q9VuMi0LE= -github.com/felixge/httpsnoop v1.0.4 h1:NFTV2Zj1bL4mc9sqWACXbQFVBBg2W3GPvqp8/ESS2Wg= -github.com/felixge/httpsnoop v1.0.4/go.mod h1:m8KPJKqk1gH5J9DgRY2ASl2lWCfGKXixSwevea8zH2U= -github.com/gabriel-vasile/mimetype v1.4.13 h1:46nXokslUBsAJE/wMsp5gtO500a4F3Nkz9Ufpk2AcUM= -github.com/gabriel-vasile/mimetype v1.4.13/go.mod h1:d+9Oxyo1wTzWdyVUPMmXFvp4F9tea18J8ufA774AB3s= -github.com/getsentry/sentry-go v0.47.0 h1:AnSMSyrYA5qZCIN/2xpgAAwv63sVULV+vBq37ajouc8= -github.com/getsentry/sentry-go v0.47.0/go.mod h1:h+b4VHpKnK7aUXB5wc+KDnPgp9ZtfliRD4eV85FbiSA= +github.com/felixge/httpsnoop v1.1.0 h1:3YtUj32ZZkqZtt3sZZsClsymw/QDuVfpNhoA31zeORc= +github.com/felixge/httpsnoop v1.1.0/go.mod h1:Zqxgdd+1Rkcz8euOqdr7lqgCRJztwr5hp9vDSi5UZCE= +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/getsentry/sentry-go v0.49.0 h1:Ehejknu1l023Ub7QoRBVLAI7g3Jnhqku4oWx4B4Sh5s= +github.com/getsentry/sentry-go v0.49.0/go.mod h1:nuMJAoCfe1u0Bts2ocyNI+TW8HT84vRMqwA5Qq/SKUI= github.com/go-errors/errors v1.4.2 h1:J6MZopCL4uSllY1OfXM374weqZFFItUbrImctkmUxIA= github.com/go-errors/errors v1.4.2/go.mod h1:sIVyrIiJhuEF+Pj9Ebtd6P/rEYROXFi3BopGUQ5a5Og= -github.com/go-faker/faker/v4 v4.9.0 h1:a4HXLwueuTCtgF93VpUsl8Zd2nG1VH2SgNWDPVEBg5U= -github.com/go-faker/faker/v4 v4.9.0/go.mod h1:u1dIRP5neLB6kTzgyVjdBOV5R1uP7BdxkcWk7tiKQXk= +github.com/go-faker/faker/v4 v4.11.0 h1:HeIFTzafXsgrlxKE2QySGGTQocfGdQ8sGqU2CXvs120= +github.com/go-faker/faker/v4 v4.11.0/go.mod h1:VFIEwWDd16EdYDLF6NJ5gAAzEp7vz5LgKgJ2iZ17Tdg= github.com/go-kit/kit v0.8.0/go.mod h1:xBxKIO96dXMWWy0MnWVtmwkA9/13aqxPnvrjFYMA2as= github.com/go-kit/kit v0.9.0/go.mod h1:xBxKIO96dXMWWy0MnWVtmwkA9/13aqxPnvrjFYMA2as= github.com/go-logfmt/logfmt v0.3.0/go.mod h1:Qt1PoO58o5twSAckw1HlFXLmHsOX5/0LbT9GBnD5lWE= github.com/go-logfmt/logfmt v0.4.0/go.mod h1:3RMwSq7FuexP4Kalkev3ejPJsZTpXXBr9+V4qmtdjCk= github.com/go-logr/logr v1.2.2/go.mod h1:jdQByPbusPIv2/zmleS9BjJVeZ6kBagPoEUsqbVz/1A= -github.com/go-logr/logr v1.4.3 h1:CjnDlHq8ikf6E492q6eKboGOC0T8CDaOvkHCIg8idEI= -github.com/go-logr/logr v1.4.3/go.mod h1:9T104GzyrTigFIr8wt5mBrctHMim0Nb2HLGrmQ40KvY= +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= github.com/go-logr/stdr v1.2.2 h1:hSWxHoqTgW2S2qGc0LTAI563KZ5YKYRhT3MFKZMbjag= github.com/go-logr/stdr v1.2.2/go.mod h1:mMo/vtBO5dYbehREoey6XUKy/eSumjCCveDpRre4VKE= github.com/go-playground/assert/v2 v2.2.0 h1:JvknZsQTYeFEAhQwI4qEt9cyV5ONwRHC+lYKSsYSR8s= @@ -115,8 +113,8 @@ github.com/google/go-cmp v0.7.0/go.mod h1:pXiqmnSA92OHEEa9HXL2W4E7lf9JzCmGVUdgjX github.com/google/gofuzz v1.0.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg= 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.29.0 h1:5VipnvEpbqr2gA2VbM+nYVbkIF28c5ZQfqCBQ5g2xfk= -github.com/grpc-ecosystem/grpc-gateway/v2 v2.29.0/go.mod h1:Hyl3n6Twe1hvtd9XUXDec4pTvgMSEixRuQKPTMH2bNs= +github.com/grpc-ecosystem/grpc-gateway/v2 v2.30.0 h1:/Tnpcb2E0Pz/tN9s3bfEY2Q8ePCEX9iuS+cneUwncnw= +github.com/grpc-ecosystem/grpc-gateway/v2 v2.30.0/go.mod h1:zOBXOsUaBSjKgmH4OGzV1esUpR3oUSCPYVd2cUBjKYY= github.com/hashicorp/go-cleanhttp v0.5.0/go.mod h1:JpRdi6/HCYpAwUzNwuwqhbovhLtngrth3wmdIIUrZ80= github.com/hashicorp/go-hclog v0.9.1/go.mod h1:5CU+agLiy3J7N7QjHK5d05KxGsuXiQLrjA0H7acj2lQ= github.com/hashicorp/go-hclog v1.6.3 h1:Qr2kF+eVWjTiYmU7Y31tYlP1h0q/X3Nl3tPGdaB11/k= @@ -151,8 +149,8 @@ github.com/json-iterator/go v1.1.12/go.mod h1:e30LSqwooZae/UwlEbR2852Gd8hjQvJoHm github.com/julienschmidt/httprouter v1.2.0/go.mod h1:SYymIcj16QtmaHHD7aYtjjsJG7VTCxuUUipMqKk8s4w= github.com/julienschmidt/httprouter v1.3.0 h1:U0609e9tgbseu3rBINet9P48AI/D3oJs4dN7jwJOQ1U= github.com/julienschmidt/httprouter v1.3.0/go.mod h1:JR6WtHb+2LUe8TCKY3cZOxFyyO8IZAc4RVcycCCAKdM= -github.com/klauspost/compress v1.19.0 h1:sXLILfc9jV2QYWkzFOPWStmcUVH2RHEB1JCdY2oVvCQ= -github.com/klauspost/compress v1.19.0/go.mod h1:cwPg85FWrGar70rWktvGQj8/hthj3wpl0PGDogxkrSQ= +github.com/klauspost/compress v1.19.2 h1:hMRETovs/pu/dVWN7zIT1PGG8t509MwT6bO7XSi26R8= +github.com/klauspost/compress v1.19.2/go.mod h1:cwPg85FWrGar70rWktvGQj8/hthj3wpl0PGDogxkrSQ= github.com/konsorten/go-windows-terminal-sequences v1.0.1/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ= github.com/kr/logfmt v0.0.0-20140226030751-b84e30acd515/go.mod h1:+0opPa2QZZtGFBFZlji/RkVcI2GknAs/DXo4wKdlNEc= github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo= @@ -168,8 +166,8 @@ github.com/lann/builder v0.0.0-20180802200727-47ae307949d0 h1:SOEGU9fKiNWd/HOJuq github.com/lann/builder v0.0.0-20180802200727-47ae307949d0/go.mod h1:dXGbAdH5GtBTC4WfIxhKZfyBF/HBFgRZSWwZ9g/He9o= github.com/lann/ps v0.0.0-20150810152359-62de8c46ede0 h1:P6pPBnrTSX3DEVR4fDembhRWSsG5rVo6hYhAB/ADZrk= github.com/lann/ps v0.0.0-20150810152359-62de8c46ede0/go.mod h1:vmVJ0l/dxyfGW6FmdpVm2joNMFikkuWg0EoCKLGUMNw= -github.com/leodido/go-urn v1.4.0 h1:WT9HwE9SGECu3lg4d/dIA+jxlljEa1/ffXKmRjqdmIQ= -github.com/leodido/go-urn v1.4.0/go.mod h1:bvxc+MVxLKB4z00jd1z+Dvzr47oO32F/QSNjSBOlFxI= +github.com/leodido/go-urn v1.5.0 h1:pLqT2kq1zpHW/1D18QMjMpdtX7cekxqtJJjg5ANyWw0= +github.com/leodido/go-urn v1.5.0/go.mod h1:9BORnCDhdPBJNDEX+w1bJisa8yOKYi116VeO96s4ifE= github.com/mailru/easyjson v0.9.2 h1:dX8U45hQsZpxd80nLvDGihsQ/OxlvTkVUXH2r/8cb2M= github.com/mailru/easyjson v0.9.2/go.mod h1:1+xMtQp2MRNVL/V1bOzuP3aP8VNwRW55fQUto+XFtTU= github.com/mattn/go-colorable v0.1.9/go.mod h1:u6P/XSegPjTcexA+o6vUJrdnUu04hMope9wVRipJSqc= @@ -178,8 +176,8 @@ github.com/mattn/go-colorable v0.1.15 h1:+u9SLTRGnXv73cEsnsmoZBom+dMU88B2M0aDcWy github.com/mattn/go-colorable v0.1.15/go.mod h1:6LmQG8QLFO4G5z1gPvYEzlUgJ2wF+stgPZH1UqBm1s8= github.com/mattn/go-isatty v0.0.12/go.mod h1:cbi8OIDigv2wuxKPP5vlRcQ1OAZbq2CE4Kysco4FUpU= github.com/mattn/go-isatty v0.0.14/go.mod h1:7GGIvUiUoEMVVmxf/4nioHXj79iQHKdU27kJ6hsGG94= -github.com/mattn/go-isatty v0.0.22 h1:j8l17JJ9i6VGPUFUYoTUKPSgKe/83EYU2zBC7YNKMw4= -github.com/mattn/go-isatty v0.0.22/go.mod h1:ZXfXG4SQHsB/w3ZeOYbR0PrPwLy+n6xiMrJlRFqopa4= +github.com/mattn/go-isatty v0.0.23 h1:cYwCQTQf3HB6xUC+BtyCLZNr7IzbOmoZbmssVNzSyiQ= +github.com/mattn/go-isatty v0.0.23/go.mod h1:nMCL3Zebbrt45jsMDgnfIwz6ydEQApk5oEI3HqDio6A= github.com/matttproud/golang_protobuf_extensions v1.0.1/go.mod h1:D8He9yQNgCq6Z5Ld7szi9bcBfOoFv/3dc6xSMkL2PC0= github.com/mfridman/interpolate v0.0.2 h1:pnuTK7MQIxxFz1Gr+rjSIx9u7qVjf5VOoM/u6BbAxPY= github.com/mfridman/interpolate v0.0.2/go.mod h1:p+7uk6oE07mpE/Ik1b8EckO0O4ZXiGAfshKBWLUM9Xg= @@ -206,15 +204,13 @@ github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINE github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4= github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= -github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 h1:Jamvg5psRIccs7FGNTlIRMkT8wgtp5eCXdBlqhYGL6U= -github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= -github.com/pressly/goose/v3 v3.27.2 h1:FjKNzcmMdGrQlSIu5alMSmakQtJFBgtw+A0bb1p/LC8= -github.com/pressly/goose/v3 v3.27.2/go.mod h1:qWW+/8dkVtJYjJrbIpwD5xxnEJTUKvxkQ9JKQp9LaIM= +github.com/pressly/goose/v3 v3.27.3 h1:pIglVHjw99r4e/hDHHwbl9vfOsDMqUokfkXo6+n/RxA= +github.com/pressly/goose/v3 v3.27.3/go.mod h1:Dag+xpV6o20HR2LFY1j0q6MDwc3f7vPUFDA77R+0yGY= github.com/prometheus/client_golang v0.9.1/go.mod h1:7SWBe2y4D6OKWSNQJUaRYU/AaXPKyh/dDVn+NZz0KFw= github.com/prometheus/client_golang v1.0.0/go.mod h1:db9x61etRT2tGnBNRi70OPL5FsnadC4Ky3P0J6CfImo= github.com/prometheus/client_golang v1.4.0/go.mod h1:e9GMxYsXl05ICDXkRhurwBS4Q3OK1iX/F2sw+iXX5zU= -github.com/prometheus/client_golang v1.23.2 h1:Je96obch5RDVy3FDMndoUsjAhG5Edi49h0RJWRi/o0o= -github.com/prometheus/client_golang v1.23.2/go.mod h1:Tb1a6LWHB3/SPIzCoaDXI4I8UHKeFTEQ1YCr+0Gyqmg= +github.com/prometheus/client_golang v1.24.1 h1:JnJkREXzWxUdCuPFpIWZiPispT9xVV59uiuyR2bPlnU= +github.com/prometheus/client_golang v1.24.1/go.mod h1:F+oSRECHg4sse5ucfYpYDeIv/hu68Zo0uoHKetWnzcE= github.com/prometheus/client_model v0.0.0-20180712105110-5c3871d89910/go.mod h1:MbSGuTsp3dbXC40dX6PRTWyKYBIrTGTE9sqQNg2J8bo= github.com/prometheus/client_model v0.0.0-20190129233127-fd36f4220a90/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= github.com/prometheus/client_model v0.2.0/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= @@ -222,15 +218,15 @@ github.com/prometheus/client_model v0.6.2 h1:oBsgwpGs7iVziMvrGhE53c/GrLUsZdHnqNw github.com/prometheus/client_model v0.6.2/go.mod h1:y3m2F6Gdpfy6Ut/GBsUqTWZqCUvMVzSfMLjcu6wAwpE= github.com/prometheus/common v0.4.1/go.mod h1:TNfzLD0ON7rHzMJeJkieUDPYmFC7Snx/y86RQel1bk4= github.com/prometheus/common v0.9.1/go.mod h1:yhUN8i9wzaXS3w1O07YhxHEBxD+W35wd8bs7vj7HSQ4= -github.com/prometheus/common v0.69.0 h1:OA85nJQS/T/MaYh/Q2CcgDKSGWqNIgrBDvDH85CuiNk= -github.com/prometheus/common v0.69.0/go.mod h1:ZzL3f6u94qUxh9p+tJTrF+FvBS1XXbbRAZCQkytAL0Y= +github.com/prometheus/common v0.70.1 h1:1HvjP4D5oL3t8RsPlwxA9onvvStjtIHYE5XuuwOi/PY= +github.com/prometheus/common v0.70.1/go.mod h1:VdFUQDMZK3VLkurFUVhia6uys/0suUp86TJz5qbJRhc= github.com/prometheus/procfs v0.0.0-20181005140218-185b4288413d/go.mod h1:c3At6R/oaqEKCNdg8wHV1ftS6bRYblBhIjjI8uT2IGk= github.com/prometheus/procfs v0.0.2/go.mod h1:TjEm7ze935MbeOT/UhFTIMYKhuLP4wbCsTZCD3I8kEA= github.com/prometheus/procfs v0.0.8/go.mod h1:7Qr8sr6344vo1JqZ6HhLceV9o3AJ1Ff+GxbHq6oeK9A= github.com/prometheus/procfs v0.21.1 h1:GljZCt+zSTS+NZq88cyQ1LjZ+RCHp3uVuabBWA5+OJI= github.com/prometheus/procfs v0.21.1/go.mod h1:aB55Cww9pdSJVHk0hUf0inxWyyjPogFIjmHKYgMKmtY= -github.com/rabbitmq/amqp091-go v1.12.0 h1:V0v14Iqfs+MwHWihJt/nGS5Ulu0vw572b2Co3mwunkI= -github.com/rabbitmq/amqp091-go v1.12.0/go.mod h1:Hy4jKW5kQART1u+JkDTF9YYOQUHXqMuhrgxOEeS7G4o= +github.com/rabbitmq/amqp091-go v1.14.0 h1:RSaT7aOKt/OrkVUyswPDW29lnRz9psuGmfZFBmLqLek= +github.com/rabbitmq/amqp091-go v1.14.0/go.mod h1:Hy4jKW5kQART1u+JkDTF9YYOQUHXqMuhrgxOEeS7G4o= github.com/remyoudompheng/bigfft v0.0.0-20230129092748-24d4a6f8daec h1:W09IVJc94icq4NjY3clb7Lk8O1qJ8BdBEF8z0ibU0rE= github.com/remyoudompheng/bigfft v0.0.0-20230129092748-24d4a6f8daec/go.mod h1:qqbHyh8v60DhA7CoWK5oRCqLrMHRGoxYCSS9EjAz6Eo= github.com/rogpeppe/go-internal v1.14.1 h1:UQB4HGPB6osV0SQTLymcB4TgvyWu6ZyliaW0tI/otEQ= @@ -247,8 +243,8 @@ github.com/rqlite/rqlite/v10 v10.2.7 h1:fUsbbgoELw+MrKfQ9EkVrm8tA0rdVUe/bYYdtOOs github.com/rqlite/rqlite/v10 v10.2.7/go.mod h1:iTG1rLhR0zBBWTHiN33b9o/HXVwaC71xrcdoFaUJecE= github.com/rqlite/sql v0.0.0-20260224021119-1b2524a41372 h1:2V0y6mzmPj7vQKad76nTL7sZ/lFLj5VKvNjpa6IRxYE= github.com/rqlite/sql v0.0.0-20260224021119-1b2524a41372/go.mod h1:ib9zVtNgRKiGuoMyUqqL5aNpk+r+++YlyiVIkclVqPg= -github.com/sethvargo/go-retry v0.3.0 h1:EEt31A35QhrcRZtrYFDTBg91cqZVnFL2navjDrah2SE= -github.com/sethvargo/go-retry v0.3.0/go.mod h1:mNX17F0C/HguQMyMyJxcnU471gOZGxCLyYaFyAZraas= +github.com/sethvargo/go-retry v0.4.0 h1:9qy1OoIAxBL+gBYnkTnTnWle5wlfsXQlwRzIbbpdqPw= +github.com/sethvargo/go-retry v0.4.0/go.mod h1:tvsjdKG6xfiCx4LSiUZ06kcv38xvdVQwv8R6/VnnVWg= github.com/sirupsen/logrus v1.2.0/go.mod h1:LxeOpSwHxABJmUn/MG1IvRgCAasNZTLOkJPxbbu5VWo= github.com/sirupsen/logrus v1.4.2/go.mod h1:tLMulIdttU9McNUspp0xgXVQah82FyeX6MwdIuYE2rE= github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= @@ -264,8 +260,8 @@ github.com/stretchr/testify v1.7.2/go.mod h1:R6va5+xMeoiuVRoj+gSkQ7d3FALtqAAGI1F github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU= github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo= github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY= -github.com/stretchr/testify v1.11.1 h1:7s2iGBzp5EwR7/aIZr8ao5+dra3wiQyKjjFuvgVKu7U= -github.com/stretchr/testify v1.11.1/go.mod h1:wZwfW3scLgRK+23gO65QZefKpKQRnfz6sD981Nm4B6U= +github.com/stretchr/testify v1.12.1 h1:EuwCh5fleGS7H32xRwO3wRGT7DxrDhLAT6FF8MpWDWE= +github.com/stretchr/testify v1.12.1/go.mod h1:MDEgiDPPsNp5cuIrHPPCyornHKgEVbtFUmoNlxoYthg= github.com/tidwall/gjson v1.18.0 h1:FIDeeyB800efLX89e5a8Y0BNH+LOngJyGrIWxG2FKQY= github.com/tidwall/gjson v1.18.0/go.mod h1:/wbyibRr2FHMks5tjHJ5F8dMZh3AcwJEMf5vlfC0lxk= github.com/tidwall/match v1.1.1/go.mod h1:eRSPERbgtNPcGhD8UCthc6PmLEQXEWd3PRB5JTxsfmM= @@ -277,14 +273,14 @@ github.com/tidwall/pretty v1.2.1/go.mod h1:ITEVvHYasfjBbM0u2Pg8T2nJnzm8xPwvNhhso github.com/tv42/httpunix v0.0.0-20150427012821-b75d8614f926/go.mod h1:9ESjWnEqriFuLhtthL60Sar/7RFoluCcXsuvEwTV5KM= github.com/txix-open/bellows v1.2.0 h1:CXv8nQaZtB/micraeRilYyj/gtfv+bqBgP5aPYQgjeY= github.com/txix-open/bellows v1.2.0/go.mod h1:qbKCy+RTgD30Qpw1fyb3y3jp5Y9mGhLLxgae1l0W92o= -github.com/txix-open/etp/v4 v4.1.1 h1:Yna+0mw/kQZP7Rl6QI4spCrO6qgO8ZhP8PjHlJj2lTU= -github.com/txix-open/etp/v4 v4.1.1/go.mod h1:9GK+Aje8BmLFq8Hk4j6Qb976LdU9WECCWAuLK1vAKgM= +github.com/txix-open/etp/v4 v4.1.3 h1:u9ZyU2yKGgoQ1/DSaElhazWm8xASdqGEdWjoJ2xQlfo= +github.com/txix-open/etp/v4 v4.1.3/go.mod h1:9GK+Aje8BmLFq8Hk4j6Qb976LdU9WECCWAuLK1vAKgM= github.com/txix-open/go-cmp v0.0.0-20240401171944-16b203530f60 h1:7SZ72lNU69g8eiT5rcRh1ubATZPs/J05NEIN7E47TYM= github.com/txix-open/go-cmp v0.0.0-20240401171944-16b203530f60/go.mod h1:jzpq0uwcdGq0OSNXZ6vv6UJkCOU/fLPgeoz+KkGDYgo= github.com/txix-open/grmq v1.12.0 h1:lSPYvwLfTL0+b0xDQmuuN6RaKS3NCEJNK9ccWpOWa8Y= github.com/txix-open/grmq v1.12.0/go.mod h1:6m9CCTQao/HAFalu5rFOZGJ5KLEP6WzzIwj80Ml3KGE= -github.com/txix-open/isp-kit v1.71.1 h1:MNSuHy/HEvy7dKPQXkM+dgQpShDhcv1Sq1kLgep2LaA= -github.com/txix-open/isp-kit v1.71.1/go.mod h1:j2sj86byoKllCs+DaRWwg56NgcL2omr/bUzmU7+AF74= +github.com/txix-open/isp-kit v1.74.1 h1:2WQl1+e6E1TXcgkm554kYpiyORgZiyJa/zQIks4cUCw= +github.com/txix-open/isp-kit v1.74.1/go.mod h1:i4g+hgfVQAXa02kHqr104TqYEsiW2em17RZF0KjkB78= github.com/txix-open/jsonschema v1.3.0 h1:XGuOTg22G7PdqfKypjajM20/i5FyGfFYsJKmheebKi4= github.com/txix-open/jsonschema v1.3.0/go.mod h1:l8YDZ1nvJrw6uxWowSVOxCV/ebiMJyapffW87ZEqH00= github.com/txix-open/validator/v10 v10.0.0-20250506161033-f8ce404fffdb h1:UJgT4u/QMv5QHKOQeJ7igShHa36c2/vIRqJiRLdDlf0= @@ -303,26 +299,26 @@ go.etcd.io/bbolt v1.5.0 h1:S7GAl7Fxv12yohbwFfIbQCGDWbQbtDGPET4P/bD4lxU= go.etcd.io/bbolt v1.5.0/go.mod h1:mkltfYE5aUHQxUct9N9V+Kp7aSjFqjgrhcXIS70Lrdk= go.opentelemetry.io/auto/sdk v1.2.1 h1:jXsnJ4Lmnqd11kwkBV2LgLoFMZKizbCi5fNZ/ipaZ64= go.opentelemetry.io/auto/sdk v1.2.1/go.mod h1:KRTj+aOaElaLi+wW1kO/DZRXwkF4C5xPbEe3ZiIhN7Y= -go.opentelemetry.io/contrib/instrumentation/net/http/httptrace/otelhttptrace v0.69.0 h1:MCcYL7J6Vt/X0kjqbMZkekCmwsurbQRbL69vkiye2lk= -go.opentelemetry.io/contrib/instrumentation/net/http/httptrace/otelhttptrace v0.69.0/go.mod h1:3jnStNwSufK+f5ktjL4EPcwtig4rtd81NS70lqHuXl8= -go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.69.0 h1:8tvICD4vSTOOsNrsI4Ljf6C+6UKvpTEH5XY3JMoyPoo= -go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.69.0/go.mod h1:z9+yiacE0IHRqM4qFfkbt/JYlmYXgss8GY/jXoNuPJI= -go.opentelemetry.io/otel v1.44.0 h1:JjwHmHpA4iZ3wBxluu2fbbE7j4kqlE8jXyAyPXH7HqU= -go.opentelemetry.io/otel v1.44.0/go.mod h1:BMgjTHL9WPRlRjL2oZCBTL4whCGtXch2H4BhOPIAyYc= -go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.44.0 h1:4YsVu3B8+3qtWYYrsUYgn0OG78pN0rnNPRGX4SbokQI= -go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.44.0/go.mod h1:+wnlSn0mD1ADVMe3v9Z/WIaiz6q6gL2J/ejaAmdmv80= -go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp v1.44.0 h1:lgh3PiVrRUWMLOVSkQicxzZll5NjF1r+AtsX1XRIHw0= -go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp v1.44.0/go.mod h1:5Cnhth3m/AgOeTgE3ex12pPmiu/gGtZit03kSzx9X7s= -go.opentelemetry.io/otel/metric v1.44.0 h1:1w0gILTcHdr3YI+ixLyjemwrVnsMURbTZFrSYCdDdmc= -go.opentelemetry.io/otel/metric v1.44.0/go.mod h1:8O7hanEPBNgEMmybD3s2VBKcgWOCsA6tzHBPODAiquo= -go.opentelemetry.io/otel/sdk v1.44.0 h1:nHYwb9lK+fJPU/dnT6s7W7Z8itMWyqrnVfbheVYrZ58= -go.opentelemetry.io/otel/sdk v1.44.0/go.mod h1:Osuydd3Se74nqjAKxid74N5eC+jfEqfTegHRnq58oK0= -go.opentelemetry.io/otel/sdk/metric v1.44.0 h1:3LlKgI+VjbVsjNRFZJZAJ30WjXC5VkNRks6si09iEfI= -go.opentelemetry.io/otel/sdk/metric v1.44.0/go.mod h1:5B5pMARnXxKhltooO4xUuCBorl65a4EpnTalObqOigA= -go.opentelemetry.io/otel/trace v1.44.0 h1:jxF5CsGYCe74MCRx2X4g7WsY/VBKRqqpNvXlX/6gtIk= -go.opentelemetry.io/otel/trace v1.44.0/go.mod h1:oLl1jrMQAVo6v3GAggN+1VH9VIz9iUSvW53sW1Q8PIE= -go.opentelemetry.io/proto/otlp v1.10.0 h1:IQRWgT5srOCYfiWnpqUYz9CVmbO8bFmKcwYxpuCSL2g= -go.opentelemetry.io/proto/otlp v1.10.0/go.mod h1:/CV4QoCR/S9yaPj8utp3lvQPoqMtxXdzn7ozvvozVqk= +go.opentelemetry.io/contrib/instrumentation/net/http/httptrace/otelhttptrace v0.71.0 h1:oFNJW32h2SXnET7XXstgT7pVh4vN+jW+GfiIaBguIZE= +go.opentelemetry.io/contrib/instrumentation/net/http/httptrace/otelhttptrace v0.71.0/go.mod h1:+H3sPOFwag14eMHTPMElZtV0e4YfVZ/85KgrKUCB5FI= +go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.71.0 h1:3g7B90UzBltIDKq1/5mrTGxTnOFDV0ICOhLoxiZ8jlg= +go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.71.0/go.mod h1:Ef8SuTh59BT7+ofpDxN9z+yOlc4t2GjLmKDgYNJL/NU= +go.opentelemetry.io/otel v1.46.0 h1:FHt5/CDyVxi/8IM1CH7VE/rRgq3kLHa2mSTVMO8AWyc= +go.opentelemetry.io/otel v1.46.0/go.mod h1:Gj3SEScelsNC45tp4nSxRYlS+f5iez7W8XPMCt905kE= +go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.46.0 h1:OFnwLJr+pF3iHrlGSzbxyuo6/6HyBlnlN1CWEJmBVcw= +go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.46.0/go.mod h1:716wFneO0ov19A2beH5hjfh9AK5z/VWNAtDijp1Y0/g= +go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp v1.46.0 h1:KrC1YrQeSt46ITMWAbgQx1M1eV1/1TKzttrBzymPmss= +go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp v1.46.0/go.mod h1:zDSEzoEqsOrgBeGvH66KRgxh90VonFyJqBHA0Pk3+rM= +go.opentelemetry.io/otel/metric v1.46.0 h1:yBnkXvgV7AXFILZc5K6IZe/CBFF3OS7BJ8ov6/lj0K8= +go.opentelemetry.io/otel/metric v1.46.0/go.mod h1:iPmdWqifKUdzziPkvvzIJXITl56fQx2mGM/DHLB3/2o= +go.opentelemetry.io/otel/sdk v1.46.0 h1:h5CNQQjEbuQXY/JfZtgt3i7HVFV3aHPO2OAwO2eTYPI= +go.opentelemetry.io/otel/sdk v1.46.0/go.mod h1:GAERFXFt5SYCEB+YiKUbMBeza6UaDH7GmGOZEfh2gSM= +go.opentelemetry.io/otel/sdk/metric v1.46.0 h1:0piZ26EG4RBfebb2jhDH6ERCYHoVWduc3kLgPCwSnSE= +go.opentelemetry.io/otel/sdk/metric v1.46.0/go.mod h1:I1PbKrdVc8Qu8HYVDNtqVIwLwjNrhsV/uFuxfwg8mO4= +go.opentelemetry.io/otel/trace v1.46.0 h1:OULy7ccdJnZtJ0UDYFOIGaCmiWzJ8Vi2G/Rsu60qs1c= +go.opentelemetry.io/otel/trace v1.46.0/go.mod h1:J7GAXweO77XSFkB/rmAqk9D6ihszhFjLU+d9WuUxDLI= +go.opentelemetry.io/proto/otlp v1.11.0 h1:5rrYs0Ykyj50sdU/JU0x8etU+LubXWb+gED6TbEdMIk= +go.opentelemetry.io/proto/otlp v1.11.0/go.mod h1:SmVizdCOAm3XBtG1g1NnOdhW6jtddT72hLMhv8VwA8E= go.uber.org/goleak v1.3.0 h1:2K3zAYmnTNqV73imy9J1T3WC+gmCePx2hEGkimedGto= go.uber.org/goleak v1.3.0/go.mod h1:CoHD4mav9JJNrW/WLlf7HGZPjdw8EucARQHekz1X6bE= go.uber.org/multierr v1.11.0 h1:blXXJkSxSSfBVBlC76pxqeO+LN3aDfLQo+309xJstO0= @@ -331,27 +327,21 @@ 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/v2 v2.4.4 h1:tuyd0P+2Ont/d6e2rl3be67goVK4R6deVxCUX5vyPaQ= go.yaml.in/yaml/v2 v2.4.4/go.mod h1:gMZqIpDtDqOfM0uNfy0SkpRhvUryYH0Z6wdMYcacYXQ= -go.yaml.in/yaml/v3 v3.0.4 h1:tfq32ie2Jv2UxXFdLJdh3jXuOzWiL1fo0bu/FbuKpbc= -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.0.0-20180904163835-0709b304e793/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= -golang.org/x/crypto v0.53.0 h1:QZ4Muo8THX6CizN2vPPd5fBGHyogrdK9fG4wLPFUsto= -golang.org/x/crypto v0.53.0/go.mod h1:DNLU434OwVakk9PzuwV8w62mAJpRJL3vsgcfp4Qnsio= -golang.org/x/crypto v0.54.0 h1:YLIA59K4fiNzHzjnZt2tUJQjQtUWfWbeHBqKtk3eScw= -golang.org/x/crypto v0.54.0/go.mod h1:KWL8ny2AZdGR2cWmzeHrp2azQPGogOv+HeQaVEXC2dk= +golang.org/x/crypto v0.55.0 h1:+KWHjbgOaAQ66dh/YlkZKHlz9ZUlq61AFirAR9ntP8M= +golang.org/x/crypto v0.55.0/go.mod h1:uq0V9dE/fzQuJtbnL+2EhWOE63vo164FY8xqEnV9xis= golang.org/x/net v0.0.0-20181114220301-adae6a3d119a/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20190311183353-d8887717615a/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= golang.org/x/net v0.0.0-20190613194153-d28f0bde5980/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.56.0 h1:Rw8j/hFzGvJUZwNBXnAtf5sVDVt+65SK2C7IxCxZt5o= -golang.org/x/net v0.56.0/go.mod h1:D3Ku6r+V6JROoZK144D2XfMHFcMq/0zSfLelVTCFKec= -golang.org/x/net v0.57.0 h1:K5+3DljvIuDG9/Jv9rvyMywYNFCQ9RSUY6OOTTkT+tE= -golang.org/x/net v0.57.0/go.mod h1:KpXc8iv+r3XplLAG/f7Jsf9RPszJzdR0f58q9vGOuEU= +golang.org/x/net v0.58.0 h1:ynWG7rqYi4ccpTEuPZ2QGWHktVEM9DMCj9yzDE0Q7To= +golang.org/x/net v0.58.0/go.mod h1:YwCddHnFlT7eLQqVprV19OnhLGtc5xOKgE0RyqgfWAU= golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.21.0 h1:HLII4xRRTtCRkxYp4HNFF0Js/Og6q2i++KXbg0gHCwM= -golang.org/x/sync v0.21.0/go.mod h1:9xrNwdLfx4jkKbNva9FpL6vEN7evnE43NNNJQ2LF3+0= golang.org/x/sync v0.22.0 h1:SZjpbeLmrCk4xhRSZFNZW5gFUeCeFgjekvI/+gfScek= golang.org/x/sync v0.22.0/go.mod h1:9xrNwdLfx4jkKbNva9FpL6vEN7evnE43NNNJQ2LF3+0= golang.org/x/sys v0.0.0-20180905080454-ebe1bf3edb33/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= @@ -365,31 +355,23 @@ golang.org/x/sys v0.0.0-20200223170610-d5e6a3e2c0ae/go.mod h1:h1NjWce9XRLGQEsW7w golang.org/x/sys v0.0.0-20210630005230-0f9fa26af87c/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20210927094055-39ccf1dd6fa6/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220503163025-988cb79eb6c6/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.46.0 h1:noSf2Fq6F8DBgS+LysIkx7rIExoNHJsxOAtPp4rthXw= -golang.org/x/sys v0.46.0/go.mod h1:4GL1E5IUh+htKOUEOaiffhrAeqysfVGipDYzABqnCmw= golang.org/x/sys v0.47.0 h1:o7XGOvZQCADBQQ4Y7VNq2dRWQR7JmOUW8Kxx4ZsNgWs= golang.org/x/sys v0.47.0/go.mod h1:4GL1E5IUh+htKOUEOaiffhrAeqysfVGipDYzABqnCmw= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= -golang.org/x/text v0.38.0 h1:sXmwo9DwP3OK9EZ7PqAdaooSGozfl/3a6/xJcbzPRhE= -golang.org/x/text v0.38.0/go.mod h1:YXZt3QhHUKYT53r2lLKFIVi6Ao1jdzrTR/KQ09qyxF4= -golang.org/x/text v0.40.0 h1:Ub2Z6/xjgF1WrYQz2nuITOEegKFtiIy+rieRJ5lHZKs= -golang.org/x/text v0.40.0/go.mod h1:hpnzDAfGV753zIKo+wk3u1bVKCGPbrnF7+7LBF/UHVY= +golang.org/x/text v0.41.0 h1:vz/seA0lnX87Othu2f/0L24RcgrXD9/YFTSuGjj3rH8= +golang.org/x/text v0.41.0/go.mod h1:jvf1O8ajNzZqhSrQBPbutR/EB83Cc0CFrezNQIwbb5M= golang.org/x/tools v0.0.0-20190424220101-1e8e1cfdf96b/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= 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-20260630182238-925bb5da69e7 h1:jQ9p21COKWjP3VwuFrNRiiOTMh3mPpN45R7SLrH/HUU= -google.golang.org/genproto/googleapis/api v0.0.0-20260630182238-925bb5da69e7/go.mod h1:KqHwBx2upmfa1XSi1WuRvC+2VGCLtooKkfmyvRbUmqA= -google.golang.org/genproto/googleapis/rpc v0.0.0-20260630182238-925bb5da69e7 h1:eM/YSd5bBFagF51o1E745Ta7RwzpW0h+z+QDNZOgmQ8= -google.golang.org/genproto/googleapis/rpc v0.0.0-20260630182238-925bb5da69e7/go.mod h1:4Hqkh8ycfw05ld/3BWL7rJOSfebL2Q+DVDeRgYgxUU8= -google.golang.org/genproto/googleapis/rpc v0.0.0-20260724162435-b2f20204f0df h1:O3ig1i5WDDzsVzRp+cCdgelT9vXnlnOFdlEeFtL4HCc= -google.golang.org/genproto/googleapis/rpc v0.0.0-20260724162435-b2f20204f0df/go.mod h1:4Hqkh8ycfw05ld/3BWL7rJOSfebL2Q+DVDeRgYgxUU8= -google.golang.org/grpc v1.82.0 h1:vguDnZUPjE26w09A63VoxZPnvPjB5Riyc0mkXPFmAIU= -google.golang.org/grpc v1.82.0/go.mod h1:yzTZ1TB1Z3SG+LIYaI+WiE8D5+PZ3ArnrSp8zF3+/ZA= -google.golang.org/grpc v1.82.1 h1:NnAxzGRA0677vCa4BUkOAnO5+FfQqVl9iUXeD0IqcGE= -google.golang.org/grpc v1.82.1/go.mod h1:yzTZ1TB1Z3SG+LIYaI+WiE8D5+PZ3ArnrSp8zF3+/ZA= -google.golang.org/protobuf v1.36.11 h1:fV6ZwhNocDyBLK0dj+fg8ektcVegBBuEolpbTQyBNVE= -google.golang.org/protobuf v1.36.11/go.mod h1:HTf+CrKn2C3g5S8VImy6tdcUvCska2kB7j23XfzDpco= +google.golang.org/genproto/googleapis/api v0.0.0-20260825221802-da73d73af1c5 h1:izFU9hz7aeLI/Mi1J0991ae+xcwRLr7hTqWnB/9aIIU= +google.golang.org/genproto/googleapis/api v0.0.0-20260825221802-da73d73af1c5/go.mod h1:3LhxRw4YYkf+ylAfgaY9JlVLFKhokkCV8duhLLe7+t0= +google.golang.org/genproto/googleapis/rpc v0.0.0-20260825221802-da73d73af1c5 h1:1VUiZAXyC+zmiFYi+WLtBzr68Cj8wOofHjjrA/kkizc= +google.golang.org/genproto/googleapis/rpc v0.0.0-20260825221802-da73d73af1c5/go.mod h1:DjtHYE8FKJLivXcBEjGwndXfIC23G0VpXiXKqG179uA= +google.golang.org/grpc v1.83.2 h1:EManeRomTObA0BU7I8vXgg/78uE5MJ9M8B39EX2WscU= +google.golang.org/grpc v1.83.2/go.mod h1:YPI1hK3kDked6iHvgX3tR0y+nX/qpMFKhPgFsokw1S8= +google.golang.org/protobuf v1.36.12 h1:pJOKDDOyeXErUroCihFAd5LQuwXBSpVnKGrj5o/fwxc= +google.golang.org/protobuf v1.36.12/go.mod h1:HTf+CrKn2C3g5S8VImy6tdcUvCska2kB7j23XfzDpco= gopkg.in/alecthomas/kingpin.v2 v2.2.6/go.mod h1:FMv+mEhP44yOT+4EoQTLFTRgOQ1FBLkstjWtayDeSgw= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= @@ -404,11 +386,11 @@ gopkg.in/yaml.v2 v2.2.5/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= -modernc.org/libc v1.73.4 h1:+ra4Ui8ngyt8HDcO1FTDPWlkAh6yOdaO2yAoh8MddQA= -modernc.org/libc v1.73.4/go.mod h1:DXZ3eO8qMCNn2SnmTNCiC71nJ9Rcq3PsnpU6Vc4rWK8= +modernc.org/libc v1.74.3 h1:a4J+Z8aVaxPyjyxRAdJzw246PqpcFGvVPnfT/AuM5Ws= +modernc.org/libc v1.74.3/go.mod h1:4H7h/MJ8wnjL8RAbp9v3OXgnk22X7MouHIhDbvP3gj4= modernc.org/mathutil v1.7.1 h1:GCZVGXdaN8gTqB1Mf/usp1Y/hSqgI2vAGGP4jZMCxOU= modernc.org/mathutil v1.7.1/go.mod h1:4p5IwJITfppl0G4sUEDtCr4DthTaT47/N3aT6MhfgJg= modernc.org/memory v1.11.0 h1:o4QC8aMQzmcwCK3t3Ux/ZHmwFPzE6hf2Y5LbkRs+hbI= modernc.org/memory v1.11.0/go.mod h1:/JP4VbVC+K5sU2wZi9bHoq2MAkCnrt2r98UGeSK7Mjw= -modernc.org/sqlite v1.53.0 h1:20WG8N9q4ji/dEqGk4uiI0c6OPjSeLTNYGFCc3+7c1M= -modernc.org/sqlite v1.53.0/go.mod h1:xoEpOIpGrgT48H5iiyt/YXPCZPEzlfmfFwtk8Lklw8s= +modernc.org/sqlite v1.54.0 h1:JCxR4qwkJvOaqAoYcgDoO25Nc+ROg6EJ2LfBVzdrgog= +modernc.org/sqlite v1.54.0/go.mod h1:4ntCLuNmnH8+GNqjka1wNg7KJd5/Hi5FYp8K+XQ7GZw= diff --git a/helpers/helpers.go b/helpers/helpers.go index d5a0882..cdfb674 100644 --- a/helpers/helpers.go +++ b/helpers/helpers.go @@ -3,9 +3,9 @@ package helpers import ( "net" - "github.com/pkg/errors" "github.com/txix-open/etp/v4" "github.com/txix-open/isp-kit/cluster" + "github.com/txix-open/isp-kit/errors" "github.com/txix-open/isp-kit/log" "isp-config-service/entity" ) diff --git a/main.go b/main.go index 4775842..b41d65c 100644 --- a/main.go +++ b/main.go @@ -26,7 +26,12 @@ var ( //go:generate swag init --parseDependency //go:generate rm -f docs/swagger.json docs/docs.go func main() { - boot := bootstrap.New(version, conf.Remote{}, routes.EndpointDescriptors(), cluster.GrpcTransport) + boot := bootstrap.New( + version, + conf.Remote{}, + cluster.Endpoints(routes.EndpointDescriptors()), + cluster.GrpcTransport, + ) app := boot.App logger := app.Logger() diff --git a/repository/backend.go b/repository/backend.go index 12291c6..6f26b7e 100644 --- a/repository/backend.go +++ b/repository/backend.go @@ -9,7 +9,7 @@ import ( "isp-config-service/service/rqlite/db" "github.com/Masterminds/squirrel" - "github.com/pkg/errors" + "github.com/txix-open/isp-kit/errors" ) type Backend struct { diff --git a/repository/config.go b/repository/config.go index 1118c41..b8910d1 100644 --- a/repository/config.go +++ b/repository/config.go @@ -5,7 +5,7 @@ import ( "fmt" "github.com/Masterminds/squirrel" - "github.com/pkg/errors" + "github.com/txix-open/isp-kit/errors" "isp-config-service/domain" "isp-config-service/entity" "isp-config-service/entity/xtypes" diff --git a/repository/config_history.go b/repository/config_history.go index 8f13cfe..3d02bf3 100644 --- a/repository/config_history.go +++ b/repository/config_history.go @@ -5,7 +5,7 @@ import ( "fmt" "github.com/Masterminds/squirrel" - "github.com/pkg/errors" + "github.com/txix-open/isp-kit/errors" "isp-config-service/entity" "isp-config-service/middlewares/sql_metrics" "isp-config-service/service/rqlite/db" diff --git a/repository/config_schema.go b/repository/config_schema.go index 9ede86d..a4becc5 100644 --- a/repository/config_schema.go +++ b/repository/config_schema.go @@ -5,7 +5,7 @@ import ( "database/sql" "github.com/Masterminds/squirrel" - "github.com/pkg/errors" + "github.com/txix-open/isp-kit/errors" "isp-config-service/entity" "isp-config-service/middlewares/sql_metrics" "isp-config-service/service/rqlite/db" diff --git a/repository/event.go b/repository/event.go index 43c2fe3..b011909 100644 --- a/repository/event.go +++ b/repository/event.go @@ -5,7 +5,7 @@ import ( "fmt" "github.com/Masterminds/squirrel" - "github.com/pkg/errors" + "github.com/txix-open/isp-kit/errors" "isp-config-service/entity" "isp-config-service/entity/xtypes" "isp-config-service/middlewares/sql_metrics" diff --git a/repository/module.go b/repository/module.go index 6eec66c..8492c8d 100644 --- a/repository/module.go +++ b/repository/module.go @@ -5,7 +5,7 @@ import ( "fmt" "github.com/Masterminds/squirrel" - "github.com/pkg/errors" + "github.com/txix-open/isp-kit/errors" "isp-config-service/entity" "isp-config-service/middlewares/sql_metrics" "isp-config-service/service/rqlite/db" diff --git a/repository/variable.go b/repository/variable.go index b822c2f..f424092 100644 --- a/repository/variable.go +++ b/repository/variable.go @@ -6,7 +6,7 @@ import ( "strings" "github.com/Masterminds/squirrel" - "github.com/pkg/errors" + "github.com/txix-open/isp-kit/errors" "isp-config-service/entity" "isp-config-service/middlewares/sql_metrics" "isp-config-service/service/rqlite/db" diff --git a/routes/routes.go b/routes/routes.go index 36ed73e..86d95ee 100644 --- a/routes/routes.go +++ b/routes/routes.go @@ -27,12 +27,23 @@ type Controllers struct { } func EndpointDescriptors() []cluster.EndpointDescriptor { - return endpointDescriptors(Controllers{}) + c := Controllers{} + return concatEndpoints( + modulesDescriptors(c), + configsDescriptors(c), + variablesDescriptors(c), + ) } func GrpcHandler(wrapper endpoint.Wrapper, c Controllers) *grpc.Mux { muxer := grpc.NewMux() - for _, descriptor := range endpointDescriptors(c) { + for _, descriptor := range modulesDescriptors(c) { + muxer.Handle(descriptor.Path, wrapper.Endpoint(descriptor.Handler)) + } + for _, descriptor := range configsDescriptors(c) { + muxer.Handle(descriptor.Path, wrapper.Endpoint(descriptor.Handler)) + } + for _, descriptor := range variablesDescriptors(c) { muxer.Handle(descriptor.Path, wrapper.Endpoint(descriptor.Handler)) } return muxer @@ -67,106 +78,143 @@ func HttpHandler(etpSrv *etp.Server, conf conf.Local, rqliteProxy, rqliteBackupP return httpMux } -// nolint:funlen -func endpointDescriptors(c Controllers) []cluster.EndpointDescriptor { +func modulesDescriptors(c Controllers) []cluster.EndpointDescriptor { return []cluster.EndpointDescriptor{ - // modules { Path: "config/module/get_modules_info", Inner: true, + Extra: cluster.RequireAdminPermission("module_view"), Handler: c.ModuleApi.Status, }, { Path: "config/module/delete_module", Inner: true, + Extra: cluster.RequireAdminPermission("module_delete"), Handler: c.ModuleApi.DeleteModule, }, { Path: "config/routing/get_routes", Inner: true, + Extra: cluster.RequireAdminPermission("module_view"), Handler: c.ModuleApi.Connections, }, { Path: "config/module/get_required_modules", Inner: true, + Extra: cluster.RequireAdminPermission("module_view"), Handler: c.ModuleApi.RequiredModules, }, - // configs + } +} + +func configsDescriptors(c Controllers) []cluster.EndpointDescriptor { + return []cluster.EndpointDescriptor{ { Path: "config/config/get_active_config_by_module_name", Inner: true, + Extra: cluster.RequireAdminPermission("module_view"), Handler: c.ConfigApi.GetActiveConfigByModuleName, }, { Path: "config/config/get_configs_by_module_id", Inner: true, + Extra: cluster.RequireAdminPermission("module_view"), Handler: c.ConfigApi.GetConfigsByModuleId, }, { Path: "config/config/create_update_config", Inner: true, + Extra: cluster.RequireAdminPermission("module_configuration_edit"), Handler: c.ConfigApi.CreateUpdateConfig, }, { Path: "config/config/get_config_by_id", Inner: true, + Extra: cluster.RequireAdminPermission("module_view"), Handler: c.ConfigApi.GetConfigById, }, { Path: "config/config/mark_config_as_active", Inner: true, + Extra: cluster.RequireAdminPermission("module_configuration_set_active"), Handler: c.ConfigApi.MarkConfigAsActive, }, { Path: "config/config/update_config_name", Inner: true, + Extra: cluster.RequireAdminPermission("module_configuration_edit"), Handler: c.ConfigApi.UpdateConfigName, }, { Path: "config/config/delete_config", Inner: true, + Extra: cluster.RequireAdminPermission("module_configuration_edit"), Handler: c.ConfigApi.DeleteConfigs, }, { Path: "config/config/sync", Inner: true, + Extra: cluster.RequireAdminPermission("module_configuration_edit"), Handler: c.ConfigApi.SyncConfig, }, { Path: "config/config/get_all_version", Inner: true, + Extra: cluster.RequireAdminPermission("module_view"), Handler: c.ConfigHistoryApi.GetAllVersion, }, { Path: "config/config/delete_version", Inner: true, + Extra: cluster.RequireAdminPermission("module_history_delete_version"), Handler: c.ConfigHistoryApi.DeleteConfigVersion, }, { Path: "config/config/purge_versions", Inner: true, + Extra: cluster.RequireAdminPermission("module_history_delete_version"), Handler: c.ConfigHistoryApi.PurgeConfigVersions, }, { Path: "config/schema/get_by_module_id", Inner: true, + Extra: cluster.RequireAdminPermission("module_view"), Handler: c.ConfigSchemaApi.SchemaByModuleId, }, { Path: "config/schema/update_by_module_name", Inner: true, + Extra: cluster.RequireAdminPermission("module_configuration_edit"), Handler: c.ConfigSchemaApi.UpdateSchemaByModuleName, }, - // variables + } +} + +func variablesDescriptors(c Controllers) []cluster.EndpointDescriptor { + return []cluster.EndpointDescriptor{ { Path: "config/variable/all", Inner: true, + Extra: cluster.RequireAdminPermission("variable_view"), Handler: c.VariableApi.All, }, { Path: "config/variable/get_by_name", Inner: true, + Extra: cluster.RequireAdminPermission("variable_view"), Handler: c.VariableApi.GetByName, }, { Path: "config/variable/create", Inner: true, + Extra: cluster.RequireAdminPermission("variable_add"), Handler: c.VariableApi.Create, }, { Path: "config/variable/update", Inner: true, + Extra: cluster.RequireAdminPermission("variable_edit"), Handler: c.VariableApi.Update, }, { Path: "config/variable/upsert", Inner: true, + Extra: cluster.RequireAdminPermission("variable_edit"), Handler: c.VariableApi.Upsert, }, { Path: "config/variable/delete", Inner: true, + Extra: cluster.RequireAdminPermission("variable_delete"), Handler: c.VariableApi.Delete, }, } } + +func concatEndpoints(endpoints ...[]cluster.EndpointDescriptor) []cluster.EndpointDescriptor { + var result []cluster.EndpointDescriptor + for _, c := range endpoints { + result = append(result, c...) + } + return result +} diff --git a/service/api/config.go b/service/api/config.go index 2ab0fd8..f4ec769 100644 --- a/service/api/config.go +++ b/service/api/config.go @@ -5,8 +5,8 @@ import ( "time" "github.com/google/uuid" - "github.com/pkg/errors" "github.com/txix-open/go-cmp/cmp" + "github.com/txix-open/isp-kit/errors" "github.com/txix-open/isp-kit/json" "github.com/txix-open/isp-kit/log" "github.com/xeipuuv/gojsonschema" diff --git a/service/api/config_history.go b/service/api/config_history.go index b1d7ae8..9a0ca98 100644 --- a/service/api/config_history.go +++ b/service/api/config_history.go @@ -11,7 +11,7 @@ import ( "isp-config-service/domain" "isp-config-service/entity" - "github.com/pkg/errors" + "github.com/txix-open/isp-kit/errors" ) type ConfigHistoryRepo interface { diff --git a/service/api/config_schema.go b/service/api/config_schema.go index 4bc2e45..36eec1a 100644 --- a/service/api/config_schema.go +++ b/service/api/config_schema.go @@ -7,7 +7,7 @@ import ( "isp-config-service/domain" "isp-config-service/entity" - "github.com/pkg/errors" + "github.com/txix-open/isp-kit/errors" ) type ConfigSchema struct { diff --git a/service/api/module.go b/service/api/module.go index eab2c0a..e2a216a 100644 --- a/service/api/module.go +++ b/service/api/module.go @@ -6,7 +6,7 @@ import ( "slices" "time" - "github.com/pkg/errors" + "github.com/txix-open/isp-kit/errors" "github.com/txix-open/isp-kit/json" "golang.org/x/sync/errgroup" "isp-config-service/domain" @@ -58,17 +58,26 @@ func (s Module) Status(ctx context.Context) ([]domain.ModuleInfo, error) { group.Go(func() error { var err error modules, err = s.moduleRepo.All(ctx) - return errors.WithMessage(err, "get all modules") + if err != nil { + return errors.WithMessage(err, "get all modules") + } + return nil }) group.Go(func() error { var err error backends, err = s.backendsRepo.All(ctx) - return errors.WithMessage(err, "get all backends") + if err != nil { + return errors.WithMessage(err, "get all backends") + } + return nil }) group.Go(func() error { var err error schemas, err = s.schemaRepo.All(ctx) - return errors.WithMessage(err, "get all schemas") + if err != nil { + return errors.WithMessage(err, "get all schemas") + } + return nil }) err := group.Wait() if err != nil { @@ -116,12 +125,18 @@ func (s Module) RequiredModules(ctx context.Context) ([]domain.ModuleRelation, e group.Go(func() error { var err error modules, err = s.moduleRepo.All(groupCtx) - return errors.WithMessage(err, "get all modules") + if err != nil { + return errors.WithMessage(err, "get all modules") + } + return nil }) group.Go(func() error { var err error backends, err = s.backendsRepo.All(groupCtx) - return errors.WithMessage(err, "get all backends") + if err != nil { + return errors.WithMessage(err, "get all backends") + } + return nil }) err := group.Wait() if err != nil { diff --git a/service/event/cleaner.go b/service/event/cleaner.go index fec3088..d388869 100644 --- a/service/event/cleaner.go +++ b/service/event/cleaner.go @@ -5,7 +5,7 @@ import ( "fmt" "time" - "github.com/pkg/errors" + "github.com/txix-open/isp-kit/errors" "github.com/txix-open/isp-kit/log" "isp-config-service/entity/xtypes" ) diff --git a/service/event/compactor.go b/service/event/compactor.go index ea9d604..da96ffc 100644 --- a/service/event/compactor.go +++ b/service/event/compactor.go @@ -16,8 +16,7 @@ func NewCompactor() Compactor { func (c Compactor) Compact(events []entity.Event) []entity.Event { uniqueEvents := make([]entity.Event, 0, len(events)) uniqueEventKeys := make(map[string]bool, len(events)) - for i := len(events) - 1; i >= 0; i-- { - event := events[i] + for _, event := range slices.Backward(events) { key := event.Key() if uniqueEventKeys[key] { continue diff --git a/service/event/handler.go b/service/event/handler.go index ddc7899..fa37ac6 100644 --- a/service/event/handler.go +++ b/service/event/handler.go @@ -3,7 +3,7 @@ package event import ( "context" - "github.com/pkg/errors" + "github.com/txix-open/isp-kit/errors" "github.com/txix-open/isp-kit/log" "isp-config-service/entity" ) diff --git a/service/event/worker.go b/service/event/worker.go index 51143d7..ff2e002 100644 --- a/service/event/worker.go +++ b/service/event/worker.go @@ -3,7 +3,7 @@ package event import ( "context" - "github.com/pkg/errors" + "github.com/txix-open/isp-kit/errors" "github.com/txix-open/isp-kit/log" "isp-config-service/entity" "isp-config-service/entity/xtypes" diff --git a/service/metrics/service.go b/service/metrics/service.go index f39dedc..d340727 100644 --- a/service/metrics/service.go +++ b/service/metrics/service.go @@ -3,7 +3,7 @@ package metrics import ( "context" - "github.com/pkg/errors" + "github.com/txix-open/isp-kit/errors" "isp-config-service/domain" "isp-config-service/entity" ) diff --git a/service/module/backend/backend.go b/service/module/backend/backend.go index f027f49..59db87b 100644 --- a/service/module/backend/backend.go +++ b/service/module/backend/backend.go @@ -8,9 +8,9 @@ import ( "isp-config-service/entity" "isp-config-service/entity/xtypes" - "github.com/pkg/errors" "github.com/txix-open/etp/v4" "github.com/txix-open/isp-kit/cluster" + "github.com/txix-open/isp-kit/errors" "github.com/txix-open/isp-kit/log" ) diff --git a/service/module/backend/cleaner.go b/service/module/backend/cleaner.go index 4ebc566..eec7368 100644 --- a/service/module/backend/cleaner.go +++ b/service/module/backend/cleaner.go @@ -4,7 +4,7 @@ import ( "context" "fmt" - "github.com/pkg/errors" + "github.com/txix-open/isp-kit/errors" "github.com/txix-open/isp-kit/log" ) diff --git a/service/module/emitter.go b/service/module/emitter.go index d8b645c..f4acd73 100644 --- a/service/module/emitter.go +++ b/service/module/emitter.go @@ -7,8 +7,8 @@ import ( "github.com/txix-open/etp/v4" - "github.com/pkg/errors" "github.com/txix-open/isp-kit/cluster" + "github.com/txix-open/isp-kit/errors" "github.com/txix-open/isp-kit/log" "isp-config-service/helpers" ) diff --git a/service/module/service.go b/service/module/service.go index ae71330..248abe9 100644 --- a/service/module/service.go +++ b/service/module/service.go @@ -7,10 +7,10 @@ import ( "strings" "github.com/google/uuid" - "github.com/pkg/errors" "github.com/txix-open/etp/v4" "github.com/txix-open/etp/v4/store" "github.com/txix-open/isp-kit/cluster" + "github.com/txix-open/isp-kit/errors" "github.com/txix-open/isp-kit/log" "isp-config-service/domain" "isp-config-service/entity" diff --git a/service/rqlite/config_flags.go b/service/rqlite/config_flags.go index c928980..8715f9f 100644 --- a/service/rqlite/config_flags.go +++ b/service/rqlite/config_flags.go @@ -13,7 +13,7 @@ import ( "strings" "time" - "github.com/pkg/errors" + "github.com/txix-open/isp-kit/errors" ) // Config represents the configuration as set by command-line flags. diff --git a/service/rqlite/credentials.go b/service/rqlite/credentials.go index 9181ce7..d7b9c8d 100644 --- a/service/rqlite/credentials.go +++ b/service/rqlite/credentials.go @@ -3,8 +3,8 @@ package rqlite import ( "bytes" - "github.com/pkg/errors" "github.com/rqlite/rqlite/v10/auth" + "github.com/txix-open/isp-kit/errors" "github.com/txix-open/isp-kit/json" ) diff --git a/service/rqlite/db/db.go b/service/rqlite/db/db.go index 9030346..76e3097 100644 --- a/service/rqlite/db/db.go +++ b/service/rqlite/db/db.go @@ -4,8 +4,8 @@ import ( "context" "database/sql" - "github.com/pkg/errors" "github.com/tidwall/gjson" + "github.com/txix-open/isp-kit/errors" "github.com/txix-open/isp-kit/http/httpcli" "github.com/txix-open/isp-kit/json" ) diff --git a/service/rqlite/goose_store/store.go b/service/rqlite/goose_store/store.go index 5095a9c..9c98c1c 100644 --- a/service/rqlite/goose_store/store.go +++ b/service/rqlite/goose_store/store.go @@ -6,8 +6,8 @@ import ( "isp-config-service/repository" - "github.com/pkg/errors" "github.com/pressly/goose/v3/database" + "github.com/txix-open/isp-kit/errors" ) type Store struct { diff --git a/service/rqlite/internal/rtls/config.go b/service/rqlite/internal/rtls/config.go index c0f277a..83c736b 100644 --- a/service/rqlite/internal/rtls/config.go +++ b/service/rqlite/internal/rtls/config.go @@ -7,7 +7,7 @@ import ( "crypto/x509" "os" - "github.com/pkg/errors" + "github.com/txix-open/isp-kit/errors" ) // MTLSState indicates whether mutual TLS is enabled or disabled. diff --git a/service/rqlite/main.go b/service/rqlite/main.go index c4af1bb..3a2d1ff 100644 --- a/service/rqlite/main.go +++ b/service/rqlite/main.go @@ -19,7 +19,6 @@ import ( "isp-config-service/service/rqlite/internal/rarchive" "isp-config-service/service/rqlite/internal/rtls" - "github.com/pkg/errors" "github.com/rqlite/rqlite-disco-clients/dns" "github.com/rqlite/rqlite-disco-clients/dnssrv" "github.com/rqlite/rqlite/v10/auth" @@ -34,6 +33,7 @@ import ( "github.com/rqlite/rqlite/v10/store" "github.com/rqlite/rqlite/v10/tcp" "github.com/txix-open/isp-kit/config" + "github.com/txix-open/isp-kit/errors" ) const name = `rqlite` diff --git a/service/rqlite/runner.go b/service/rqlite/runner.go index 37dd623..dcdee56 100644 --- a/service/rqlite/runner.go +++ b/service/rqlite/runner.go @@ -10,10 +10,10 @@ import ( "github.com/rqlite/rqlite/v10/auth" "github.com/txix-open/isp-kit/http/httpcli" - "github.com/pkg/errors" _ "github.com/rqlite/gorqlite/stdlib" "github.com/rqlite/rqlite/v10/store" "github.com/txix-open/isp-kit/config" + "github.com/txix-open/isp-kit/errors" ) var ( diff --git a/service/startup/service.go b/service/startup/service.go index 5993201..4cfe3ac 100644 --- a/service/startup/service.go +++ b/service/startup/service.go @@ -12,12 +12,12 @@ import ( "isp-config-service/service/rqlite/db" "isp-config-service/service/rqlite/goose_store" - "github.com/pkg/errors" "github.com/pressly/goose/v3" "github.com/txix-open/isp-kit/app" "github.com/txix-open/isp-kit/bootstrap" "github.com/txix-open/isp-kit/cluster" "github.com/txix-open/isp-kit/dbx/migration" + "github.com/txix-open/isp-kit/errors" "github.com/txix-open/isp-kit/grpc" "github.com/txix-open/isp-kit/http" "github.com/txix-open/isp-kit/http/httpcli" diff --git a/service/subscription/service.go b/service/subscription/service.go index 256c07d..42a3e0c 100644 --- a/service/subscription/service.go +++ b/service/subscription/service.go @@ -5,8 +5,8 @@ import ( "github.com/txix-open/etp/v4" - "github.com/pkg/errors" "github.com/txix-open/isp-kit/cluster" + "github.com/txix-open/isp-kit/errors" "github.com/txix-open/isp-kit/json" "github.com/txix-open/isp-kit/log" "isp-config-service/entity" diff --git a/service/variable/service.go b/service/variable/service.go index d8d124a..a87676e 100644 --- a/service/variable/service.go +++ b/service/variable/service.go @@ -6,7 +6,7 @@ import ( "strings" "time" - "github.com/pkg/errors" + "github.com/txix-open/isp-kit/errors" "isp-config-service/domain" "isp-config-service/entity" "isp-config-service/entity/xtypes" diff --git a/tests/acceptance_test.go b/tests/acceptance_test.go index 7043d0d..a17389b 100644 --- a/tests/acceptance_test.go +++ b/tests/acceptance_test.go @@ -153,7 +153,7 @@ func newClusterClientWith( IP: host, Port: "9999", }, - Endpoints: nil, + EndpointsResolver: cluster.StaticEndpointResolver{}, MetricsAutodiscovery: metricsAd, }, cluster.ConfigData{ Version: "1.0.0",