---
title: "Railway Integration | Phase Changelog"
description: "You can now automatically sync secrets and variables to Projects and Services on Railway."
url: https://phase.dev/changelog/railway-integration/
---

[Changelog](https://phase.dev/changelog/)

2024.07.18

# Railway Integration

You can now automatically sync secrets and variables to Projects and Services on Railway.

[console](https://phase.dev/changelog/tag/console/)[cli](https://phase.dev/changelog/tag/cli/)[integrations](https://phase.dev/changelog/tag/integrations/)[railway](https://phase.dev/changelog/tag/railway/)

You can now sync secrets and environment variables to your Projects and Services on Railway. We've also added support for managing personal overrides from the Phase CLI, along with bug fixes and optimizations for self-hosted users.

* * *

## Setting up syncing with Railway

To start syncing secrets to Railway, you'll need to create an API token from your Railway account and add it as an authentication mode in Phase Console under *Integrations*. The API token can be scoped to specific team or just for personal projects. You can find detailed instructions for setting up Railway authentication credentials in the [docs](https://docs.phase.dev/integrations/platforms/railway#step-1-authentication).

![create credentials](https://phase.dev/assets/images/changelog/railway-integration/3-create-personal-token.png)

![input railway credentials](https://phase.dev/assets/images/changelog/railway-integration/railway-input-creds.png)

You can set up syncing with Shared Variables in a Railway Project Environment or a specific Service. Simply choose an Environment in your Phase App as the source of secrets, and the Railway Project Environment as the destination. All associated Services will also be listed and you can optionally choose a target service to sync variables to. Just remember that once setup, your Phase environment will act as the source of truth for all secrets and will overwite any secrets defined in Railway.

![create sync](https://phase.dev/assets/images/changelog/railway-integration/railway-setup-sync.png)

Once setup, Phase will automatically sync your secrets to Railway whenever you create, update or delete a secret in the selected Environment and path.

![railway syncs](https://phase.dev/assets/images/changelog/railway-integration/railway-sync-cards.png)

You can track sync jobs from the Syncing tab of your app and view detailed logs and metadata for each job. You can also pause and resume a specific sync job if needed, or trigger syncs manually.

You can find complete documentation for setting up and managing a Railway integration in the [Phase Docs](https://docs.phase.dev/integrations/platforms/railway).

* * *

## Manage personal overrides from the CLI

We've also added support for creating and managing personal overrides from the Phase CLI. Personal overrides allow you to replace a secret value with one unique to your user account. This is handy for things like OAuth credentials, api tokens or SSH keys that are unique to your development setup.

### Create an secret with an override

To create a new secret with a pre-defined override, simply add the `--override` flag:

```fish
phase secrets create GOOGLE_CLIENT_ID --override
```

You will be prompted to enter the override value, and the secret will be created with a blank string as the default value for other users.

### Update personal overrides

You can change the override value by adding the `--override` flag to the update command:

```fish
phase secrets update GOOGLE_CLIENT_ID --override
```

To toggle an override on or off, you can use the `--toggle-override` flag:

```fish
phase secrets update GOOGLE_CLIENT_ID --toggle-override
```

## Console frontend container optimizations

Good news for users self-hosting Phase! We've optimized the frontend container, reducing the image size by 85%, from ~400MB to ~60MB. Simply pull the `v2.28.0` tag from the latest release and update your instance!

![frontend container optimization](https://phase.dev/assets/images/changelog/railway-integration/frontend-container-size.png)

* * *

Railway integration, CLI override support and the new optimized frontend container is available in Phase Console [v2.28.0](https://github.com/phasehq/console/releases/tag/v2.28.0)

Reach out on [Slack](https://slack.phase.dev) or [GitHub](https://github.com/phasehq) for any questions or feedback on this release!

RoadmapCommunity-driven

Request a feature

We build features based on community requests and feedback. Looking for a specific feature or have a use-case in mind? Reach out to us.

[Feature request](https://github.com/phasehq/console/issues/new?template=feature_request.md)

DeploymentSelf-hosted / Cloud

Get started

## Keep your secrets

Self-host or start on fully managed Cloud in under a minute.

Self-hosted

Run Phase on your own infrastructure. Free and open source.

AI agent deployment skill

[![Docker Compose logo](https://phase.dev/assets/images/docker.svg)](https://docs.phase.dev/self-hosting/docker-compose)[![Kubernetes logo](https://phase.dev/assets/images/kubernetes.svg)](https://docs.phase.dev/self-hosting/kubernetes)[![AWS logo](https://phase.dev/assets/images/aws.svg)](https://docs.phase.dev/self-hosting/aws-eks)[![GCP logo](https://phase.dev/assets/images/gcp.svg)](https://docs.phase.dev/self-hosting/gcp)[![Azure logo](https://phase.dev/assets/images/azure.svg)](https://docs.phase.dev/self-hosting/azure)[![Railway logo](https://phase.dev/assets/images/railway.svg)](https://docs.phase.dev/self-hosting/railway)[![Raspberry Pi logo](https://phase.dev/assets/images/raspberry.svg)](https://docs.phase.dev/self-hosting/raspberrypi)

[Self-hosting guide](https://docs.phase.dev/self-hosting)

Cloud

Fully managed. From signup to your first secret in 60 seconds.

Sign up with

[Google](https://console.phase.dev/login?provider=google)[GitHub](https://console.phase.dev/login?provider=github)[GitLab](https://console.phase.dev/login?provider=gitlab)
