Sealed Variables in PR environments
yosriady
PROOP

a month ago

I've just started converting some environment variables into sealed variables, but noticed that they are now missing in my PR environments resulting in failed PR CI builds.

How can I have the sealed variables be available in preview environments?

$20 Bounty

2 Replies

Railway
BOT

a month ago

Sealed variables are intentionally not copied to PR environments, as noted in the sealed variables caveats. A workaround is to store the sensitive values as shared variables in Project Settings, then reference them in your services using the ${{shared.VARIABLE_KEY}} syntax. Since the reference variable itself is not sealed, it will be copied to PR environments and will resolve to the shared variable's value.


Status changed to Awaiting User Response Railway about 1 month ago


Railway
BOT

24 days ago

This thread has been marked as solved automatically due to a lack of recent activity. Please re-open this thread or create a new one if you require further assistance. Thank you!

Status changed to Solved Railway 24 days ago


yosriady
PROOP

20 days ago

I've made my sealed variables into shared variables, but it still isn't available in the PR environments. When trying to share the shared variables to my service (which I assume should make it available to my PR environments) the deploy button is also disabled.

What am I missing? Please help.


Status changed to Awaiting Railway Response Railway 20 days ago


Railway
BOT

20 days ago

This thread has been marked as public for community involvement, as it does not contain any sensitive or personal information. Any further activity in this thread will be visible to everyone.

Status changed to Open Railway 20 days ago


Welcome!

Sign in to your Railway account to join the conversation.

Loading...