Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions docs/enterprise/user.md
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,19 @@ expression form:
```text
Created admin user with auto-generated password <UUID>
```
- **Resetting the Admin Password**: You can reset the `admin` password using the
CLI without manually editing the KV store. The command reads backend storage
settings from a Metasrv config file and supports the standard
`GREPTIMEDB_METASRV__...` environment variable overrides.
```shell
./greptime cli user admin-password \
--new-password <new-password> \
--config-file /path/to/metasrv.toml
```
This command must be invoked from a Metasrv instance. The `--config-file`
should point to the same Metasrv config file used by your Metasrv (or
standalone) deployment, so the CLI can locate the correct backend storage
(etcd, MySQL, or PostgreSQL).
- **Persistence**: User information is persisted in the Metasrv's KV store,
making it available across all frontend nodes in a cluster.
- **Admin Protection**: The built-in `admin` user cannot be deleted via the API.
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,17 @@ ACL 表单包含两个页签。你可以选择精确的表,也可以选择整
```text
Created admin user with auto-generated password <UUID>
```
- **重置管理员密码**:你可以使用 CLI 重置 `admin` 密码,无需手动编辑 KV 存储。
该命令从 Metasrv 配置文件中读取后端存储设置,并支持标准的
`GREPTIMEDB_METASRV__...` 环境变量覆盖。
```shell
./greptime cli user admin-password \
--new-password <new-password> \
--config-file /path/to/metasrv.toml
```
此命令必须在 Metasrv 实例上执行。`--config-file` 应指向你的 Metasrv(或
standalone)部署所使用的同一 Metasrv 配置文件,以便 CLI 能够定位正确的后端
存储(etcd、MySQL 或 PostgreSQL)。
- **持久化**:用户信息会持久化在 Metasrv 的 KV 存储中,因此集群中的所有
frontend 节点都可以访问这些用户信息。
- **Admin 保护**:内置的 `admin` 用户不能通过 API 删除。
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,17 @@ ACL 表单包含两个页签。你可以选择精确的表,也可以选择整
```text
Created admin user with auto-generated password <UUID>
```
- **重置管理员密码**:你可以使用 CLI 重置 `admin` 密码,无需手动编辑 KV 存储。
该命令从 Metasrv 配置文件中读取后端存储设置,并支持标准的
`GREPTIMEDB_METASRV__...` 环境变量覆盖。
```shell
./greptime cli user admin-password \
--new-password <new-password> \
--config-file /path/to/metasrv.toml
```
此命令必须在 Metasrv 实例上执行。`--config-file` 应指向你的 Metasrv(或
standalone)部署所使用的同一 Metasrv 配置文件,以便 CLI 能够定位正确的后端
存储(etcd、MySQL 或 PostgreSQL)。
- **持久化**:用户信息会持久化在 Metasrv 的 KV 存储中,因此集群中的所有
frontend 节点都可以访问这些用户信息。
- **Admin 保护**:内置的 `admin` 用户不能通过 API 删除。
13 changes: 13 additions & 0 deletions versioned_docs/version-1.0/enterprise/user.md
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,19 @@ expression form:
```text
Created admin user with auto-generated password <UUID>
```
- **Resetting the Admin Password**: You can reset the `admin` password using the
CLI without manually editing the KV store. The command reads backend storage
settings from a Metasrv config file and supports the standard
`GREPTIMEDB_METASRV__...` environment variable overrides.
```shell
./greptime cli user admin-password \
--new-password <new-password> \
--config-file /path/to/metasrv.toml
```
This command must be invoked from a Metasrv instance. The `--config-file`
should point to the same Metasrv config file used by your Metasrv (or
standalone) deployment, so the CLI can locate the correct backend storage
(etcd, MySQL, or PostgreSQL).
- **Persistence**: User information is persisted in the Metasrv's KV store,
making it available across all frontend nodes in a cluster.
- **Admin Protection**: The built-in `admin` user cannot be deleted via the API.
Loading