tzssangglass commented on code in PR #8403:
URL: https://github.com/apache/apisix/pull/8403#discussion_r1035569987


##########
apisix/plugin.lua:
##########
@@ -849,6 +850,71 @@ check_plugin_metadata = function(item)
 end
 
 
+local enable_data_encryption
+local function enable_gde()
+    if enable_data_encryption == nil then
+        enable_data_encryption =
+            core.table.try_read_attr(local_conf, "apisix", "data_encryption", 
"enable")
+        _M.enable_data_encryption = enable_data_encryption

Review Comment:
   1. if the user doesn't config `apisix.data_encryption.enable`, then 
`core.table.try_read_attr(local_conf, "apisix", "data_encryption", "enable")` 
would get the default value `false` from `conf/config-default.yaml`
   2. `enable_data_encryption` would be set to `false` as module var.
   3. in the next time, `enable_data_encryption == nil` would get false



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to