Skip to content

Commit d47fcfc

Browse files
fpetkovskisaswatamcode
authored andcommitted
Merge pull request thanos-io#7674 from didukh86/query_frontend_tls_redis_fix
Query-frontend: Fix connection to Redis cluster with TLS.
1 parent 889d527 commit d47fcfc

File tree

2 files changed

+10
-7
lines changed

2 files changed

+10
-7
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ We use *breaking :warning:* to mark changes that are not backward compatible (re
1919
- [#7658](https://github.com/thanos-io/thanos/pull/7658) Store: Fix panic because too small buffer in pool.
2020
- [#7643](https://github.com/thanos-io/thanos/pull/7643) Receive: fix thanos_receive_write_{timeseries,samples} stats
2121
- [#7644](https://github.com/thanos-io/thanos/pull/7644) fix(ui): add null check to find overlapping blocks logic
22+
- [#7674](https://github.com/thanos-io/thanos/pull/7674) Query-frontend: Fix connection to Redis cluster with TLS.
2223
- [#7814](https://github.com/thanos-io/thanos/pull/7814) Store: label_values: if matchers contain **name**=="something", do not add <labelname> != "" to fetch less postings.
2324
- [#7679](https://github.com/thanos-io/thanos/pull/7679) Query: respect store.limit.* flags when evaluating queries
2425
- [#7821](https://github.com/thanos-io/thanos/pull/7821) Query/Receive: Fix coroutine leak introduced in https://github.com/thanos-io/thanos/pull/7796.

pkg/queryfrontend/config.go

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -162,13 +162,15 @@ func NewCacheConfig(logger log.Logger, confContentYaml []byte) (*cortexcache.Con
162162
}
163163
return &cortexcache.Config{
164164
Redis: cortexcache.RedisConfig{
165-
Endpoint: config.Redis.Addr,
166-
Timeout: config.Redis.ReadTimeout,
167-
MasterName: config.Redis.MasterName,
168-
Expiration: config.Expiration,
169-
DB: config.Redis.DB,
170-
Password: flagext.Secret{Value: config.Redis.Password},
171-
Username: config.Redis.Username,
165+
Endpoint: config.Redis.Addr,
166+
Timeout: config.Redis.ReadTimeout,
167+
MasterName: config.Redis.MasterName,
168+
Expiration: config.Expiration,
169+
DB: config.Redis.DB,
170+
Password: flagext.Secret{Value: config.Redis.Password},
171+
Username: config.Redis.Username,
172+
EnableTLS: config.Redis.TLSEnabled,
173+
InsecureSkipVerify: config.Redis.TLSConfig.InsecureSkipVerify,
172174
},
173175
Background: cortexcache.BackgroundConfig{
174176
WriteBackBuffer: config.Redis.MaxSetMultiConcurrency * config.Redis.SetMultiBatchSize,

0 commit comments

Comments
 (0)