Skip to content

Commit 19710f3

Browse files
committed
docs: use change-your-password placeholder for example secrets
Replace the inconsistent example secret/password values (rustfsadmin, rustfssecret, ChangeMe123!) with a single self-documenting placeholder change-your-password across installation, integration and SDK guides. Access keys (usernames) keep rustfsadmin; prose that conflated username and password is clarified to prompt users to set their own strong secret.
1 parent e3ddd4f commit 19710f3

11 files changed

Lines changed: 28 additions & 28 deletions

File tree

docs/developer/sdk/java.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ public class RustfsS3Example {
6767
.region(Region.US_EAST_1) // 可写死,RustFS 不校验 region
6868
.credentialsProvider(
6969
StaticCredentialsProvider.create(
70-
AwsBasicCredentials.create("rustfsadmin", "rustfssecret")
70+
AwsBasicCredentials.create("rustfsadmin", "change-your-password")
7171
)
7272
)
7373
.forcePathStyle(true) // 关键配置!RustFS 需启用 Path-Style
@@ -171,7 +171,7 @@ S3Presigner presigner = S3Presigner.builder()
171171
.region(Region.US_EAST_1)
172172
.credentialsProvider(
173173
StaticCredentialsProvider.create(
174-
AwsBasicCredentials.create("rustfsadmin", "rustfssecret")
174+
AwsBasicCredentials.create("rustfsadmin", "change-your-password")
175175
)
176176
)
177177
.build();

docs/developer/sdk/javascript.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ npm install @aws-sdk/client-s3 @aws-sdk/s3-request-presigner
2828
```
2929
Endpoint: http://192.168.1.100:9000
3030
Access Key: rustfsadmin
31-
Secret Key: rustfssecret
31+
Secret Key: change-your-password
3232
```
3333

3434
---
@@ -44,7 +44,7 @@ const s3 = new S3Client({
4444
region: "us-east-1", // 可随意填写
4545
credentials: {
4646
accessKeyId: "rustfsadmin",
47-
secretAccessKey: "rustfssecret",
47+
secretAccessKey: "change-your-password",
4848
},
4949
forcePathStyle: true, // 必须启用 Path-style 以兼容 RustFS
5050
requestHandler: new NodeHttpHandler({

docs/developer/sdk/python.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ RustFS 是一款兼容 Amazon S3 协议的对象存储服务,支持通过 Pyth
3232
```
3333
Endpoint: http://192.168.1.100:9000
3434
AccessKey: rustfsadmin
35-
SecretKey: rustfssecret
35+
SecretKey: change-your-password
3636
```
3737

3838
### 2.2 安装 Boto3
@@ -59,7 +59,7 @@ s3 = boto3.client(
5959
's3',
6060
endpoint_url='http://192.168.1.100:9000',
6161
aws_access_key_id='rustfsadmin',
62-
aws_secret_access_key='rustfssecret',
62+
aws_secret_access_key='change-your-password',
6363
config=Config(signature_version='s3v4'),
6464
region_name='us-east-1'
6565
)

docs/installation/checklists/security-checklists.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ description: "RustFS 安全检查清单(面向企业部署者),RustFS 是
3232
## 3. 环境变量与凭证保护
3333

3434
- **更改默认凭证**
35-
RustFS 初始化时如使用默认账号(如 `rustfsadmin` / `rustfsadmin`),必须在部署后更改为随机复杂密码
35+
RustFS 初始化时如使用示例账号(如用户名 `rustfsadmin`),必须在部署后将密码更改为随机复杂密码
3636

3737
- **安全存储凭证**
3838
不要将明文密码硬编码在脚本、镜像或日志中。使用环境变量或 Kubernetes Secret 管理密码。

docs/installation/cloud-native/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ RustFS 提供了官方和 [Helm Chart](https://github.com/rustfs/rustfs/tree/mai
1616
| `image.repository` | 镜像仓库 | `rustfs/rustfs` |
1717
| `image.tag` | 镜像 tag | `latest` |
1818
| `secret.rustfs.access_key` | RustFS access key | `rustfsadmin` |
19-
| `secret.rustfs.secret_key` | RustFS secret key | `rustfsadmin` |
19+
| `secret.rustfs.secret_key` | RustFS secret key | `change-your-password` |
2020
| `storageclass.name` | StorageClass 的名称 | `local-path` |
2121
| `storageclass.size` | PVC 大小 | `256Mi`**一定根据自身需求设置好大小**|
2222
| `requests.cpu` | 请求的 CPU 大小 | `100m`**一定根据自身需求设置好大小**|
@@ -60,7 +60,7 @@ NAME CLASS HOSTS ADDRESS PORTS AGE
6060
rustfs nginx your.rustfs.com 10.43.237.152 80, 443 29m
6161
```
6262

63-
使用 `https://your.rustfs.com` 并用默认用户名和密码(均为 `rustfsadmin/rustfsadmin`)登陆安装好的 RustFS 实例。
63+
使用 `https://your.rustfs.com` 并用上面配置的用户名和密码(本文示例为 `rustfsadmin` / `change-your-password`)登陆安装好的 RustFS 实例。请务必将密码替换为你自己的强密码
6464

6565

6666
## 卸载

docs/installation/docker/index.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -71,15 +71,15 @@ docker run -d \
7171
-p 9001:9001 \
7272
-v /mnt/rustfs/data:/data \
7373
-e RUSTFS_ACCESS_KEY=rustfsadmin \
74-
-e RUSTFS_SECRET_KEY=rustfsadmin \
74+
-e RUSTFS_SECRET_KEY=change-your-password \
7575
-e RUSTFS_CONSOLE_ENABLE=true \
7676
-e RUSTFS_SERVER_DOMAINS=example.com \
7777
rustfs/rustfs:latest \
7878
--address :9000 \
7979
--console-enable \
8080
--server-domains example.com \
8181
--access-key rustfsadmin \
82-
--secret-key rustfsadmin \
82+
--secret-key change-your-password \
8383
/data
8484
```
8585

@@ -90,7 +90,7 @@ docker run -d \
9090
-e RUSTFS_ADDRESS=:9000 \
9191
-e RUSTFS_SERVER_DOMAINS=example.com \
9292
-e RUSTFS_ACCESS_KEY=rustfsadmin \
93-
-e RUSTFS_SECRET_KEY=rustfsadmin \
93+
-e RUSTFS_SECRET_KEY=change-your-password \
9494
-e RUSTFS_CONSOLE_ENABLE=true \
9595
```
9696

@@ -99,7 +99,7 @@ docker run -d \
9999
--address :9000 \
100100
--server-domains example.com \
101101
--access-key rustfsadmin \
102-
--secret-key rustfsadmin \
102+
--secret-key change-your-password \
103103
--console-enable \
104104
```
105105

@@ -137,10 +137,10 @@ docker run -d \
137137
-p 9001:9001 \
138138
-v /mnt/data:/data \
139139
-e RUSTFS_ACCESS_KEY=rustfsadmin \
140-
-e RUSTFS_SECRET_KEY=rustfsadmin \
140+
-e RUSTFS_SECRET_KEY=change-your-password \
141141
rustfs/rustfs:latest \
142142
--access-key rustfsadmin \
143-
--secret-key rustfsadmin \
143+
--secret-key change-your-password \
144144
/data
145145
```
146146

@@ -207,7 +207,7 @@ CONTAINER ID IMAGE COMMAND
207207
e07121ecdd39 rustfs/rustfs:latest "/entrypoint.sh rust…" 2 seconds ago Up 1 second (health: starting) 0.0.0.0:9000-9001->9000-9001/tcp, :::9000-9001->9000-9001/tcp rustfs-server
208208
```
209209

210-
不管是单独启动 `rustfs-server` 还是和可观测性的服务一起启动,对于 RustFS 实例的访问都是通过 `http://localhost:9000`并使用默认用户名和密码(均为 `rustfsadmin`
210+
不管是单独启动 `rustfs-server` 还是和可观测性的服务一起启动,对于 RustFS 实例的访问都是通过 `http://localhost:9000`并使用上面配置的 access key 和 secret key 登录(本文示例为用户名 `rustfsadmin`、密码 `change-your-password`)。请务必将密码替换为你自己的强密码
211211

212212
### 部署示例
213213

@@ -250,7 +250,7 @@ services:
250250
- RUSTFS_CONSOLE_CORS_ALLOWED_ORIGINS=*
251251
# 访问密钥(生产环境请修改为强密码)
252252
- RUSTFS_ACCESS_KEY=rustfsadmin
253-
- RUSTFS_SECRET_KEY=rustfsadmin
253+
- RUSTFS_SECRET_KEY=change-your-password
254254
# 日志级别
255255
- RUSTFS_OBS_LOGGER_LEVEL=info
256256

@@ -435,12 +435,12 @@ nginx -t && nginx -s reload
435435
```
436436
https://console.example.com
437437
```
438-
使用账号密码登录(默认均为 `rustfsadmin`
438+
使用账号密码登录(本文示例为用户名 `rustfsadmin`、密码 `change-your-password`
439439

440440
2. **测试 S3 API**
441441
```bash
442442
# 使用 mc 客户端
443-
mc alias set myrustfs https://s3.example.com rustfsadmin rustfsadmin
443+
mc alias set myrustfs https://s3.example.com rustfsadmin change-your-password
444444
mc mb myrustfs/test-bucket
445445
mc ls myrustfs
446446
```
@@ -481,7 +481,7 @@ nginx -t && nginx -s reload
481481
使用 `mc` 或其他 S3 客户端:
482482

483483
```bash
484-
mc alias set rustfs http://localhost:9000 rustfsadmin ChangeMe123!
484+
mc alias set rustfs http://localhost:9000 rustfsadmin change-your-password
485485
mc mb rustfs/mybucket
486486
mc ls rustfs
487487
```

docs/installation/linux/multiple-node-multiple-disk.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ mv rustfs /usr/local/bin/
250250
# 多机多盘模式
251251
sudo tee /etc/default/rustfs <<EOF
252252
RUSTFS_ACCESS_KEY=rustfsadmin
253-
RUSTFS_SECRET_KEY=rustfsadmin
253+
RUSTFS_SECRET_KEY=change-your-password
254254
RUSTFS_VOLUMES="http://node{1...4}:9000/data/rustfs{0...3}"
255255
RUSTFS_ADDRESS=":9000"
256256
RUSTFS_CONSOLE_ENABLE=true

docs/installation/linux/single-node-multiple-disk.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ mv rustfs /usr/local/bin/
226226
# 单机多盘模式
227227
sudo tee /etc/default/rustfs <<EOF
228228
RUSTFS_ACCESS_KEY=rustfsadmin
229-
RUSTFS_SECRET_KEY=rustfsadmin
229+
RUSTFS_SECRET_KEY=change-your-password
230230
RUSTFS_VOLUMES="/data/rustfs{0...3}"
231231
RUSTFS_ADDRESS=":9000"
232232
RUSTFS_CONSOLE_ENABLE=true

docs/installation/linux/single-node-single-disk.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ mv rustfs /usr/local/bin/
221221
# 单机单盘模式
222222
sudo tee /etc/default/rustfs <<EOF
223223
RUSTFS_ACCESS_KEY=rustfsadmin
224-
RUSTFS_SECRET_KEY=rustfsadmin
224+
RUSTFS_SECRET_KEY=change-your-password
225225
RUSTFS_VOLUMES="/data/rustfs0"
226226
RUSTFS_ADDRESS=":9000"
227227
RUSTFS_CONSOLE_ENABLE=true

docs/integration/milvus.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ Milvus 官方提供 [`docker-compose.yml`](https://github.com/milvus-io/milvus/b
3939
- RUSTFS_CORS_ALLOWED_ORIGINS=*
4040
- RUSTFS_CONSOLE_CORS_ALLOWED_ORIGINS=*
4141
- RUSTFS_ACCESS_KEY=rustfsadmin
42-
- RUSTFS_SECRET_KEY=rustfsadmin
42+
- RUSTFS_SECRET_KEY=change-your-password
4343
ports:
4444
- "9000:9000" # S3 API port
4545
- "9001:9001" # Console port
@@ -96,7 +96,7 @@ rustfs:
9696
address: localhost:9000
9797
port: 9000
9898
accessKeyID: rustfsadmin
99-
secretAccessKey: rustfsadmin
99+
secretAccessKey: change-your-password
100100
useSSL: false
101101
bucketName: "rustfs-bucket"
102102
```

0 commit comments

Comments
 (0)