diff --git a/docs/02-user-guide/09-capabilities/06-integrations-overview.md b/docs/02-user-guide/09-capabilities/06-integrations-overview.md index f349057..ae55dd5 100644 --- a/docs/02-user-guide/09-capabilities/06-integrations-overview.md +++ b/docs/02-user-guide/09-capabilities/06-integrations-overview.md @@ -24,6 +24,7 @@ DesireCore 不是一个封闭系统。它通过多层集成架构连接外部世 | **MCP 服务** | 通过 Model Context Protocol 连接外部 API 和服务 | [MCP 集成](./mcp-integration) | | **技能包** | 把多个工具编排成专业工作流 | [技能包](./skill-packs) | | **Computer Use** | macOS 通过 HostAgent、Windows 暂时通过内置 CUA Driver 操控本机 GUI;其他平台 HostAgent 仍在演进 | [GUI 桌面自动化](./computer-use) | +| **1Password** | 从专用保险库按需读取已关联的凭据 | [连接 1Password](./10-1password.md) | | **邮件** | 统一管理 Gmail / Outlook / IMAP 邮箱 | [邮件管理](../email/overview) | | **工作流** | 用可视化 DSL 编排触发器、代码、LLM、Agent 和人工确认节点 | [任务编排](../../concepts/task-orchestration) | | **应用、插件与服务** | 区分应用使用、插件贡献管理和服务连接诊断 | [应用、插件与服务](./app-service-catalog) | diff --git a/docs/02-user-guide/09-capabilities/10-1password.md b/docs/02-user-guide/09-capabilities/10-1password.md new file mode 100644 index 0000000..2258a07 --- /dev/null +++ b/docs/02-user-guide/09-capabilities/10-1password.md @@ -0,0 +1,38 @@ +--- +title: 连接 1Password +description: 使用只读 Service Account 将专用 1Password 保险库接入 DesireCore。 +--- + +# 连接 1Password + +连接 1Password 后,可以在 DesireCore 中关联保险库条目,并为每条凭据设置智能体的取用授权。关联会保存条目名称和字段等信息,授权通过后才按需从 1Password 读取值。 + +开始前,在运行 DesireCore 服务的设备上安装 [1Password CLI](https://www.1password.dev/cli/get-started) 2.18.0 或更高版本,并确认你有权限在 1Password 创建服务帐户。准备一个专用保险库,只放需要提供给 DesireCore 的条目。截图中的 `DesireCore-Verify` 是示例保险库。 + +## 在 1Password 创建只读服务帐户 + +1. 登录 1Password 网页版,打开 **开发者 → 新服务帐户**。输入一个便于识别的名称,点击 **下一步**。也可直接使用 [1Password 服务帐户创建向导](https://start.1password.com/developer-tools/infrastructure-secrets/serviceaccount/?source=dev-portal)。 + + ![填写服务帐户名称](/img/user-guide/1password/1password-service-account-name.jpg) + +2. 在 **保险库访问** 中只勾选专用保险库。保持 **允许创建新保险库** 关闭。点击该保险库右侧的齿轮,确认仅 **读取项目** 被勾选。写入和共享权限保持关闭。 + + ![专用保险库已勾选,访问权限为读取](/img/user-guide/1password/1password-service-account-vault.jpg) + + ![权限菜单中仅读取项目被勾选](/img/user-guide/1password/1password-service-account-permissions.jpg) + +3. 点击 **下一步**。在 **环境访问** 中保持所有环境未选中,再点击 **创建帐户**。权限在创建后固定,修改范围时需要创建新的服务帐户。 + + ![环境访问页面显示未授权任何环境](/img/user-guide/1password/1password-service-account-environment.jpg) + +4. 创建后复制服务帐户令牌。页面只显示一次令牌,请把它当作密码保管。 [1Password 服务帐户说明](https://www.1password.dev/service-accounts/get-started) + +## 在 DesireCore 连接并关联条目 + +1. 打开 **资源管理器 → 账号**,在凭据源中选择 **1Password**。 +2. 在 **连接 1Password** 表单粘贴服务帐户令牌,输入专用保险库的准确名称,再点击 **连接**。 +3. 看到 **连接正常** 后,浏览保险库条目,对需要使用的条目点击 **关联**。在账号详情中,核对条目的取用授权,按需设置为询问、允许或拒绝。 + +如果连接提示保险库不在授权范围,先检查名称是否与 1Password 完全一致,再核对创建时选中的保险库。如果令牌已失效,请创建新的只读服务帐户并使用新的令牌连接。 + +停止使用时,在 DesireCore 选择 **断开连接**,并在 1Password 网页撤销对应服务帐户。断开后智能体无法再读取关联条目,DesireCore 会保留条目的授权记录。 diff --git a/i18n/en/docusaurus-plugin-content-docs/current/02-user-guide/09-capabilities/06-integrations-overview.md b/i18n/en/docusaurus-plugin-content-docs/current/02-user-guide/09-capabilities/06-integrations-overview.md index 474a18d..691647e 100644 --- a/i18n/en/docusaurus-plugin-content-docs/current/02-user-guide/09-capabilities/06-integrations-overview.md +++ b/i18n/en/docusaurus-plugin-content-docs/current/02-user-guide/09-capabilities/06-integrations-overview.md @@ -22,6 +22,7 @@ Installed apps and plugins share the Apps entry, with peer tabs for use and conf | **MCP services** | Connect external APIs and services through Model Context Protocol | [MCP Integration](./mcp-integration) | | **Skills** | Package tools and instructions into reusable workflows | [Skill Packs](./skill-packs) | | **Computer Use** | Local GUI control through HostAgent on macOS and temporarily through bundled CUA Driver on Windows; other HostAgent platforms are still evolving | [GUI Desktop Automation](./computer-use) | +| **1Password** | Read linked credentials from a dedicated vault on demand | [Connect 1Password](./10-1password.md) | | **Email** | Manage Gmail, Outlook, and IMAP accounts | [Email Management](../email/overview) | | **Workflows** | Compose triggers, code, LLM, Agent, and human-confirmation nodes | [Task Orchestration](../../concepts/task-orchestration) | | **Apps, Plugins, and Services** | Distinguish app use, plugin contribution management, and service connection diagnostics | [Apps, Plugins, and Services](./app-service-catalog) | diff --git a/i18n/en/docusaurus-plugin-content-docs/current/02-user-guide/09-capabilities/10-1password.md b/i18n/en/docusaurus-plugin-content-docs/current/02-user-guide/09-capabilities/10-1password.md new file mode 100644 index 0000000..3c1f1cb --- /dev/null +++ b/i18n/en/docusaurus-plugin-content-docs/current/02-user-guide/09-capabilities/10-1password.md @@ -0,0 +1,38 @@ +--- +title: Connect 1Password +description: Connect a dedicated 1Password vault to DesireCore with a read-only service account. +--- + +# Connect 1Password + +Connect 1Password to link vault items in DesireCore and set an access grant for each credential. Linking saves item details such as names and fields. DesireCore fetches values from 1Password when needed after access is granted. + +Install [1Password CLI](https://www.1password.dev/cli/get-started) 2.18.0 or later on the device running the DesireCore service. You also need permission to create 1Password service accounts. Prepare a dedicated vault containing the items you want to make available to DesireCore. The screenshots show the example vault `DesireCore-Verify` in the Chinese interface. + +## Create a read-only service account in 1Password + +1. Sign in to 1Password in your browser and open **Developer → New Service Account**. Enter a recognizable name and select **Next**. You can also open the [1Password service account wizard](https://start.1password.com/developer-tools/infrastructure-secrets/serviceaccount/?source=dev-portal) directly. + + ![Entering a name for the service account](/img/user-guide/1password/1password-service-account-name.jpg) + +2. Under **Vault Access**, select only your dedicated vault. Leave the option to create new vaults off. Select the gear next to your vault and confirm that only **Read items** is checked. Leave write and share permissions off. + + ![The dedicated vault is selected with read access](/img/user-guide/1password/1password-service-account-vault.jpg) + + ![Only Read items is checked in the permissions menu](/img/user-guide/1password/1password-service-account-permissions.jpg) + +3. Select **Next**. Under **Environment Access**, leave all environments unselected, then select **Create Account**. Permissions are fixed at creation. Create a new service account if you need a different scope. + + ![The Environment Access page shows that no environments are granted](/img/user-guide/1password/1password-service-account-environment.jpg) + +4. Copy the service account token after creation. The page shows the token once. Treat it as you would a password. [1Password service account guide](https://www.1password.dev/service-accounts/get-started) + +## Connect in DesireCore and link items + +1. Open **Resource Manager → Accounts** in DesireCore and select **1Password** among the credential sources. +2. In **Connect 1Password**, paste the service account token, enter the exact name of your dedicated vault, and select **Connect**. +3. Once the source shows **Connected**, browse the vault and select **Link** for the items you want to use. In each account's details, review its access grant and choose whether to prompt, allow, or deny access. + +If DesireCore reports that the vault is outside the authorized scope, check that its name matches 1Password exactly and confirm that the service account was created with access to that vault. If the token has expired or been revoked, create a new read-only service account and connect with the new token. + +To stop using the connection, select **Disconnect** in DesireCore and revoke the service account in 1Password. Disconnecting stops access to linked items. DesireCore retains their grant records. diff --git a/static/img/user-guide/1password/1password-service-account-environment.jpg b/static/img/user-guide/1password/1password-service-account-environment.jpg new file mode 100644 index 0000000..b07e7b2 Binary files /dev/null and b/static/img/user-guide/1password/1password-service-account-environment.jpg differ diff --git a/static/img/user-guide/1password/1password-service-account-name.jpg b/static/img/user-guide/1password/1password-service-account-name.jpg new file mode 100644 index 0000000..64908bb Binary files /dev/null and b/static/img/user-guide/1password/1password-service-account-name.jpg differ diff --git a/static/img/user-guide/1password/1password-service-account-permissions.jpg b/static/img/user-guide/1password/1password-service-account-permissions.jpg new file mode 100644 index 0000000..dafe75d Binary files /dev/null and b/static/img/user-guide/1password/1password-service-account-permissions.jpg differ diff --git a/static/img/user-guide/1password/1password-service-account-vault.jpg b/static/img/user-guide/1password/1password-service-account-vault.jpg new file mode 100644 index 0000000..7dd46fd Binary files /dev/null and b/static/img/user-guide/1password/1password-service-account-vault.jpg differ