Repository navigation
app/: gallery rate limit on the trusted-proxy address; DB_APPLICATION_NAME per process (sc-8900 cutover) - #98
Merged
Merged
Conversation
ndbroadbent
force-pushed
the
laravel-cutover-fixes
branch
from
December 2, 2026 23:49
4f13021 to
fe06ac0
Compare
…the trusted proxies (behind Cloudflare's tunnel no hop comes from Cloudflare's ranges, so the cf-connecting-ip range check never applied); each process names its database connections from DB_APPLICATION_NAME (SET application_name), for Postgres's per-process metrics
…trusted proxy, request.ip() is the right-most X-Forwarded-For entry that isn't one, so a forged first entry changes nothing
ndbroadbent
force-pushed
the
laravel-cutover-fixes
branch
from
December 3, 2026 00:27
fe06ac0 to
343d0f2
Compare
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.
Part of sc-8900, from talira infra's check of the cutover manifests (infra#2) against the app.
The gallery's rate limit uses
request.ip().cf-connecting-iponly from Cloudflare's ranges") could never match.request.ip(): withTRUSTED_PROXIESset to Envoy's nodes (infra#2: 10.42.0.0/24 and 10.42.1.0/24), it resolves to the client Cloudflare names, and a client can't set it with headers of its own.VISUALCI_CLOUDFLARE_IP_RANGES,CLOUDFLARE_IP_RANGES),caller()and theipnetdependency.DB_APPLICATION_NAMEnames each process's connections.SET application_name = '<name>', so Postgres's metrics andpg_stat_activitysplit by process.The full app suite passes on docspring-dev, and clippy and fmt are clean.