Repository navigation
Trim the Railway deployment and bring Go, Node and dependencies up to date - #34
Merged
Merged
Conversation
The hosted deployment now runs one AppView to cut idle cost: the watchdog, its firehose consumer and its own Postgres are removed from Railway. The code stays and is still tested in CI; DEPLOYMENT.md says how to bring it back. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WkPSygdRZ4dKwsasb7dzVQ
web/railway.json turns on Railway's app sleeping, so the website stops holding memory between visits. The PDS image is pinned to 0.4.5051 (what latest resolved to) in Railway; DEPLOYMENT.md explains both and how to upgrade the PDS safely. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WkPSygdRZ4dKwsasb7dzVQ
- Go 1.27 for the ingest build and CI (toolchain go1.27.3), which carries the October crypto/x509 distrust fix (GO-2026-6809). The Dockerfile tracks golang:1.27 so each build takes the newest patch. - Go modules: pgx 5.5.0 -> 5.12.0, x/crypto 0.21 -> 0.58, x/net 0.23 -> 0.62, gorilla/websocket 1.5.3, latest indigo. - Node 24 for the images and CI; Node 22 is in maintenance. - npm: hono 4.13.16 and @hono/node-server 2.1.6 clear their advisories; everything else updated within its range. zod 3 (pulled in by @atproto/*) still has an advisory with no fix on the 3.x line. - CI runs govulncheck. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WkPSygdRZ4dKwsasb7dzVQ
Owner
Author
|
About the red Preview environments are cloned without the The preview is still useful as a check of the new images:
GitHub Actions ( Generated by Claude Code |
This branch was successfully deployed
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.
Warning
Merging will probably redeploy part of the site.
offwing-webandingestfollowmainand deployed automatically on the last merge (#33). The PDS is not running, so the result would be a read-only website plus aningestthat fails to connect and restarts up to 10 times. If the site should stay down, turn off automatic deploys on those two services before merging, or remove the new deployments afterwards.Why
crypto/x509fix that distrusts eight eMudhra intermediate CA keys (GO-2026-6809, in Go 1.26.10 and 1.27.3).ingestwas last built on Sep 15 fromgolang:1.26, so it predates the fix. Several dependencies were also well behind.What changed
In Railway (already done, outside this diff)
watchdog,watchdog-ingestandPostgres-8BEk(plus its volume). The deleted index can be rebuilt from the firehose.offwing-web.pdsimage change fromghcr.io/bluesky-social/pds:latestto:0.4.5051. That's the same imagelatestpoints to today.Deployment
web/railway.json: adds"sleepApplication": true. This file overrides dashboard settings, so without it a deploy would turn sleeping back off.DEPLOYMENT.md, three new sections:ingestand Postgres can't, and how to upgrade the pinned PDS safely (back uppds-volumefirst).README.md/DEVELOPMENT.md: mark the watchdog as optional. Its code is unchanged and CI still tests it.Go
ingestbuild (golang:1.27) and CI.go.modkeepsgo 1.26.0as the minimum and addstoolchain go1.27.3.pgx5.5.0 → 5.12.0. 5.5.0 has a known SQL-injection advisory, fixed in 5.5.4.x/crypto0.21 → 0.58,x/net0.23 → 0.62,gorilla/websocket1.5.3, latestindigo.govulncheck. It couldn't be run during this work because the container can't reachvuln.go.dev, so this PR's CI run is the first real scan.Node
hono4.13.16 and@hono/node-server2.1.6 clear their advisories. Neither affected path was in use (noserveStatic, no dot-notationparseBody), but there's no reason to keep them.zod3.x, pulled in by every@atproto/*package, has a high-severity memory-exhaustion advisory with no fix on the 3.x line. It goes away when@atprotomoves to zod 4. Low risk here, because the only inputs it validates come from our own PDS.@atproto/api0.20 → 0.30,@atproto/repo0.10 → 0.11 and@anthropic-ai/sdk0.120 → 1.x. These may include breaking changes and none fixes a security issue.Verification
go build,go vet,gofmtclean;go test ./...passes, including the database tests against a real Postgres 16 (none skipped).npm run typecheckclean in every workspace.npm testpasses: 439 tests against a real Postgres, none skipped, on both Node 22 and Node 24.npm run vectorsleavestestdata/vectors.jsonunchanged, so the commitment scheme is untouched.web(demo mode) andwatchdoglocally. Health checks and home pages return 200 on@hono/node-server2.Expected result
PDS,
ingestand Postgres always on, with web running only while someone visits. That's roughly 0.3–0.4 GB held around the clock, which should fit inside Hobby's $5 usage credit, so about $5/month in total.🤖 Generated with Claude Code
https://claude.ai/code/session_01WkPSygdRZ4dKwsasb7dzVQ