Skip to content

Variable substitution does not work in Traefik IngressRoutes #3535

Closed Locked Answered by christiaangoossens
christiaangoossens asked this question in Support
Discussion options

You must be logged in to vote

For anyone coming across this, the variable handling does not currently strip whitespace and quotes! So, if you encode your Kubernetes secret wrong, you might end up with whitespace after your api key, which then fails the JSON.stringify() call.

If you are creating your Kubernetes secret, remember to do echo -n "secret" | base64 instead of just echo.

I have submitted a PR to strip these automatically, preventing this failure case: #3642

Replies: 5 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by christiaangoossens
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant