Template variable function ${{ secret() }} broken for new template deploys
Hey, I have a plausible analytics template on railway. I just got an issue on my GitHub repo for the template citing some issues and it seems that the ${{ secret() }} functionality documented here (https://docs.railway.app/reference/templates#template-variable-functions) is no longer working for newly generated templates.
I just created a new instance of Plausible using my template (https://railway.app/template/mzYEXO) and I can see that the service set the environment variables CLICKHOUSE_PASSWORD and SECRET_KEY_BASE to equal ${{secret(32)}} and ${{secret(64)}} as strings respectively, not an actual generated secret.
Did something change in the implementation here that's causing this? Any help in sorting this out would be awesome.
Did something change in the implementation here that's causing this? Any help in sorting this out would be awesome.
9 Replies
Project ID:
1254242b-3d20-417d-8538-1d7dcb4ebdbd
Project ID: 1254242b-3d20-417d-8538-1d7dcb4ebdbd
that's definitely the correct syntax
@jr - any idea whats going on?
Afk atm but will take a look in a few hours/tomorrow morning
Did we ever figure out the issue here? I'm assuming if I'm the only person having issues it's something specific to my template?
Yes we have found the bug. Will be fixed soon
Thanks @Mykal & @jr, I was the GitHub issue submitter. I was able to get my templating going after Mykal helped guide me through some manual secret generation steps. glad to hear a fix is coming for 1 click deployment!
This should be all fixed now
Awesome! thank you 🙂