diff --git a/go.mod b/go.mod index 20e9c30ac0cf..e4e78b47d711 100644 --- a/go.mod +++ b/go.mod @@ -17,7 +17,6 @@ require ( github.com/aws/aws-sdk-go v1.44.288 github.com/beevik/etree v1.1.0 github.com/beevik/ntp v0.3.0 - github.com/boltdb/bolt v1.3.1 github.com/briandowns/spinner v1.13.0 github.com/cenkalti/backoff v2.2.1+incompatible github.com/cenkalti/backoff/v4 v4.2.1 @@ -104,6 +103,7 @@ require ( go.elastic.co/apm/module/apmgorilla/v2 v2.3.0 go.elastic.co/apm/module/apmsql/v2 v2.4.3 go.elastic.co/apm/v2 v2.4.3 + go.etcd.io/bbolt v1.3.6 go.mozilla.org/pkcs7 v0.0.0-20210826202110-33d05740a352 go.opentelemetry.io/contrib/instrumentation/github.com/gorilla/mux/otelmux v0.44.0 go.opentelemetry.io/otel v1.19.0 diff --git a/go.sum b/go.sum index 414f57041d71..866a29d97387 100644 --- a/go.sum +++ b/go.sum @@ -287,8 +287,6 @@ github.com/bgentry/speakeasy v0.1.0/go.mod h1:+zsyZBPWlz7T6j88CTgSN5bM796AkVf0kB github.com/bketelsen/crypt v0.0.3-0.20200106085610-5cbc8cc4026c/go.mod h1:MKsuJmJgSg28kpZDP6UIiPt0e0Oz0kqKNGyRaWEPv84= github.com/blakesmith/ar v0.0.0-20190502131153-809d4375e1fb h1:m935MPodAbYS46DG4pJSv7WO+VECIWUQ7OJYSoTrMh4= github.com/blakesmith/ar v0.0.0-20190502131153-809d4375e1fb/go.mod h1:PkYb9DJNAwrSvRx5DYA+gUcOIgTGVMNkfSCbZM8cWpI= -github.com/boltdb/bolt v1.3.1 h1:JQmyP4ZBrce+ZQu0dY660FMfatumYDLun9hBCUVIkF4= -github.com/boltdb/bolt v1.3.1/go.mod h1:clJnj/oiGkjum5o1McbSZDSLxVThjynRyGBgiAx27Ps= github.com/briandowns/spinner v1.13.0 h1:q/Y9LtpwtvL0CRzXrAMj0keVXqNhBYUFg6tBOUiY8ek= github.com/briandowns/spinner v1.13.0/go.mod h1:QOuQk7x+EaDASo80FEXwlwiA+j/PPIcX3FScO+3/ZPQ= github.com/bwesterb/go-ristretto v1.2.3/go.mod h1:fUIoIZaG73pV5biE2Blr2xEzDoMj7NFEuV9ekS419A0= @@ -1234,6 +1232,8 @@ go.elastic.co/apm/v2 v2.4.3/go.mod h1:+CiBUdrrAGnGCL9TNx7tQz3BrfYV23L8Ljvotoc87s go.elastic.co/fastjson v1.1.0 h1:3MrGBWWVIxe/xvsbpghtkFoPciPhOCmjsR/HfwEeQR4= go.elastic.co/fastjson v1.1.0/go.mod h1:boNGISWMjQsUPy/t6yqt2/1Wx4YNPSe+mZjlyw9vKKI= go.etcd.io/bbolt v1.3.2/go.mod h1:IbVyRI1SCnLcuJnV2u8VeU0CEYM7e686BmAb1XKL+uU= +go.etcd.io/bbolt v1.3.6 h1:/ecaJf0sk1l4l6V4awd65v2C3ILy7MSj+s/x1ADCIMU= +go.etcd.io/bbolt v1.3.6/go.mod h1:qXsaaIqmgQH0T+OPdb99Bf+PKfBBQVAdyD6TY9G8XM4= go.etcd.io/etcd/api/v3 v3.5.1/go.mod h1:cbVKeC6lCfl7j/8jBhAK6aIYO9XOjdptoxU/nLQcPvs= go.etcd.io/etcd/client/pkg/v3 v3.5.1/go.mod h1:IJHfcCEKxYu1Os13ZdwCwIUTUVGYTSAM3YSwc9/Ac1g= go.etcd.io/etcd/client/v2 v2.305.1/go.mod h1:pMEacxZW7o8pg4CrFE7pquyCJJzZvkvdD2RibOCCCGs= @@ -1522,6 +1522,7 @@ golang.org/x/sys v0.0.0-20200625212154-ddb9806d33ae/go.mod h1:h1NjWce9XRLGQEsW7w golang.org/x/sys v0.0.0-20200803210538-64077c9b5642/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200828194041-157a740278f4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200905004654-be1d3432aa8f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200923182605-d9f96fdee20d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20201109165425-215b40eba54c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= diff --git a/server/mdm/scep/challenge/bolt/challenge.go b/server/mdm/scep/challenge/bolt/challenge.go index 77e2d091c7ab..bc528259b92d 100644 --- a/server/mdm/scep/challenge/bolt/challenge.go +++ b/server/mdm/scep/challenge/bolt/challenge.go @@ -6,7 +6,7 @@ import ( "errors" "fmt" - "github.com/boltdb/bolt" + bolt "go.etcd.io/bbolt" ) type Depot struct { diff --git a/server/mdm/scep/challenge/challenge_bolt_test.go b/server/mdm/scep/challenge/challenge_bolt_test.go index 8a58719d6167..4f6ae7e3fe4c 100644 --- a/server/mdm/scep/challenge/challenge_bolt_test.go +++ b/server/mdm/scep/challenge/challenge_bolt_test.go @@ -9,7 +9,7 @@ import ( "github.com/fleetdm/fleet/v4/server/mdm/scep/scep" scepserver "github.com/fleetdm/fleet/v4/server/mdm/scep/server" - "github.com/boltdb/bolt" + bolt "go.etcd.io/bbolt" ) func TestDynamicChallenge(t *testing.T) { diff --git a/server/mdm/scep/depot/bolt/depot.go b/server/mdm/scep/depot/bolt/depot.go index a078afadf190..eb85e4ec17a9 100644 --- a/server/mdm/scep/depot/bolt/depot.go +++ b/server/mdm/scep/depot/bolt/depot.go @@ -11,7 +11,7 @@ import ( "github.com/fleetdm/fleet/v4/server/mdm/scep/depot" - "github.com/boltdb/bolt" + bolt "go.etcd.io/bbolt" ) // Depot implements a SCEP certificate store using boltdb. diff --git a/server/mdm/scep/depot/bolt/depot_test.go b/server/mdm/scep/depot/bolt/depot_test.go index c19f6290aec3..837df03310d7 100644 --- a/server/mdm/scep/depot/bolt/depot_test.go +++ b/server/mdm/scep/depot/bolt/depot_test.go @@ -7,7 +7,7 @@ import ( "reflect" "testing" - "github.com/boltdb/bolt" + bolt "go.etcd.io/bbolt" ) // createDepot creates a Bolt database in a temporary location. diff --git a/server/mdm/scep/server/service_bolt_test.go b/server/mdm/scep/server/service_bolt_test.go index f85ef1d65215..e0c8db1fcdb0 100644 --- a/server/mdm/scep/server/service_bolt_test.go +++ b/server/mdm/scep/server/service_bolt_test.go @@ -19,7 +19,7 @@ import ( "github.com/fleetdm/fleet/v4/server/mdm/scep/scep" scepserver "github.com/fleetdm/fleet/v4/server/mdm/scep/server" - "github.com/boltdb/bolt" + bolt "go.etcd.io/bbolt" ) func TestCaCert(t *testing.T) {