9.8.3. Clair STOMP 配置字段


以下简单文本介绍的消息协议(STOMP)字段可用于 Clair 通知程序环境。

Expand
.stomp对象为 STOMP 交付配置通知程序。

.stomp.direct

布尔值

如果为 True,则通知程序会向配置的 STOMP 代理提供单独的通知(而不是回调)。

.stomp.rollup

整数

如果 stomp.direct 设为 True,则这个值会限制在单个直接发送中发送的通知数量。例如,如果 direct 设置为 True,并且 rollup 设为 5,则通知程序在单个 JSON 有效负载中不再提供 5 通知到代理。将值设为 0 实际的效果是将其设置为 1

.stomp.callback

字符串

如果 stomp.callback 设为 False,则通知回调中提供的 URL 将发送到代理。此 URL 应指向 Clair 的通知 API 端点。

.stomp.destination

字符串

向其发送通知的 STOMP 目的地。

.stomp.uris

字符串

以优先级顺序连接到的一个或多个 STOMP 代理的列表。

.stomp.tls

对象

配置了到 STOMP 代理的 TLS/SSL 连接。

.stomp.tls.root_ca

字符串

可以读取 root CA 的文件系统路径。

[注意] ==== Clair 还尊重 SSL_CERT_DIR,如 Go crypto/x509 软件包所述。====

.stomp.tls.cert

字符串

可以读取 TLS/SSL 证书的文件系统路径。

.stomp.tls.key

字符串

可以读取 TLS/SSL 私钥的文件系统路径。

.stomp.user

字符串

配置 STOMP 代理的登录详情。

.stomp.user.login

字符串

要连接的 STOMP 登录。

.stomp.user.passcode

字符串

要连接的 STOMP 传递码。

STOMP 配置示例

以下示例显示了 Clair 的假设 STOMP 配置。

STOMP 配置示例

# ...
notifier:
# ...
  stomp:
    desitnation: "notifications"
    direct: false
    callback: "http://clair-notifier/notifier/api/v1/notifications"
    login:
      login: "username"
      passcode: "passcode"
    tls:
     root_ca: "optional/path/to/rootca"
     cert: "madatory/path/to/cert"
     key: "madatory/path/to/key"
# ...

Red Hat logoGithubredditYoutubeTwitter

学习

尝试、购买和销售

社区

關於紅帽

我们提供强化的解决方案,使企业能够更轻松地跨平台和环境(从核心数据中心到网络边缘)工作。

让开源更具包容性

红帽致力于替换我们的代码、文档和 Web 属性中存在问题的语言。欲了解更多详情,请参阅红帽博客.

关于红帽文档

Legal Notice

Theme

© 2026 Red Hat
返回顶部