0

我使用在其操作部分调用自定义 webhook 的观察者。我可以在授权标头中引用类似于变量的密钥库值吗?

我需要类似的东西:

"actions": {
    "my-api-notification": {
      "webhook": {
        "scheme": "https",
        "host": "api.example.com",
        "port": 443,
        "method": "post",
        "path": "/v1/es-alerts",
        "headers": {
          "Authorization": "KEY {{api_key.secret.staging}}",
          "Content-Type": "application/json"
        },

其中“api_key.secret.staging”是密钥库字段的名称?

这在我的情况下不起作用。也许您可以建议其他存储共享机密的选项。

4

0 回答 0