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

5 months 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!!

28 Replies


reece
PROOP

5 months ago

the ui is straight up lying


brody
EMPLOYEE

5 months ago

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


reece
PROOP

5 months ago

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


reece
PROOP

5 months ago

or it should just refuse to work


reece
PROOP

5 months ago

instead of behaving like this


noahd
EMPLOYEE

5 months ago

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


reece
PROOP

5 months ago

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


noahd
EMPLOYEE

5 months 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


noahd
EMPLOYEE

5 months ago

Or, see the one your process is using…


noahd
EMPLOYEE

5 months ago

Inconvenient yeah


jaredlunde
EMPLOYEE

5 months ago

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


jaredlunde
EMPLOYEE

5 months ago

I can create a product ticket for this


noahd
EMPLOYEE

5 months ago

Yay!


noahd
EMPLOYEE

5 months ago

Was also annoyed by this <:sadcat:1408269791965478932>


reece
PROOP

5 months ago

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


noahd
EMPLOYEE

5 months 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

5 months ago

at least when you're not in a template


reece
PROOP

5 months ago

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


reece
PROOP

5 months ago

I'd consider that a bug


noahd
EMPLOYEE

5 months ago

^


paulo
EMPLOYEE

5 months ago

Hi, this should be fixed now!


reece
PROOP

5 months ago

oh that was nice and quick, thanks!


reece
PROOP

5 months ago

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


paulo
EMPLOYEE

5 months ago

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


reece
PROOP

5 months ago

sure one moment


reece
PROOP

5 months ago

whoa okay it just worked


reece
PROOP

5 months ago

must have been a tab from before the change was deployed


Loading...