R
Railway•12mo ago
mykal

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.
Railway Docs
Templates | Railway Docs
Documentation for Railway
No description
9 Replies
Percy
Percy•12mo ago
Project ID: 1254242b-3d20-417d-8538-1d7dcb4ebdbd
mykal
mykal•12mo ago
Project ID: 1254242b-3d20-417d-8538-1d7dcb4ebdbd
Brody
Brody•12mo ago
that's definitely the correct syntax @jr - any idea whats going on?
jr
jr•12mo ago
Afk atm but will take a look in a few hours/tomorrow morning
mykal
mykal•12mo ago
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?
jr
jr•12mo ago
Yes we have found the bug. Will be fixed soon
Kyle @ KyTech
Kyle @ KyTech•12mo ago
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!
jr
jr•11mo ago
This should be all fixed now
mykal
mykal•11mo ago
Awesome! thank you 🙂