Repository navigation
Migrate to Railway IaC and update to current versions - #2
Merged
Merged
Conversation
Railway Config as Code (railway.json) is deprecated and stops being read on 2026-12-01. Replace it with .railway/railway.ts: service with Dockerfile build, watch patterns, restart policy, TCP proxy on 22 and the /data volume. Variables stay unmanaged so secrets never land in git. Also bring the image and tooling up to date: - node:26-slim (Node 26 LTS, Debian 13), s6-overlay 3.2.3.2 with the new user-bundles.d layout, n 11, pnpm 12 - sshd: post-quantum KEX first, drop deprecated option - fail2ban: sshd now logs via rsyslog so bans actually work; exempt Railway-internal proxy ranges from bans and OpenSSH penalties - tmux terminal-features, current GitHub Action versions, trivy-action pinned by SHA, hadolint 2.15 fixes - README and template description: IaC docs, claude auth login, current links and plans Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Railway always builds with a root Dockerfile and defaults the restart policy to ON_FAILURE, so declaring them only produced permanent plan drift. The plan is now clean against the live project. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
railway.json(Config as Code) is deprecated and stops being read on 2026-12-01. The deployment now lives in.railway/railway.ts: Dockerfile build, watch patterns, restart limit, TCP proxy on 22 and the/datavolume. Variables stay unmanaged, so secrets never land in git. The live project is already cut over, andrailway config planreports it up to date.node:26-slim(Node 26 LTS, Debian 13), s6-overlay 3.2.3.2 with the newuser-bundles.dlayout, n 11, pnpm 12.sshd -eused to bypass syslog, soauth.logstayed empty and nothing was ever banned. Railway's TCP proxy hides client IPs, so its internal ranges are exempt from bans and OpenSSH penalties. Without that, one scanner would lock everyone out.claude auth login, current links).Behavior changes
NODE_VERSION=24still works (tested).Testing (local Docker)
sshd -tclean, Claude Code 2.1.316, Node 26.13.0, pnpm 12.16.1, gh 2.103.3, tmux config loads.masterimage on the same volume: host key, Claude Code symlink and.bashrcunchanged.🤖 Generated with Claude Code