Duaer

集成

在 Duaer 里配置 Sentry.io 凭证

在 Duaer 中保存 Sentry.io 的连接信息,供工作流程节点在运行时使用。密钥经实例加密密钥保护,不会写进节点参数。

选 Sentry 凭证类型

Duaer 的 Sentry.io 节点支持三种凭证:

  • Sentry.io API:在 sentry.io 的 User Settings → Personal Tokens 创建令牌,按节点要用的操作勾选权限(例如 project:read、event:read、org:read),填进 Token。
  • Sentry.io Server API:自建 Sentry 时用,令牌在自建实例的同一位置创建,URL 填实例地址。
  • Sentry.io OAuth2 API:在 User Settings → API → Applications 新建应用,Authorized Redirect URIs 填 Duaer 的 OAuth 重定向地址,把 Client ID 和 Client Secret 填进凭证,再点「连接我的账号」。

Sentry.io API

在 Duaer 里新建 Sentry.io API 凭证,填写这些字段:

  • Token(密钥)

保存时,Duaer 会用这些值测试一次连接。

使用它的 Duaer 节点:Sentry.io。

Sentry.io OAuth2 API

在 Duaer 里新建 Sentry.io OAuth2 API 凭证,填写这些字段:

  • Client ID(必填)
  • Client Secret(必填,密钥)

Duaer 对这种类型固定使用 OAuth2 Authorization Code(授权码) 授权方式。

在服务商的应用设置里登记 Duaer 凭证窗口显示的 OAuth 重定向地址(https://<你的 Duaer 地址>/rest/oauth2-credential/callback),再在 Duaer 里点「连接我的账号」并同意授权。

Duaer 默认申请的授权范围:event:admin event:read org:read project:read project:releases team:read event:write org:admin project:write team:write project:admin team:admin。

所有 Duaer OAuth2 凭证共有的可选设置:Ignore SSL Issues (Insecure)、Token Expired Status Code、Encrypted Tokens (JWE)、JWKS URI。说明见 OAuth2 API。

使用它的 Duaer 节点:Sentry.io。

Sentry.io Server API

在 Duaer 里新建 Sentry.io Server API 凭证,填写这些字段:

  • Token(密钥)
  • URL

保存时,Duaer 会用这些值测试一次连接。

使用它的 Duaer 节点:Sentry.io。

在 Duaer 里保存连接

打开 Credentials,创建 Sentry.io。按字段填写密钥、OAuth 或服务器地址。保存后,工作流程节点引用这份凭证,而不是把密钥写进参数。

凭证内容经实例的加密密钥保护。换密钥或弄丢密钥后,已存凭证会解不开,见托管文档里的加密密钥说明。对应节点见 相关节点。

谁能用这份凭证

能否看到或编辑,取决于项目和角色。不要把密钥贴进聊天或变量。外部密钥库见外部密钥文档。

常见问题

Duaer 的 Sentry.io 凭证密钥会出现在节点参数里吗?

不会。在 Duaer 里,Sentry.io 的密钥保存在凭证中,节点只引用凭证。执行记录也不应出现明文密钥。

在 Duaer 里 Sentry.io 凭证保存失败常见原因是什么?

字段填错、OAuth 回调地址与实例 URL 不一致,或当前角色不能创建凭证。先核对 Sentry.io 服务商要求的字段,再确认你在该项目里有权新建凭证。

同组