suryaparua-official commented on issue #12932:
URL: https://github.com/apache/apisix/issues/12932#issuecomment-3785249234
Hii, I’d like to confirm my understanding of this issue before starting any
work.
From what I see, the problem is that environment variable substitution
currently performs automatic type casting even when the value is explicitly
quoted in YAML.
For example:
abc: 10
xyz: "${{ABC}}"
with: ABC=10
Observed behavior: abc becomes number 10 and xyz also becomes number 10
my understanding:
abc should remain number 10 and xyz should remain string "10", since it is
explicitly quoted
This automatic casting can cause schema validation errors in plugins such as
openid-connect, especially when large numeric values are provided via
environment
variables (values exceeding Lua number precision).
Before proceeding, I’d appreciate confirmation that Should quoted
environment variable substitutions always be treated as strings? and Is
limiting automatic type casting only to unquoted substitutions the intended
direction?
Once confirmed, I’ll be happy to work on a fix.
Thanks for your time and guidance.
--
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]