cybersec-jochenarnold opened a new issue, #13013:
URL: https://github.com/apache/apisix/issues/13013

   ### Current Behavior
   
   Using mTLS for Upstream with $env:// for Certificate and Private Key.
   
   ### Expected Behavior
   
   Using nginx env variable should be working for secrets like private key.
   
   ### Error Logs
   
   ssl.lua:162: aes_decrypt_pkey(): base64 decode ssl key failed. 
key[$env://API_UPSTREAM_KEY] ...
   
   ### Steps to Reproduce
   
   1. Run APISIX binary on Ubuntu
   2. Create Service with Upstream and refer to a SSL ID
   3. Create SSL with type=client
   
   ssls:
     - id: "UPSTREAM_CLIENT_CERT_ID"
       certificates:
         - certificate: "$env://API_UPSTREAM_CERT"
           key: "$env://API_UPSTREAM_KEY"
       snis:
         - "example.com"
       ssl_protocols:
         - TLSv1.2
         - TLSv1.3
       type: client
   
   ### Environment
   
   - APISIX version (run `apisix version`): 3.15.0
   - Operating system (run `uname -a`): Ubuntu
   - OpenResty / Nginx version (run `openresty -V` or `nginx -V`): 
openresty/1.27.1.2
   - etcd version, if relevant (run `curl 
http://127.0.0.1:9090/v1/server_info`): -
   - APISIX Dashboard version, if relevant: not used
   - Plugin runner version, for issues related to plugin runners: -
   - LuaRocks version, for installation issues (run `luarocks --version`): -
   


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