# Access Key 的使用与轮换

用最小权限保护 Tunnel，安全创建、轮换和撤销密钥。

- Category: 安全
- Reading time: 7 分钟
- Locale: zh

## 默认策略Persistent Tunnel 默认使用 key 模式。请求必须携带 Access Key，避免公开地址被任意调用。
```
curl -H "x-anureo-access-key: anr_pk_…" https://your-tunnel.example/
```## 轮换流程在控制台创建新的 Access Key。先将调用方切换到新 Key。确认流量正常后撤销旧 Key。
> 不要记录明文: Key 只在创建成功响应中展示一次，生产环境应使用 Secret Manager。
