${{secret()}} value does not match UI
reece
PROOP

a year ago

Idk wtf is going on here.

Project ID: 4da9bec9-7877-4c7b-b514-35df9dce4ad8

Environment: debug

Each time I reload the page, and press the view icon on the variable value, it's different!!

Closed

28 Replies


reece
PROOP

a year ago

the ui is straight up lying


a year ago

You tried to set ${{secret()}} on a service, it can only be set within templates.


reece
PROOP

a year ago

I feel like there should be a glaring warning that tells you that then


reece
PROOP

a year ago

or it should just refuse to work


reece
PROOP

a year ago

instead of behaving like this


a year ago

Iirc secret() just resolves to a random value. Had this issue recently too


reece
PROOP

a year ago

this feels like a massive footgun and i'm surprised it's not documented anywhere


a year ago

That value is mismatched as it gens a new one when you view it. Ssh in to container and echo the var to see it


a year ago

Or, see the one your process is using…


a year ago

Inconvenient yeah


jaredlunde
EMPLOYEE

a year ago

This is good feedback. I’ve run into this and found it confusing myself. “Is this value uhh stable between restarts?”


jaredlunde
EMPLOYEE

a year ago

I can create a product ticket for this


a year ago

Yay!


a year ago

Was also annoyed by this <:sadcat:1408269791965478932>


reece
PROOP

a year ago

I think the best behavior would be it generating when you press submit and actually storing that static value


a year ago

I think though what brody was saying is this value is meant for templates so the starting value isn’t consistent.

Its meant to be changed not used as keygen iirc


reece
PROOP

a year ago

at least when you're not in a template


reece
PROOP

a year ago

if the feature is only meant for templates it should not work outside templates


reece
PROOP

a year ago

I'd consider that a bug


a year ago

^


a year ago

Hi, this should be fixed now!


reece
PROOP

a year ago

oh that was nice and quick, thanks!


reece
PROOP

a year ago

@Paulo what fix was applied? I just tried it and it seems to be the same 🤔


a year ago

${{secret()}} should generate the value on save, what are you trying to do, could you record a video please?


reece
PROOP

a year ago

sure one moment


reece
PROOP

a year ago

whoa okay it just worked


reece
PROOP

a year ago

must have been a tab from before the change was deployed


Welcome!

Sign in to your Railway account to join the conversation.

Loading...