Skip to content

Commit acc6fa1

Browse files
authored
chore: add greptimedb permission modes to the helm chart configuration (#2233)
Signed-off-by: liyang <[email protected]>
1 parent 7f35587 commit acc6fa1

File tree

4 files changed

+72
-0
lines changed

4 files changed

+72
-0
lines changed

docs/user-guide/deployments-administration/deploy-on-kubernetes/common-helm-chart-configurations.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,8 +203,26 @@ auth:
203203
users:
204204
- username: "admin"
205205
password: "admin"
206+
permission: "readwrite"
207+
- username: "grafana"
208+
password: "grafana_pwd"
209+
permission: "readonly"
210+
- username: "telegraf"
211+
password: "telegraf_pwd"
212+
permission: "writeonly"
206213
```
207214

215+
GreptimeDB supports three permission modes:
216+
217+
| Mode | Shorthand | Allowed Operations | Typical Use Cases |
218+
|------|-----------|-------------------|-------------------|
219+
| `readwrite` | `rw` | Read + Write | Administrators, development environments |
220+
| `readonly` | `ro` | Read only | Dashboards, reporting systems, read replicas |
221+
| `writeonly` | `wo` | Write only | Data collectors, IoT devices, log aggregators |
222+
223+
:::note
224+
Users without an explicit permission mode default to `readwrite`, maintaining backward compatibility.
225+
208226
### Logging Configuration
209227

210228
The top-level variable `logging` is used to configure global logging levels, as shown below:

i18n/zh/docusaurus-plugin-content-docs/current/user-guide/deployments-administration/deploy-on-kubernetes/common-helm-chart-configurations.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,8 +203,26 @@ auth:
203203
users:
204204
- username: "admin"
205205
password: "admin"
206+
permission: "readwrite"
207+
- username: "grafana"
208+
password: "grafana_pwd"
209+
permission: "readonly"
210+
- username: "telegraf"
211+
password: "telegraf_pwd"
212+
permission: "writeonly"
206213
```
207214

215+
GreptimeDB 支持三种权限模式:
216+
217+
| 模式 | 缩写 | 允许的操作 | 典型场景 |
218+
|------|------|-----------|---------|
219+
| `readwrite` | `rw` | 读取 + 写入 | 管理员、开发环境 |
220+
| `readonly` | `ro` | 仅读取 | 仪表盘、报表系统、只读副本 |
221+
| `writeonly` | `wo` | 仅写入 | 数据采集器、IoT 设备、日志收集 |
222+
223+
:::note
224+
未指定权限模式的用户默认拥有 `readwrite` 权限,与此前版本行为一致。
225+
208226
### 日志配置
209227

210228
顶层变量 `logging` 用于配置全局日志级别,如下所示:

i18n/zh/docusaurus-plugin-content-docs/version-1.0/user-guide/deployments-administration/deploy-on-kubernetes/common-helm-chart-configurations.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,8 +203,26 @@ auth:
203203
users:
204204
- username: "admin"
205205
password: "admin"
206+
permission: "readwrite"
207+
- username: "grafana"
208+
password: "grafana_pwd"
209+
permission: "readonly"
210+
- username: "telegraf"
211+
password: "telegraf_pwd"
212+
permission: "writeonly"
206213
```
207214

215+
GreptimeDB 支持三种权限模式:
216+
217+
| 模式 | 缩写 | 允许的操作 | 典型场景 |
218+
|------|------|-----------|---------|
219+
| `readwrite` | `rw` | 读取 + 写入 | 管理员、开发环境 |
220+
| `readonly` | `ro` | 仅读取 | 仪表盘、报表系统、只读副本 |
221+
| `writeonly` | `wo` | 仅写入 | 数据采集器、IoT 设备、日志收集 |
222+
223+
:::note
224+
未指定权限模式的用户默认拥有 `readwrite` 权限,与此前版本行为一致。
225+
208226
### 日志配置
209227

210228
顶层变量 `logging` 用于配置全局日志级别,如下所示:

versioned_docs/version-1.0/user-guide/deployments-administration/deploy-on-kubernetes/common-helm-chart-configurations.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,8 +203,26 @@ auth:
203203
users:
204204
- username: "admin"
205205
password: "admin"
206+
permission: "readwrite"
207+
- username: "grafana"
208+
password: "grafana_pwd"
209+
permission: "readonly"
210+
- username: "telegraf"
211+
password: "telegraf_pwd"
212+
permission: "writeonly"
206213
```
207214

215+
GreptimeDB supports three permission modes:
216+
217+
| Mode | Shorthand | Allowed Operations | Typical Use Cases |
218+
|------|-----------|-------------------|-------------------|
219+
| `readwrite` | `rw` | Read + Write | Administrators, development environments |
220+
| `readonly` | `ro` | Read only | Dashboards, reporting systems, read replicas |
221+
| `writeonly` | `wo` | Write only | Data collectors, IoT devices, log aggregators |
222+
223+
:::note
224+
Users without an explicit permission mode default to `readwrite`, maintaining backward compatibility.
225+
208226
### Logging Configuration
209227

210228
The top-level variable `logging` is used to configure global logging levels, as shown below:

0 commit comments

Comments
 (0)