1Password
将 1Password 连接到 Activepieces 以实现集中式密钥管理
1Password Secrets Automation 允许你安全地从 1Password 保管库中存储和检索凭据。此集成使用服务账户令牌向 1Password SDK 进行身份验证。
前置条件
- 拥有 Teams 或 Business 计划的 1Password 账户(服务账户需要付费计划)
- 在你的 1Password 账户中创建服务账户的权限
步骤 1 — 创建服务账户
- 登录 1password.com,进入 Developer Tools → Service Accounts。
- 点击 Create a service account。
- 为其命名(例如
Activepieces)。 - 在 Activepieces 需要访问的保管库上授予 Read Items 权限。
- 点击 Create service account 并复制令牌 — 它以
ops_开头,且仅显示一次。
步骤 2 — 在 Activepieces 中连接
- 进入 Platform Admin → Security → Secret Managers。
- 从提供商列表中选择 1Password。
- 粘贴步骤 1 中的服务账户令牌。
- 点击 Connect 测试并保存连接。
在连接中使用 1Password
配置需要凭据的全局连接时:
- 点击凭据字段旁边的密钥图标(🔑)。
- 从列表中选择一个 1Password 连接。
- 按以下格式输入密钥引用:
op://vault/item/field- vault — 保管库名称或 ID(例如
Production) - item — 项目标题或 ID(例如
Stripe) - field — 项目中的字段标签(例如
password、api key)
- vault — 保管库名称或 ID(例如
Activepieces 将在运行时从 1Password 检索密钥值并将其注入到连接中。
密钥引用示例
| 1Password 位置 | 引用 |
|---|---|
保管库 Production → 项目 Stripe → 字段 Secret Key | op://Production/Stripe/Secret Key |
保管库 Shared → 项目 Database → 字段 password | op://Shared/Database/password |