Repository navigation
app/: blob storage and page texts (sc-8900) - #59
Merged
Merged
Conversation
ndbroadbent
force-pushed
the
laravel-ingest
branch
from
December 2, 2026 13:18
1f9c5ee to
4e1ece6
Compare
ndbroadbent
force-pushed
the
laravel-data
branch
from
December 2, 2026 13:18
dd06bc8 to
719e859
Compare
VisualCIdocspring/visualci · build #253 · 331 unchanged · no changes This PR vs base: nothing since #212, across 4 builds Updated as builds change. Agents can review with VisualCI's MCP tools. |
…ash) and page texts stored once by hash
…ils naming the store when it isn't running
…s), so no crafted hash names another key or presigned URL; the storage settings are required, with no development fallback
ndbroadbent
force-pushed
the
laravel-ingest
branch
from
December 2, 2026 13:53
a3db8b0 to
68a31ab
Compare
…ts HTTP connections belong to that application's runtime (a process-wide client failed with 'error sending request' once a test's runtime ended)
ndbroadbent
added a commit
that referenced
this pull request
Dec 2, 2026
ndbroadbent
added a commit
that referenced
this pull request
Dec 2, 2026
…uth settings; one Cargo.toml tracing entry; the OAuth discovery test expects the tests' APP_URL (https://app.visualci.test, since #59)
ndbroadbent
added a commit
that referenced
this pull request
Dec 2, 2026
… (sc-8900) (#58) * Auth review follow-ups (sc-8900): /auth/session as today (name, avatar, the one organization) with CORS for the site's exact origin alone and no-store; /auth/providers lists the configured forges; tokens' last_used_at written at most once a minute; a project token stays a member of its own project (can review, as today), documented and tested * Sign-in, review fixes: the site's signed-in hint (vci_signed_in, plain and readable by its script, on the site's domain) is set at sign-in, renewed or cleared by /auth/session and cleared at logout, as today's; /auth/providers and /login offer a forge only when its OAuth application has its ID and its secret * Test: OAuth discovery expects the tests' APP_URL (https://app.visualci.test, since #59) * app/Cargo.toml: one tracing entry (#57's merge listed it twice, so cargo couldn't read the manifest and main's app job failed)
ndbroadbent
added a commit
that referenced
this pull request
Dec 2, 2026
…uth settings; one Cargo.toml tracing entry; the OAuth discovery test expects the tests' APP_URL (https://app.visualci.test, since #59)
ndbroadbent
added a commit
that referenced
this pull request
Dec 2, 2026
* Routing by hostname, hardened (sc-8900, review of #53): production refuses to boot without all four host URLs; the host check judges a normalised path (percent-decoded, repeated slashes collapsed, lowercased), so /%61pi/v1, //api/v1 and /API/v1 can't reach the API through the app host; tests * Routing by hostname, review fixes: production boots only when all four host URLs name a host and no two are the same (a bare app.visualci.com fails); in production a request for any other host reaches only /up and the renderers' /internal paths; Laravel's TrustHosts trusts every host, since it would refuse the API and MCP hosts and the pods' probes and route_by_host is the host check; tested in production for an unknown host and a boot that fails * Routing by hostname: test that a forged Host gets no URL with its name in production (sign-in's callback, OAuth metadata, the device code and redirects are unreachable from it; every other URL comes from the configured host URLs) * Routing by hostname: production boots with none of the four host URLs (one host serves everything, as a self-hosted VisualCI does, every URL from APP_URL) or all four, each naming a host and no two the same; only some of them is a boot error; tested in production for one host, the partial case, and four * Routing by hostname on main: production-mode tests get storage and OAuth settings; one Cargo.toml tracing entry; the OAuth discovery test expects the tests' APP_URL (https://app.visualci.test, since #59)
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.
Stacked on #54.
app::storage::BlobStore). Ported from server/src/blobstore.rs: presigned uploads and downloads, reads checked against the SHA-256, verify, put and delete. It's configured fromS3_*(app::config::Storage) and built once per process.app::storage::texts). Stored once by SHA-256 with one multi-row insert per batch, and loaded by hash.appjob starts RustFS, as the visual job does, so the storage tests run in CI.testing::fixtures::blob_store()fails, naming the store, when it isn't running. AGENTS.md gets the rule that a test never skips quietly, since a test that returns early passes in CI. Today's server tests that need blobs do return early in thetestjob, which runs no S3.Tests: texts are stored once and load back; a blob round-trips, is verified by hash and is deleted. All of
cargo testpasses, and clippy is clean.