From 341160bc2b222c9b14bd3203b699e999337f695d Mon Sep 17 00:00:00 2001 From: soulbird Date: Tue, 29 Nov 2022 13:32:50 +0800 Subject: [PATCH] chore: add some comment for make_request_to_vault function --- apisix/kms/vault.lua | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/apisix/kms/vault.lua b/apisix/kms/vault.lua index 1343002fcb20..aa1eda425c20 100644 --- a/apisix/kms/vault.lua +++ b/apisix/kms/vault.lua @@ -28,7 +28,12 @@ local rfind_char = core.string.rfind_char local _M = {} - +-- This code is copied from apisix/core/vault.lua. +-- The functions in apisix/core/vault.lua are currently only used in the jwt-auth plugin, +-- and it is not suitable to be placed in the core module of APISIX. +-- +-- When KMS is fully functional, we will remove apisix/core/vault.lua. +-- local function make_request_to_vault(conf, method, key, data) local httpc = http.new() -- config timeout or default to 5000 ms