Integrations
Railway
How to continuously sync your secrets with Railway.
Setup
- Generate your API Token
- Go to your Railway account settings and create a new API token.
- Copy the newly generated token somewhere safe because it will not be shown to you again.
- Configuration
- Go to integrations catalog in your envsecrets dashboard and choose “Railway.”
- On the setup/connection page, enter your Railway API token you created above and save the configuration.
Activation
- Go to the integrations dashboard in your envsecrets organisation and under “Railway” choose “Sync New Environment With Your Railway Account.”
- In the page that opens, select your envsecrets project, environment and your Railway project and environment where you wish to push/sync your secrets.
- Complete and save the form.
Usage
Platform
- Navigate to the environment for which you activated the integration.
- Click on the “Sync” button.
- Choose the Railway project to which you want to sync your secrets.
- Approve the sync.
CLI
- Use the command:
envs sync --env [name-of-your-remote-environment]
- Choose the Railway integration.
Once your secrets are synced, it is recommended you go to your Railway project and validate the new values.
Reserved Environment Variables
If you are configuring envsecrets to sync with a specific Railway service and not create shared variables in your Railway environment, please note that the following keys cannot be used or synced to Railway because they are reserved for Railway’s internal requirements:
- RAILWAY_PROJECT_NAME
- RAILWAY_ENVIRONMENT_NAME
- RAILWAY_SERVICE_NAME
- RAILWAY_PROJECT_ID
- RAILWAY_ENVIRONMENT_ID
- RAILWAY_SERVICE_ID
- RAILWAY_ENVIRONMENT