diff --git a/CHANGELOG.md b/CHANGELOG.md index 9af5342c392..7c3d70f723e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -84,6 +84,7 @@ * [BUGFIX] Experimental Alertmanager API: Do not allow empty Alertmanager configurations or bad template filenames to be submitted through the configuration API. #3185 * [BUGFIX] Reduce failures to update heartbeat when using Consul. #3259 * [BUGFIX] When using ruler sharding, moving all user rule groups from ruler to a different one and then back could end up with some user groups not being evaluated at all. #3235 +* [BUGFIX] Use a valid grpc header when logging IP addresses. #3307 * [BUGFIX] Fixes the metric `cortex_prometheus_rule_group_duration_seconds` in the Ruler, it wouldn't report any values. #3310 ## 1.4.0 / 2020-10-02 diff --git a/pkg/util/extract_forwarded.go b/pkg/util/extract_forwarded.go index 79eca5723c4..9cacf3b3a4e 100644 --- a/pkg/util/extract_forwarded.go +++ b/pkg/util/extract_forwarded.go @@ -7,7 +7,7 @@ import ( ) // ipAddressesKey is key for the GRPC metadata where the IP addresses are stored -const ipAddressesKey = "github.com/cortexproject/cortex/util/extract_forwarded/x-forwarded-for" +const ipAddressesKey = "extract-forwarded-x-forwarded-for" // GetSourceIPsFromOutgoingCtx extracts the source field from the GRPC context func GetSourceIPsFromOutgoingCtx(ctx context.Context) string {