Skip to content

Commit 0cf33cf

Browse files
authored
Merge pull request #1840 from DougTidwell/master
Added Disable Default User example to the hardening guide
2 parents 732a1be + 028c311 commit 0cf33cf

File tree

3 files changed

+13
-3
lines changed

3 files changed

+13
-3
lines changed

deploy/grafana/grafana-with-helm/install-grafana-via-helm.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# reproduce behavior for https://github.com/Altinity/clickhouse-operator/issues/1721
33
kubectl create ns test
44

5-
helm repo add altinity-clickhouse-operator https://docs.altinity.com/clickhouse-operator/
5+
helm repo add altinity-clickhouse-operator https://helm.altinity.com
66
helm install -n test test-operator --set dashboards.enabled=true altinity-clickhouse-operator/altinity-clickhouse-operator
77

88
helm repo add grafana https://grafana.github.io/helm-charts

docs/operator_installation_details.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ since 0.20.1 version official clickhouse-operator helm chart, also available
5959

6060
installation
6161
```bash
62-
helm repo add clickhouse-operator https://docs.altinity.com/clickhouse-operator/
62+
helm repo add clickhouse-operator https://helm.altinity.com
6363
helm install clickhouse-operator clickhouse-operator/altinity-clickhouse-operator
6464
```
6565
upgrade

docs/security_hardening.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,17 @@ With the default settings, the ClickHouse operator deploys ClickHouse with two u
1010

1111
The '**default**' user is used to connect to ClickHouse instance from a pod where it is running, and also for distributed queries. It is deployed with an **empty password** that was a long-time default for ClickHouse out-of-the-box installation.
1212

13-
To secure it, the operator applies network security rules that restrict connections to the pods running the ClickHouse cluster, and nothing else.
13+
For security purposes, we recommend that you disable the `default` user altogether. As an example, create a file named `remove_default_user.xml` and place it in the `users.d` directory. This markup does the trick:
14+
15+
```xml
16+
<clickhouse>
17+
<users>
18+
<default remove="1"/>
19+
</users>
20+
</clickhouse>
21+
```
22+
23+
However, if you do use the `default` user, the operator applies network security rules that restrict connections to the pods running the ClickHouse cluster, and nothing else.
1424

1525
Before version **0.19.0** `hostRegexp` was applied that captured pod names. This did not work correctly in some Kubernetes distributions, such as GKE. In later versions, the operator additionally applies a restrictive set of pod IP addresses and rebuilds this set if the IP address of a pod changes for whatever reason.
1626

0 commit comments

Comments
 (0)