diff --git a/CHANGELOG.md b/CHANGELOG.md index 60d9fa90..dba97687 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -44,4 +44,5 @@ We use *breaking :warning:* to mark changes that are not backward compatible (re - [#65](https://github.com/thanos-io/objstore/pull/65) *: Upgrade minio-go version to `v7.0.61`. - [#70](https://github.com/thanos-io/objstore/pull/70) GCS: Update cloud.google.com/go/storage version to `v1.27.0`. - [#71](https://github.com/thanos-io/objstore/pull/71) Replace method `IsCustomerManagedKeyError` for a more generic `IsAccessDeniedErr` on the bucket interface. +- [#88](https://github.com/thanos-io/objstore/pull/88) breaking :warning: GCS,S3,BOS: Remove thanos- prefix from the user agent ### Removed diff --git a/providers/bos/bos.go b/providers/bos/bos.go index 72e1b1e0..b7bb4a67 100644 --- a/providers/bos/bos.go +++ b/providers/bos/bos.go @@ -89,7 +89,7 @@ func NewBucketWithConfig(logger log.Logger, config Config, component string) (*B return nil, errors.Wrap(err, "creating BOS client") } - client.Config.UserAgent = fmt.Sprintf("thanos-%s", component) + client.Config.UserAgent = component bkt := &Bucket{ logger: logger, diff --git a/providers/gcs/gcs.go b/providers/gcs/gcs.go index ad305d6e..66184c15 100644 --- a/providers/gcs/gcs.go +++ b/providers/gcs/gcs.go @@ -72,7 +72,7 @@ func NewBucketWithConfig(ctx context.Context, logger log.Logger, gc Config, comp } opts = append(opts, - option.WithUserAgent(fmt.Sprintf("thanos-%s/%s (%s)", component, version.Version, runtime.Version())), + option.WithUserAgent(fmt.Sprintf("%s/%s (%s)", component, version.Version, runtime.Version())), ) gcsClient, err := storage.NewClient(ctx, opts...) diff --git a/providers/s3/s3.go b/providers/s3/s3.go index 507b550b..c2e96b36 100644 --- a/providers/s3/s3.go +++ b/providers/s3/s3.go @@ -272,7 +272,7 @@ func NewBucketWithConfig(logger log.Logger, config Config, component string) (*B if err != nil { return nil, errors.Wrap(err, "initialize s3 client") } - client.SetAppInfo(fmt.Sprintf("thanos-%s", component), fmt.Sprintf("%s (%s)", version.Version, runtime.Version())) + client.SetAppInfo(component, fmt.Sprintf("%s (%s)", version.Version, runtime.Version())) var sse encrypt.ServerSide if config.SSEConfig.Type != "" {