Secret file (for Google ADC)
psoudan
PROOP

a year ago

Hi,

I need to provide a credentials file with secrets available at runtime (for google's ADC: https://cloud.google.com/docs/authentication/application-default-credentials).

In render.com there is a feature available to upload secrets that will be made available at runtime in the deployed containers: https://render.com/docs/configure-environment-variables#secret-files

I need to have a similar feature (if available) or a way how to do the same thing.

Thanks!

Solved

5 Replies

unicodeveloper
PRO

a year ago

You can do the same by adding it as an environment variable and adding the link to the file as a value.


Status changed to Awaiting User Response Railway over 1 year ago


psoudan
PROOP

a year ago

The idea is to keep the content of the file as a secret.

How would I add the file to the container without making it part of the repository it checks out when deploying?

What I did now to work around this limitation, is adding the contents of a credentials file to an ENV VAR and at runtime, in the application, writing this contents to disk and setting a new ENV VAR pointing to this file location


Status changed to Awaiting Railway Response Railway over 1 year ago


unicodeveloper
PRO

a year ago

That's a good work around. It's not on the roadmap to support file secrets yet.


Status changed to Awaiting User Response Railway over 1 year ago


suhjohn
PRO

a year ago

fyi this doesn't work because of private keys that contain new lines


Status changed to Awaiting Railway Response Railway about 1 year ago


The RAW Editor afaik does, but we do need to support files at some point.


Status changed to Awaiting User Response Railway about 1 year ago


Railway
BOT

a year 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 11 months ago


Welcome!

Sign in to your Railway account to join the conversation.

Loading...