Skip to content

Commit

Permalink
fix(deps): update github.com/thanos-io/objstore digest to 37752ee (ma…
Browse files Browse the repository at this point in the history
…in) (#6622)

* fix(deps): update github.com/thanos-io/objstore digest to 37752ee

* Add an S3 flag to send a Content-MD5 header

* Formatting from resolving conflicts

* make reference-help

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Andy Asp <[email protected]>
Co-authored-by: Andy Asp <[email protected]>
  • Loading branch information
3 people authored Nov 16, 2023
1 parent 557992b commit 121075b
Show file tree
Hide file tree
Showing 12 changed files with 84 additions and 7 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
* [FEATURE] Vault: Added support for new Vault authentication methods: `AppRole`, `Kubernetes`, `UserPass` and `Token`. #6143
* [FEATURE] Add experimental endpoint `/api/v1/cardinality/active_series` to return the set of active series for a given selector. #6536 #6619 #6651 #6667
* [FEATURE] Added `-<prefix>.s3.part-size` flag to configure the S3 minimum file size in bytes used for multipart uploads. #6592
* [FEATURE] Add the experimental `-<prefix>.s3.send-content-md5` flag (defaults to `false`) to configure S3 Put Object requests to send a `Content-MD5` header. Setting this flag is not recommended unless your object storage does not support checksums. #6622
* [ENHANCEMENT] Ingester: exported summary `cortex_ingester_inflight_push_requests_summary` tracking total number of inflight requests in percentile buckets. #5845
* [ENHANCEMENT] Query-scheduler: add `cortex_query_scheduler_enqueue_duration_seconds` metric that records the time taken to enqueue or reject a query request. #5879
* [ENHANCEMENT] Query-frontend: add `cortex_query_frontend_enqueue_duration_seconds` metric that records the time taken to enqueue or reject a query request. When query-scheduler is in use, the metric has the `scheduler_address` label to differentiate the enqueue duration by query-scheduler backend. #5879 #6087 #6120
Expand Down
44 changes: 44 additions & 0 deletions cmd/mimir/config-descriptor.json
Original file line number Diff line number Diff line change
Expand Up @@ -5714,6 +5714,17 @@
"fieldType": "int",
"fieldCategory": "experimental"
},
{
"kind": "field",
"name": "send_content_md5",
"required": false,
"desc": "If enabled, a Content-MD5 header is sent with S3 Put Object requests. Consumes more resources to compute the MD5, but may improve compatibility with object storage services that do not support checksums.",
"fieldValue": null,
"fieldDefaultValue": false,
"fieldFlag": "blocks-storage.s3.send-content-md5",
"fieldType": "boolean",
"fieldCategory": "experimental"
},
{
"kind": "block",
"name": "sse",
Expand Down Expand Up @@ -11600,6 +11611,17 @@
"fieldType": "int",
"fieldCategory": "experimental"
},
{
"kind": "field",
"name": "send_content_md5",
"required": false,
"desc": "If enabled, a Content-MD5 header is sent with S3 Put Object requests. Consumes more resources to compute the MD5, but may improve compatibility with object storage services that do not support checksums.",
"fieldValue": null,
"fieldDefaultValue": false,
"fieldFlag": "ruler-storage.s3.send-content-md5",
"fieldType": "boolean",
"fieldCategory": "experimental"
},
{
"kind": "block",
"name": "sse",
Expand Down Expand Up @@ -13631,6 +13653,17 @@
"fieldType": "int",
"fieldCategory": "experimental"
},
{
"kind": "field",
"name": "send_content_md5",
"required": false,
"desc": "If enabled, a Content-MD5 header is sent with S3 Put Object requests. Consumes more resources to compute the MD5, but may improve compatibility with object storage services that do not support checksums.",
"fieldValue": null,
"fieldDefaultValue": false,
"fieldFlag": "alertmanager-storage.s3.send-content-md5",
"fieldType": "boolean",
"fieldCategory": "experimental"
},
{
"kind": "block",
"name": "sse",
Expand Down Expand Up @@ -15906,6 +15939,17 @@
"fieldType": "int",
"fieldCategory": "experimental"
},
{
"kind": "field",
"name": "send_content_md5",
"required": false,
"desc": "If enabled, a Content-MD5 header is sent with S3 Put Object requests. Consumes more resources to compute the MD5, but may improve compatibility with object storage services that do not support checksums.",
"fieldValue": null,
"fieldDefaultValue": false,
"fieldFlag": "common.storage.s3.send-content-md5",
"fieldType": "boolean",
"fieldCategory": "experimental"
},
{
"kind": "block",
"name": "sse",
Expand Down
8 changes: 8 additions & 0 deletions cmd/mimir/help-all.txt.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ Usage of ./cmd/mimir/mimir:
S3 region. If unset, the client will issue a S3 GetBucketLocation API call to autodetect it.
-alertmanager-storage.s3.secret-access-key string
S3 secret access key
-alertmanager-storage.s3.send-content-md5
[experimental] If enabled, a Content-MD5 header is sent with S3 Put Object requests. Consumes more resources to compute the MD5, but may improve compatibility with object storage services that do not support checksums.
-alertmanager-storage.s3.signature-version string
The signature version to use for authenticating against S3. Supported values are: v4, v2. (default "v4")
-alertmanager-storage.s3.sse.kms-encryption-context string
Expand Down Expand Up @@ -703,6 +705,8 @@ Usage of ./cmd/mimir/mimir:
S3 region. If unset, the client will issue a S3 GetBucketLocation API call to autodetect it.
-blocks-storage.s3.secret-access-key string
S3 secret access key
-blocks-storage.s3.send-content-md5
[experimental] If enabled, a Content-MD5 header is sent with S3 Put Object requests. Consumes more resources to compute the MD5, but may improve compatibility with object storage services that do not support checksums.
-blocks-storage.s3.signature-version string
The signature version to use for authenticating against S3. Supported values are: v4, v2. (default "v4")
-blocks-storage.s3.sse.kms-encryption-context string
Expand Down Expand Up @@ -865,6 +869,8 @@ Usage of ./cmd/mimir/mimir:
S3 region. If unset, the client will issue a S3 GetBucketLocation API call to autodetect it.
-common.storage.s3.secret-access-key string
S3 secret access key
-common.storage.s3.send-content-md5
[experimental] If enabled, a Content-MD5 header is sent with S3 Put Object requests. Consumes more resources to compute the MD5, but may improve compatibility with object storage services that do not support checksums.
-common.storage.s3.signature-version string
The signature version to use for authenticating against S3. Supported values are: v4, v2. (default "v4")
-common.storage.s3.sse.kms-encryption-context string
Expand Down Expand Up @@ -2253,6 +2259,8 @@ Usage of ./cmd/mimir/mimir:
S3 region. If unset, the client will issue a S3 GetBucketLocation API call to autodetect it.
-ruler-storage.s3.secret-access-key string
S3 secret access key
-ruler-storage.s3.send-content-md5
[experimental] If enabled, a Content-MD5 header is sent with S3 Put Object requests. Consumes more resources to compute the MD5, but may improve compatibility with object storage services that do not support checksums.
-ruler-storage.s3.signature-version string
The signature version to use for authenticating against S3. Supported values are: v4, v2. (default "v4")
-ruler-storage.s3.sse.kms-encryption-context string
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4553,6 +4553,12 @@ The s3_backend block configures the connection to Amazon S3 object storage backe
# CLI flag: -<prefix>.s3.part-size
[part_size: <int> | default = 0]
# (experimental) If enabled, a Content-MD5 header is sent with S3 Put Object
# requests. Consumes more resources to compute the MD5, but may improve
# compatibility with object storage services that do not support checksums.
# CLI flag: -<prefix>.s3.send-content-md5
[send_content_md5: <boolean> | default = false]
sse:
# Enable AWS Server Side Encryption. Supported values: SSE-KMS, SSE-S3.
# CLI flag: -<prefix>.s3.sse.type
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ require (
github.com/open-telemetry/opentelemetry-collector-contrib/pkg/translator/prometheus v0.84.0
github.com/open-telemetry/opentelemetry-collector-contrib/pkg/translator/prometheusremotewrite v0.84.0
github.com/prometheus/procfs v0.12.0
github.com/thanos-io/objstore v0.0.0-20231025225615-ff7faac741fb
github.com/thanos-io/objstore v0.0.0-20231112185854-37752ee64d98
github.com/xlab/treeprint v1.2.0
go.opentelemetry.io/collector/pdata v1.0.0-rcv0017
go.opentelemetry.io/otel v1.19.0
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -943,8 +943,8 @@ github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXl
github.com/subosito/gotenv v1.4.1/go.mod h1:ayKnFf/c6rvx/2iiLrJUk1e6plDbT3edrFNGqEflhK0=
github.com/tencentyun/cos-go-sdk-v5 v0.7.40 h1:W6vDGKCHe4wBACI1d2UgE6+50sJFhRWU4O8IB2ozzxM=
github.com/tencentyun/cos-go-sdk-v5 v0.7.40/go.mod h1:4dCEtLHGh8QPxHEkgq+nFaky7yZxQuYwgSJM87icDaw=
github.com/thanos-io/objstore v0.0.0-20231025225615-ff7faac741fb h1:fZuIuOSHsaUOJqvcWlIgt1lACXLF1073TmRuzoByQqw=
github.com/thanos-io/objstore v0.0.0-20231025225615-ff7faac741fb/go.mod h1:q369VBtseI5OQbK9IsGDfQCfcVu1fsur7ynUcojxnDA=
github.com/thanos-io/objstore v0.0.0-20231112185854-37752ee64d98 h1:gx2MTto1UQRumGoJzY3aFPQ31Ov3nOV7NaD7j6q288k=
github.com/thanos-io/objstore v0.0.0-20231112185854-37752ee64d98/go.mod h1:JauBAcJ61tRSv9widgISVmA6akQXDeUMXBrVmWW4xog=
github.com/tidwall/pretty v1.0.0/go.mod h1:XNkn88O1ChpSDQmQeStsy+sBenx6DDtFZJxhVysOjyk=
github.com/tv42/httpunix v0.0.0-20150427012821-b75d8614f926/go.mod h1:9ESjWnEqriFuLhtthL60Sar/7RFoluCcXsuvEwTV5KM=
github.com/uber/jaeger-client-go v2.30.0+incompatible h1:D6wyKGCecFaSRUpo8lCVbaOOb6ThwMmTEbhRwtKR97o=
Expand Down
1 change: 1 addition & 0 deletions pkg/storage/bucket/s3/bucket_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ func newS3Config(cfg Config) (s3.Config, error) {
SecretKey: cfg.SecretAccessKey.String(),
Insecure: cfg.Insecure,
PutUserMetadata: putUserMetadata,
SendContentMd5: cfg.SendContentMd5,
SSEConfig: sseCfg,
ListObjectsVersion: cfg.ListObjectsVersion,
AWSSDKAuth: cfg.NativeAWSAuthEnabled,
Expand Down
2 changes: 2 additions & 0 deletions pkg/storage/bucket/s3/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ type Config struct {
StorageClass string `yaml:"storage_class" category:"experimental"`
NativeAWSAuthEnabled bool `yaml:"native_aws_auth_enabled" category:"experimental"`
PartSize uint64 `yaml:"part_size" category:"experimental"`
SendContentMd5 bool `yaml:"send_content_md5" category:"experimental"`

SSE SSEConfig `yaml:"sse"`
HTTP HTTPConfig `yaml:"http"`
Expand All @@ -109,6 +110,7 @@ func (cfg *Config) RegisterFlagsWithPrefix(prefix string, f *flag.FlagSet) {
f.StringVar(&cfg.StorageClass, prefix+"s3.storage-class", "", "The S3 storage class to use, not set by default. Details can be found at https://aws.amazon.com/s3/storage-classes/. Supported values are: "+strings.Join(supportedStorageClasses, ", "))
f.BoolVar(&cfg.NativeAWSAuthEnabled, prefix+"s3.native-aws-auth-enabled", false, "If enabled, it will use the default authentication methods of the AWS SDK for go based on known environment variables and known AWS config files.")
f.Uint64Var(&cfg.PartSize, prefix+"s3.part-size", 0, "The minimum file size in bytes used for multipart uploads. If 0, the value is optimally computed for each object.")
f.BoolVar(&cfg.SendContentMd5, prefix+"s3.send-content-md5", false, "If enabled, a Content-MD5 header is sent with S3 Put Object requests. Consumes more resources to compute the MD5, but may improve compatibility with object storage services that do not support checksums.")
cfg.SSE.RegisterFlagsWithPrefix(prefix+"s3.sse.", f)
cfg.HTTP.RegisterFlagsWithPrefix(prefix, f)
}
Expand Down
1 change: 1 addition & 0 deletions vendor/github.com/thanos-io/objstore/CHANGELOG.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 12 additions & 3 deletions vendor/github.com/thanos-io/objstore/providers/azure/helpers.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions vendor/github.com/thanos-io/objstore/providers/s3/s3.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion vendor/modules.txt

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 121075b

Please sign in to comment.