From bcdf45dfc76f1fc157655ed978f3becf6c5d1808 Mon Sep 17 00:00:00 2001 From: Vincent Le Goff Date: Mon, 7 Aug 2023 16:58:35 +0200 Subject: [PATCH] fix(acme): error concatenation --- CHANGELOG.md | 2 ++ kong/plugins/acme/client.lua | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b5a2b1bb313f..8e0266ed1ef6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -132,6 +132,8 @@ [#10559](https://github.com/Kong/kong/pull/10559) - **Zipkin**: Fixed an issue that traces not being generated correctly when instrumentations are enabled. [#10983](https://github.com/Kong/kong/pull/10983) +- **Acme**: Fixed string concatenation on cert renewal errors + [#11364](https://github.com/Kong/kong/pull/11364) #### PDK diff --git a/kong/plugins/acme/client.lua b/kong/plugins/acme/client.lua index 37125746184a..eed2dabf8429 100644 --- a/kong/plugins/acme/client.lua +++ b/kong/plugins/acme/client.lua @@ -163,7 +163,8 @@ local function order(acme_client, host, key, cert_type, rsa_key_size) local cert, err = acme_client:order_certificate(key, host) if err then - return nil, nil, "could not create certificate for host: ", host, " err: " .. err + local concatErr = "could not create certificate for host: " .. host .. " err: " .. err + return nil, nil, concatErr end return cert, key, nil