Crazy-xyr commented on issue #12618:
URL: https://github.com/apache/apisix/issues/12618#issuecomment-3311004353

   @TaeyeongKwak @Baoyuantop  Thank you for your reply. During the 
reproduction, I discovered bug. `plugin.enable_data_encryption` was always nil 
before `enable_gde()`  for encryption and decryption was called and 
`utils.decrypt_params` did not execute.
   
https://github.com/apache/apisix/blob/77dacda31277a31d6014b4970e36bae2a5c30907/apisix/admin/init.lua#L230-L246
   Therefore, your first ` GET request` returned normally 404. When you `Create 
plugin metadata`, enable_gde() is called and assigned true.
   
https://github.com/apache/apisix/blob/77dacda31277a31d6014b4970e36bae2a5c30907/apisix/plugin.lua#L1025-L1028
   
https://github.com/apache/apisix/blob/77dacda31277a31d6014b4970e36bae2a5c30907/apisix/plugin.lua#L944-L954
   The next `GET request` after delete, when utils.decrypt_params is called, 
conf.namereports nil
   
https://github.com/apache/apisix/blob/77dacda31277a31d6014b4970e36bae2a5c30907/apisix/admin/utils.lua#L106-L110
   


-- 
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