From 8fe520e06084f123c1c560d6c48eafaa6d7748fe Mon Sep 17 00:00:00 2001 From: Friedrich Gonzalez Date: Wed, 5 Oct 2022 23:24:45 +0200 Subject: [PATCH] Allowing to enable AWS SDK for go authentication Signed-off-by: Friedrich Gonzalez --- CHANGELOG.md | 1 + pkg/storage/bucket/s3/bucket_client.go | 1 + 2 files changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index dba69562d29..06e979d3071 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -58,6 +58,7 @@ * [FEATURE] Storage/Bucket: Added `-*.s3.bucket-lookup-type` allowing to configure the s3 bucket lookup type. #4794 * [FEATURE] QueryFrontend: Implement experimental vertical sharding at query frontend for range/instant queries. #4863 * [FEATURE] Querier: Added a new limit `-querier.max-fetched-data-bytes-per-query` allowing to limit the maximum size of all data in bytes that a query can fetch from each ingester and storage. #4854 +* [BUGFIX] Storage/Bucket: Enable AWS SDK for go authentication for s3 to fix IMDSv1 authentication. #4897 * [BUGFIX] Memberlist: Add join with no retrying when starting service. #4804 * [BUGFIX] Ruler: Fix /ruler/rule_groups returns YAML with extra fields. #4767 * [BUGFIX] Respecting `-tracing.otel.sample-ratio` configuration when enabling OpenTelemetry tracing with X-ray. #4862 diff --git a/pkg/storage/bucket/s3/bucket_client.go b/pkg/storage/bucket/s3/bucket_client.go index 59a79480bde..89d10101583 100644 --- a/pkg/storage/bucket/s3/bucket_client.go +++ b/pkg/storage/bucket/s3/bucket_client.go @@ -59,5 +59,6 @@ func newS3Config(cfg Config) (s3.Config, error) { // Enforce signature version 2 if CLI flag is set SignatureV2: cfg.SignatureVersion == SignatureVersionV2, BucketLookupType: bucketLookupType, + AWSSDKAuth: cfg.AccessKeyID == "", }, nil }