Env vars limited to 20 chars

Hi all
I need env vars to hold tokens for proxied API calls on a private repo site. I am using the approach noted here: - File-based configuration | Netlify Docs
Under Inject Environment Variable Values

sed -i “s|HEADER_PLACEHOLDER|${PROD_API_LOCATION}|g” netlify.toml && yarn build

I had trouble with no permissions happening on the APIs.
I can see in the build logs that if use an environment value in the Netlify UI over 20 characters such as “eyJ0dCI6InAiLCJhbGciOiJIUzI1NiIs…” then i just get “****” showing. I get the same in the logs if I “echo” just the env value.

Strangely if I set the env variable to:
“testtesttesttesttesttesttesttesttesttesttesttesttesttesttestte…” for whatever length then it is used.
What is going on here? How can I get my tokens through?

Hi, @rwoodnz. I just replied to the support ticket about this issue. We can troubleshoot there and, if you don’t mind, we can then follow-up here with the solution (minus any private information of course).