From 052bcaa454d98d245117d42e783bbd7bc2d6e697 Mon Sep 17 00:00:00 2001 From: Mike Hillyer Date: Wed, 10 May 2023 16:52:55 -0400 Subject: [PATCH] Adding warning and pointer to the Secrets Load function. --- docs/userguide/operation/webhooks.md | 3 +++ docs/userguide/policy/http.md | 7 +++++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/docs/userguide/operation/webhooks.md b/docs/userguide/operation/webhooks.md index 3f6489c4..c88b25c5 100644 --- a/docs/userguide/operation/webhooks.md +++ b/docs/userguide/operation/webhooks.md @@ -122,4 +122,7 @@ kumo.on('make.webhook', function(domain, tenant, campaign) end) ``` +!!!warning + Storing credentials as hardcoded values in a policy script such as this is not recommended, instead use the built in Secrets Load function. See [https://docs.kumomta.com/reference/kumo.secrets/load/](https://docs.kumomta.com/reference/kumo.secrets/load/). + This same methodology could also be used to deliver queued SMTP messages to a third-party API, see the [Routing Messages Via HTTP Request](../policy/http.md) page of the Policy chapter for more information. diff --git a/docs/userguide/policy/http.md b/docs/userguide/policy/http.md index ac2c502a..785e818c 100644 --- a/docs/userguide/policy/http.md +++ b/docs/userguide/policy/http.md @@ -2,7 +2,10 @@ Some sending environments use a mixture of different services to send messages, and while it's possible to relay messages through many services using SMTP, some services are only/better served via an HTTP API. -The following example shows how to send a queued message via custom lua, in this case assembling and API call and sending it to a third-part SMTP API relay provider. +The following example shows how to send a queued message via custom lua, in this case assembling an API call and sending it to a third-party SMTP API relay provider. + +!!!warning + Storing credentials as hardcoded values in a policy script such as this is not recommended, instead use the built in Secrets Load function. See [https://docs.kumomta.com/reference/kumo.secrets/load/](https://docs.kumomta.com/reference/kumo.secrets/load/). ```lua kumo.on('make.mailgun', function(domain, tenant, campaign) @@ -53,4 +56,4 @@ kumo.on('get_queue_config', function(domain, tenant, campaign) return kumo.make_queue_config {} end) -``` +``` \ No newline at end of file