nic-6443 commented on code in PR #11993:
URL: https://github.com/apache/apisix/pull/11993#discussion_r1976523992


##########
apisix/cli/ops.lua:
##########
@@ -529,7 +531,7 @@ Please modify "admin_key" in conf/config.yaml .
         end
 
         local combined_cert_filepath = 
yaml_conf.apisix.ssl.ssl_trusted_combined_path
-                                       or 
"/usr/local/apisix/conf/ssl_trusted_combined.pem"
+                                       or profile.apisix_home .. 
"/conf/ssl_trusted_combined.pem"

Review Comment:
   >  start with a blank file, add their own self-signed CA to the end of the 
file, and specify a custom file directory inside the APISIX configuration file
   
   In this case, the usage cost will increase, especially for containerized 
deployment. Users need to build their own image based on the APISIX container 
image or write corresponding shell scripts to complete this task before 
starting the APISIX image. Both methods are somewhat troublesome.
   Imagine if the etcd deployed by users has mTLS enabled, in order to use 
custom CA certificates and system certificates simultaneously, they would need 
to handle the above steps themselves when deploying APISIX, which becomes 
inconvenient.
   
   > he user will know what they are doing and what the risks are, this cannot 
be a black box.
   
   We can explain the actual functions of `ssl_trusted_certificate` and 
`ssl_trusted_combined_path` in the documentation for `config.yaml`. Just as 
APISIX generates `nginx.conf` at startup, we can explain the function of those 
temporary files.



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