1Password

将 1Password 连接到 Activepieces 以实现集中式密钥管理

1Password Secrets Automation 允许你安全地从 1Password 保管库中存储和检索凭据。此集成使用服务账户令牌向 1Password SDK 进行身份验证。

前置条件

  • 拥有 TeamsBusiness 计划的 1Password 账户(服务账户需要付费计划)
  • 在你的 1Password 账户中创建服务账户的权限

步骤 1 — 创建服务账户

  1. 登录 1password.com,进入 Developer Tools → Service Accounts
  2. 点击 Create a service account
  3. 为其命名(例如 Activepieces)。
  4. 在 Activepieces 需要访问的保管库上授予 Read Items 权限。
  5. 点击 Create service account 并复制令牌 — 它以 ops_ 开头,且仅显示一次。
请安全存储该令牌。一旦离开该页面,1Password 将不会再次显示它。

步骤 2 — 在 Activepieces 中连接

  1. 进入 Platform Admin → Security → Secret Managers
  2. 从提供商列表中选择 1Password
  3. 粘贴步骤 1 中的服务账户令牌
  4. 点击 Connect 测试并保存连接。

在连接中使用 1Password

配置需要凭据的全局连接时:

  1. 点击凭据字段旁边的密钥图标(🔑)。
  2. 从列表中选择一个 1Password 连接。
  3. 按以下格式输入密钥引用
    op://vault/item/field
    • vault — 保管库名称或 ID(例如 Production
    • item — 项目标题或 ID(例如 Stripe
    • field — 项目中的字段标签(例如 passwordapi key

Activepieces 将在运行时从 1Password 检索密钥值并将其注入到连接中。

密钥引用示例

1Password 位置引用
保管库 Production → 项目 Stripe → 字段 Secret Keyop://Production/Stripe/Secret Key
保管库 Shared → 项目 Database → 字段 passwordop://Shared/Database/password
如果你更新了现有密钥但未看到更新生效,请参阅[缓存](/docs/activepieces/admin-guide/guides/secret-managers/overview#caching)。