You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by "nojano (via GitHub)" <gi...@apache.org> on 2025/11/24 17:09:27 UTC

[I] help request: Using Environment Variables in APISIX Routes [apisix]

nojano opened a new issue, #12775:
URL: https://github.com/apache/apisix/issues/12775

   ### Description
   
   Hi APISIX team,
   
   I’m exploring ways to avoid storing sensitive data (like API keys or client secrets) directly in APISIX routes. I know that APISIX supports environment variable substitution (${{VAR}}) in config.yaml, but it’s unclear whether this can also be used inside dynamic resources such as routes, upstreams, or plugin configurations stored in etcd.
   
   Is it currently possible to reference environment variables in routes or other runtime resources? If not, are there recommended patterns or plugins to safely inject secrets without hardcoding them in the route definitions?
   
   Thanks in advance for your guidance!
   
   ### Environment
   
   - APISIX version 3.12.0:
   - Deployment type: Kubernetes
   


-- 
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: notifications-unsubscribe@apisix.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] help request: Using Environment Variables in APISIX Routes [apisix]

Posted by "juzhiyuan (via GitHub)" <gi...@apache.org>.
juzhiyuan commented on issue #12775:
URL: https://github.com/apache/apisix/issues/12775#issuecomment-3573314110

   Refer to https://docs.api7.ai/apisix/reference/environment-variables#plugins


-- 
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: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] help request: Using Environment Variables in APISIX Routes [apisix]

Posted by "juzhiyuan (via GitHub)" <gi...@apache.org>.
juzhiyuan closed issue #12775: help request: Using Environment Variables in APISIX Routes
URL: https://github.com/apache/apisix/issues/12775


-- 
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: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org