> For the complete documentation index, see [llms.txt](https://docs.unitlab.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.unitlab.ai/documentation/zh/security/cloud-credential-governance.md).

# 云凭证治理

了解在 Unitlab 中连接自有云存储桶时如何治理云凭证：哪些角色可以管理存储连接、如何为 Unitlab 创建专用云用户并只授予最小必要的访问权限、如何安全地轮换云凭证，以及创建凭证的成员离开团队时应采取哪些措施，确保文件访问始终安全可控。

当你连接自己的存储桶时，Unitlab 会使用你输入的凭证读取你的文件，并写入它生成的文件，例如缩略图、预览和发布导出。以下规则可确保这种访问的安全。设置步骤请参阅[存储与云设置](https://docs.unitlab.ai/documentation/zh/workspaces/storage-and-cloud-settings.md)和[连接云存储](https://docs.unitlab.ai/documentation/zh/data/cloud-providers.md)。

## 谁可以管理连接 <a href="#who-can-manage-connections" id="who-can-manage-connections"></a>

只有拥有 **Manage cloud storage** 权限的角色才能添加、编辑或移除连接。Owner 和 Manager 默认拥有此权限。请将其授予尽可能少的人。

## 授予最小访问权限 <a href="#grant-the-least-access" id="grant-the-least-access"></a>

* 专门为 Unitlab 创建一个单独的云用户或角色。
* 只允许访问 Unitlab 需要的存储桶和文件夹。
* 授予源文件的读取权限。写入权限只授予 `unitlab-<workspace-id-prefix>/` 文件夹，Unitlab 会在其中存放生成的文件和发布导出。[连接云存储](https://docs.unitlab.ai/documentation/zh/data/cloud-providers.md)列出了确切的 S3 权限。
* 不要复用其他系统的凭证。

## 轮换凭证 <a href="#rotate-credentials" id="rotate-credentials"></a>

1. 在你的云服务商中创建新凭证。
2. 在 **Settings > Cloud storage** 中编辑连接，输入新凭证。
3. 确认文件仍能在 Unitlab 中打开。
4. 在你的云服务商中删除旧凭证。

## 有人离开时 <a href="#when-someone-leaves" id="when-someone-leaves"></a>

如果创建云凭证的人离开，请轮换这些凭证。从 Unitlab 中移除成员不会更改你云账户中的任何内容。

## 相关内容 <a href="#related" id="related"></a>

[敏感数据与成员离职](https://docs.unitlab.ai/documentation/zh/security/sensitive-data-and-offboarding.md) · [安全概览](https://docs.unitlab.ai/documentation/zh/security/security-overview.md)
