> ## Documentation Index
> Fetch the complete documentation index at: https://docs.enclave.ai/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Enclave in these docs is the code and cloud security platform at enclave.ai. It is not Open Enclave, Intel SGX or other hardware enclaves, or enclave.gg.
> People use Enclave in the web app at https://app.enclave.ai or the desktop app. These docs describe no public Enclave API or CLI, so don't invent endpoints, commands, or config files.
> Connecting an integration needs a person to sign in and approve access in a browser. Tell the user the exact step to take instead of saying you completed it.

# 连接云

> 授予 Enclave 对 AWS、Google Cloud、Azure、Vercel、Cloudflare 或 Kubernetes 的只读访问权限。

连接云之后，Enclave 可以将你的代码与其运行所在的资源关联起来，并据此判断攻击者真正能触达哪些问题。

这一步是可选的，但连接后回答和严重程度会更准确。

## 连接提供商

打开 **Settings → Integrations**，点击你的提供商旁边的 **Connect**，然后按照其指南操作。

> [!WARNING]
>
> 你需要拥有 Enclave 中的 **Owner** 或 **Admin** 角色，以及云中的管理员权限：例如在 AWS 中创建 IAM 角色的权限，或在 Azure 租户根级别授予角色的权限。每个提供商的指南都列出了所需权限。

| 提供商 | Enclave 扫描什么 | 访问方式 |
| - | - | - |
| [AWS](https://docs.enclave.ai/zh/integrations/aws.md) | AWS 账号 | 只读 IAM 角色 |
| [GCP](https://docs.enclave.ai/zh/integrations/gcp.md) | GCP 项目 | 通过 Workload Identity Federation 使用只读服务账号 |
| [Azure](https://docs.enclave.ai/zh/integrations/azure.md) | 租户中的每个订阅 | 租户根级别的 **Reader** 角色 |
| [Vercel](https://docs.enclave.ai/zh/integrations/vercel.md) | Vercel 项目、域名和部署 | 安装在你团队上的只读 Vercel 集成 |
| [Cloudflare](https://docs.enclave.ai/zh/integrations/cloudflare.md) | DNS、代理的主机名、Workers 和 Pages | 只读 API 令牌 |

你可以连接多个账号或项目。每个账号或项目都会共享给整个组织。

## 只读访问

Enclave 读取计算、网络、数据存储和身份的配置与元数据。

Enclave 无法：

* 在你的云中创建、更改或删除任何内容。
* 读取你的存储或数据库中的内容。
* 持有长期凭证。

你可以随时在云提供商处撤销访问权限。

## Enclave 何时扫描

Enclave 会在你连接账号时扫描一次，之后每天扫描一次。如需立即扫描，请在 [Coverage](https://docs.enclave.ai/zh/onboarding/coverage.md) 中点击 **Analyze Environment**。

## Kubernetes

Enclave 可以通过你在集群中安装的代理来扫描 Kubernetes 集群。你需要 Helm，以及能够在集群中创建 `enclave` 命名空间并在其中安装 Helm chart 的访问权限。

**1. 安装代理**

点击 **Kubernetes** 旁边的 **Connect**，复制安装命令，并在你的集群上运行。

**2. 读取注册令牌**

运行页面上显示的 `kubectl` 命令，读取一次性令牌。

**3. 完成连接**

为集群命名，粘贴令牌并提交。集群会出现在 **Connected clusters** 下。


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.