From 1f89f55810d7a5a30063d614084fccfecd48fc11 Mon Sep 17 00:00:00 2001 From: Aapo Talvensaari Date: Tue, 12 May 2020 16:32:13 +0300 Subject: [PATCH] chore(*) release 3.4.0 ### Summary Changes `local openssl_hmac = require "openssl.hmac"` to `local openssl_hmac = require "resty.openssl.hmac"`. --- CHANGELOG.md | 3 ++- ...0-1.rockspec => kong-plugin-aws-lambda-3.4.0-1.rockspec | 7 ++++--- kong/plugins/aws-lambda/handler.lua | 2 +- kong/plugins/aws-lambda/v4.lua | 2 +- 4 files changed, 8 insertions(+), 6 deletions(-) rename kong-plugin-aws-lambda-3.3.0-1.rockspec => kong-plugin-aws-lambda-3.4.0-1.rockspec (91%) diff --git a/CHANGELOG.md b/CHANGELOG.md index 99b377e..c5f39d6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,7 +1,8 @@ # Kong AWS Lambda plugin changelog -## Unreleased +## aws-lambda 3.4.0 12-May-2020 +- Change `luaossl` to `lua-resty-openssl` - fix: do not validate region name against hardcoded list of regions - feat: add `host` configuration to allow for custom Lambda endpoints diff --git a/kong-plugin-aws-lambda-3.3.0-1.rockspec b/kong-plugin-aws-lambda-3.4.0-1.rockspec similarity index 91% rename from kong-plugin-aws-lambda-3.3.0-1.rockspec rename to kong-plugin-aws-lambda-3.4.0-1.rockspec index ea13cfc..e8955aa 100644 --- a/kong-plugin-aws-lambda-3.3.0-1.rockspec +++ b/kong-plugin-aws-lambda-3.4.0-1.rockspec @@ -1,10 +1,10 @@ package = "kong-plugin-aws-lambda" -version = "3.3.0-1" +version = "3.4.0-1" supported_platforms = {"linux", "macosx"} source = { - url = "https://github.com/Kong/kong-plugin-aws-lambda/archive/3.3.0.tar.gz", - dir = "kong-plugin-aws-lambda-3.3.0" + url = "https://github.com/Kong/kong-plugin-aws-lambda/archive/3.4.0.tar.gz", + dir = "kong-plugin-aws-lambda-3.4.0" } description = { @@ -14,6 +14,7 @@ description = { } dependencies = { + "lua-resty-openssl", } build = { diff --git a/kong/plugins/aws-lambda/handler.lua b/kong/plugins/aws-lambda/handler.lua index 2eaff47..affa419 100644 --- a/kong/plugins/aws-lambda/handler.lua +++ b/kong/plugins/aws-lambda/handler.lua @@ -306,6 +306,6 @@ function AWSLambdaHandler:access(conf) end AWSLambdaHandler.PRIORITY = 750 -AWSLambdaHandler.VERSION = "3.0.1" +AWSLambdaHandler.VERSION = "3.4.0" return AWSLambdaHandler diff --git a/kong/plugins/aws-lambda/v4.lua b/kong/plugins/aws-lambda/v4.lua index d7c40de..e77a007 100644 --- a/kong/plugins/aws-lambda/v4.lua +++ b/kong/plugins/aws-lambda/v4.lua @@ -3,7 +3,7 @@ local resty_sha256 = require "resty.sha256" local pl_string = require "pl.stringx" -local openssl_hmac = require "openssl.hmac" +local openssl_hmac = require "resty.openssl.hmac" local ALGORITHM = "AWS4-HMAC-SHA256"