Skip to content

Commit 75c29db

Browse files
committed
Merge branch 'release-1.8'.
Signed-off-by: Peter Štibraný <peter.stibrany@grafana.com>
2 parents 5fc0350 + 8cf4eef commit 75c29db

12 files changed

+38
-11
lines changed

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,10 @@
7878

7979
* [ENHANCEMENT] Builder: add `-builder.timestamp-tolerance` option which may reduce block size by rounding timestamps to make difference whole seconds. #3891
8080

81+
## 1.8.1 / 2021-04-27
82+
83+
* [CHANGE] Fix for CVE-2021-31232: Local file disclosure vulnerability when `-experimental.alertmanager.enable-api` is used. The HTTP basic auth `password_file` can be used as an attack vector to send any file content via a webhook. The alertmanager templates can be used as an attack vector to send any file content because the alertmanager can load any text file specified in the templates list.
84+
8185
## 1.8.0 / 2021-03-24
8286

8387
* [CHANGE] Alertmanager: Don't expose cluster information to tenants via the `/alertmanager/api/v1/status` API endpoint when operating with clustering enabled. #3903
@@ -181,6 +185,10 @@
181185
* [BUGFIX] Alertmanager: Ensure that experimental `/api/v1/alerts` endpoints work when `-http.prefix` is empty. #3905
182186
* [BUGFIX] Chunk store: fix panic in inverted index when deleted fingerprint is no longer in the index. #3543
183187

188+
## 1.7.1 / 2021-04-27
189+
190+
* [CHANGE] Fix for CVE-2021-31232: Local file disclosure vulnerability when `-experimental.alertmanager.enable-api` is used. The HTTP basic auth `password_file` can be used as an attack vector to send any file content via a webhook. The alertmanager templates can be used as an attack vector to send any file content because the alertmanager can load any text file specified in the templates list.
191+
184192
## 1.7.0 / 2021-02-23
185193

186194
Note the blocks storage compactor runs a migration task at startup in this version, which can take many minutes and use a lot of RAM.

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.8.0
1+
1.8.1

docs/chunks-storage/running-chunks-storage-with-cassandra.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,12 +109,12 @@ storage:
109109
```
110110

111111
The latest tag is not published for the Cortex docker image. Visit quay.io/repository/cortexproject/cortex
112-
to find the latest stable version tag and use it in the command below (currently it is `v1.8.0`).
112+
to find the latest stable version tag and use it in the command below (currently it is `v1.8.1`).
113113

114114
Run Cortex using the latest stable version:
115115

116116
```
117-
docker run -d --name=cortex -v $(pwd)/single-process-config.yaml:/etc/single-process-config.yaml -p 9009:9009 quay.io/cortexproject/cortex:v1.8.0 -config.file=/etc/single-process-config.yaml
117+
docker run -d --name=cortex -v $(pwd)/single-process-config.yaml:/etc/single-process-config.yaml -p 9009:9009 quay.io/cortexproject/cortex:v1.8.1 -config.file=/etc/single-process-config.yaml
118118
```
119119
In case you prefer to run the master version, please follow this [documentation](./chunks-storage-getting-started.md) on how to build Cortex from source.
120120

k8s/alertmanager-dep.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ spec:
1515
spec:
1616
containers:
1717
- name: alertmanager
18-
image: quay.io/cortexproject/cortex:v1.8.0
18+
image: quay.io/cortexproject/cortex:v1.8.1
1919
imagePullPolicy: IfNotPresent
2020
args:
2121
- -target=alertmanager

k8s/configs-dep.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ spec:
1515
spec:
1616
containers:
1717
- name: configs
18-
image: quay.io/cortexproject/cortex:v1.8.0
18+
image: quay.io/cortexproject/cortex:v1.8.1
1919
imagePullPolicy: IfNotPresent
2020
args:
2121
- -target=configs

k8s/distributor-dep.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ spec:
1515
spec:
1616
containers:
1717
- name: distributor
18-
image: quay.io/cortexproject/cortex:v1.8.0
18+
image: quay.io/cortexproject/cortex:v1.8.1
1919
imagePullPolicy: IfNotPresent
2020
args:
2121
- -target=distributor

k8s/ingester-dep.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ spec:
3737

3838
containers:
3939
- name: ingester
40-
image: quay.io/cortexproject/cortex:v1.8.0
40+
image: quay.io/cortexproject/cortex:v1.8.1
4141
imagePullPolicy: IfNotPresent
4242
args:
4343
- -target=ingester

k8s/querier-dep.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ spec:
1515
spec:
1616
containers:
1717
- name: querier
18-
image: quay.io/cortexproject/cortex:v1.8.0
18+
image: quay.io/cortexproject/cortex:v1.8.1
1919
imagePullPolicy: IfNotPresent
2020
args:
2121
- -target=querier

k8s/query-frontend-dep.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ spec:
1515
spec:
1616
containers:
1717
- name: query-frontend
18-
image: quay.io/cortexproject/cortex:v1.8.0
18+
image: quay.io/cortexproject/cortex:v1.8.1
1919
imagePullPolicy: IfNotPresent
2020
args:
2121
- -target=query-frontend

k8s/ruler-dep.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ spec:
1515
spec:
1616
containers:
1717
- name: ruler
18-
image: quay.io/cortexproject/cortex:v1.8.0
18+
image: quay.io/cortexproject/cortex:v1.8.1
1919
imagePullPolicy: IfNotPresent
2020
args:
2121
- -target=ruler

k8s/table-manager-dep.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ spec:
1515
spec:
1616
containers:
1717
- name: table-manager
18-
image: quay.io/cortexproject/cortex:v1.8.0
18+
image: quay.io/cortexproject/cortex:v1.8.1
1919
imagePullPolicy: IfNotPresent
2020
args:
2121
- -target=table-manager

pkg/alertmanager/api_test.go

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -396,6 +396,25 @@ alertmanager_config: |
396396
`,
397397
err: errors.Wrap(errVictorOpsAPIKeyFileNotAllowed, "error validating Alertmanager config"),
398398
},
399+
{
400+
name: "should return error if template is wrong",
401+
cfg: `
402+
alertmanager_config: |
403+
route:
404+
receiver: 'default-receiver'
405+
group_wait: 30s
406+
group_interval: 5m
407+
repeat_interval: 4h
408+
group_by: [cluster, alertname]
409+
receivers:
410+
- name: default-receiver
411+
templates:
412+
- "*.tmpl"
413+
template_files:
414+
"test.tmpl": "{{ invalid Go template }}"
415+
`,
416+
err: fmt.Errorf(`error validating Alertmanager config: template: test.tmpl:1: function "invalid" not defined`),
417+
},
399418
}
400419

401420
am := &MultitenantAlertmanager{

0 commit comments

Comments
 (0)