Repository navigation
Conversation
Signed-off-by: Jeremi Joslin <jeremi@joslin.fr>
…binding The reference host builds each function the manifest names from its default export with the rstack dev prepared run, serves page calls on the relayed listener and Coordinator calls on a separate loopback listener that admits only the function host key. Signed-off-by: Jeremi Joslin <jeremi@joslin.fr>
Signed-off-by: Jeremi Joslin <jeremi@joslin.fr>
The Coordinator overlay gives the host and the serving Coordinator one function host key, and the products' namespace reaches the host's Coordinator listener at 127.0.0.1:8301 through an owner-only socket. Signed-off-by: Jeremi Joslin <jeremi@joslin.fr>
…dinator listener Signed-off-by: Jeremi Joslin <jeremi@joslin.fr>
…host job That job installs and builds the client package, which the function and parity tests build their preview bundle with. Signed-off-by: Jeremi Joslin <jeremi@joslin.fr>
…client Signed-off-by: Jeremi Joslin <jeremi@joslin.fr>
…ient The host serves every function through its own defineFunction binding, so the image, the runners, the guides and the deployment job must stop building or passing a client for it. Signed-off-by: Jeremi Joslin <jeremi@joslin.fr>
…ger loads Every function runs through its own defineFunction binding from the checked bundle, so the image, Compose, the runners, the cluster run, the service preview check, CI and the guides stop generating, checking, archiving or passing a separate client. The deployment job no longer routes on client sources it does not read. Signed-off-by: Jeremi Joslin <jeremi@joslin.fr>
… reference host The relay to the host's Coordinator listener, the key file and the service function connection were proved only by unit tests. The proof run now has to call register-business and finish with its answer, and pull request CI has to run the coordinator profile. Signed-off-by: Jeremi Joslin <jeremi@joslin.fr>
…ence host The proof workflow calls the bundle's register-business through the products' relay with the function host key and finishes with the function's answer. The runner requires exactly one Coordinator outcome line, and pull request CI now runs the coordinator profile. Signed-off-by: Jeremi Joslin <jeremi@joslin.fr>
…h read The reference host now runs register-business's default export like rstack dev, so the comments saying it imports only prepare were false and the named export had no reader. Signed-off-by: Jeremi Joslin <jeremi@joslin.fr>
… the function's status Signed-off-by: Jeremi Joslin <jeremi@joslin.fr>
Signed-off-by: Jeremi Joslin <jeremi@joslin.fr>
…unction runs Signed-off-by: Jeremi Joslin <jeremi@joslin.fr>
Signed-off-by: Jeremi Joslin <jeremi@joslin.fr>
… from the checked bytes Signed-off-by: Jeremi Joslin <jeremi@joslin.fr>
…e checked bytes Signed-off-by: Jeremi Joslin <jeremi@joslin.fr>
…ay's function header policy Signed-off-by: Jeremi Joslin <jeremi@joslin.fr>
…ack dev relays Signed-off-by: Jeremi Joslin <jeremi@joslin.fr>
…age and static files Signed-off-by: Jeremi Joslin <jeremi@joslin.fr>
…ck dev does Signed-off-by: Jeremi Joslin <jeremi@joslin.fr>
…dot segments and links Signed-off-by: Jeremi Joslin <jeremi@joslin.fr>
…pare key digests Signed-off-by: Jeremi Joslin <jeremi@joslin.fr>
…in the intended differences Signed-off-by: Jeremi Joslin <jeremi@joslin.fr>
…o run the reference host job Signed-off-by: Jeremi Joslin <jeremi@joslin.fr>
… contract changes Signed-off-by: Jeremi Joslin <jeremi@joslin.fr>
Signed-off-by: Jeremi Joslin <jeremi@joslin.fr>
… proof fails Signed-off-by: Jeremi Joslin <jeremi@joslin.fr>
…efuse a link swapped in after start Signed-off-by: Jeremi Joslin <jeremi@joslin.fr>
…ty and check the path a function asks for Signed-off-by: Jeremi Joslin <jeremi@joslin.fr>
Signed-off-by: Jeremi Joslin <jeremi@joslin.fr>
Signed-off-by: Jeremi Joslin <jeremi@joslin.fr>
…dev, and pin its transport headers Signed-off-by: Jeremi Joslin <jeremi@joslin.fr>
…as the rstack dev gateway does Signed-off-by: Jeremi Joslin <jeremi@joslin.fr>
…LLOW comment, and list the oversized Coordinator difference Signed-off-by: Jeremi Joslin <jeremi@joslin.fr>
…ition Each composition now names its runner, the files in that runner's order, the relay's checked configuration and each member's exact read-only mounts. The test reads every member's own network mode, requires the relay to join no network and to run its checked configuration, and evaluates each runner's own compose_files block to compare the order. Bad fixtures show each check refusing what it guards, including relay configurations that route through a second filter chain, filter, endpoint or listener address, which the route helper still accepts today. Signed-off-by: Jeremi Joslin <jeremi@joslin.fr>
The route helper read only the first filter chain, filter and endpoint of each loopback listener. It now walks every listener address, filter chain including the default one, TCP proxy or HTTP route, weighted cluster and endpoint, and refuses a filter, route or cluster shape it cannot read. Signed-off-by: Jeremi Joslin <jeremi@joslin.fr>
A change to one of the three candidate host Compose overlays alone selects only the release tool job, so the reference host job that renders every composition with Compose required never runs. Signed-off-by: Jeremi Joslin <jeremi@joslin.fr>
…nges The function host network test renders the three candidate host overlays with Compose required, so a change to any of them alone now runs it. Signed-off-by: Jeremi Joslin <jeremi@joslin.fr>
The order check runs each runner's compose_files block with no PATH, so a program named in that block fails the check instead of running on the test machine. Only the Compose render needs Node.js absent from its checks. Signed-off-by: Jeremi Joslin <jeremi@joslin.fr>
The deployment job also runs the function host network test, so a change to a candidate host overlay alone should run it there too. Signed-off-by: Jeremi Joslin <jeremi@joslin.fr>
The deployment job runs every recipe test, the function host network test among them, which renders the candidate host overlays. Signed-off-by: Jeremi Joslin <jeremi@joslin.fr>
Three overlays merged after the breg composition and rendered by Compose: the relay's network mode reset onto the default network, the relay on a network of its own, and the host mounting the parent of the relay sockets. The namespace and mount checks refuse each one. Signed-off-by: Jeremi Joslin <jeremi@joslin.fr>
…nfig The route check reads a relay's static listeners and clusters, so a config that adds dynamic resources or an admin listener would get past it. The test now reads the base relay config and runs each runner's generator for the configs it writes. Every config the compositions mount must hold only static_resources. Fixtures with dynamic listeners, an admin listener, or dynamic clusters in flow style fail the check. Signed-off-by: Jeremi Joslin <jeremi@joslin.fr>
Signed-off-by: Jeremi Joslin <jeremi@joslin.fr>
…ever case or loader names a bundle file Signed-off-by: Jeremi Joslin <jeremi@joslin.fr>
…ves it, and compare bundle paths after links and letter case Signed-off-by: Jeremi Joslin <jeremi@joslin.fr>
…r a redirect whose body fails Signed-off-by: Jeremi Joslin <jeremi@joslin.fr>
…d shape the page answer inside the same error boundary Signed-off-by: Jeremi Joslin <jeremi@joslin.fr>
…e host serves Signed-off-by: Jeremi Joslin <jeremi@joslin.fr>
…, so its call cannot race the host's start Signed-off-by: Jeremi Joslin <jeremi@joslin.fr>
…js or npm when a client package is named Signed-off-by: Jeremi Joslin <jeremi@joslin.fr>
… package is named, as the network test fails without Compose Signed-off-by: Jeremi Joslin <jeremi@joslin.fr>
Signed-off-by: Jeremi Joslin <jeremi@joslin.fr>
Signed-off-by: Jeremi Joslin <jeremi@joslin.fr>
…e, since Node 24.11 names a function's CommonJS loader without its query Signed-off-by: Jeremi Joslin <jeremi@joslin.fr>
This branch has not been 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.
This is the integration PR for general service functions. It lands in steps on this branch and stays a draft until every step it carries is in and green. Step 1, below, runs every service function on the reference host. The next steps follow on this branch: the per-function declaration and call pass in
rstack dev, the call pass in Session, principals, and preview parity. Each one updates this description.Step 1
The Compose reference host ran only the registration example's
prepareexport. A service's functions could not run there as they run underrstack dev. The host now serves every function the bundle's manifest names, through each function's owndefineFunctionexport, with the same contract asrstack dev.What changes
Manifest.
host.mjsreads the manifest and checks its shape before it imports anything:staticOutputwith no empty,.or..segment;Module loading.
Page calls. They arrive through Session's Envoy with the person's bearer.
rstack dev's gateway policy:Acceptreaches the function withAccept: */*.Request bodies. Bodies over 32 KiB answer 413 before any function runs.
Coordinator listener. With the Coordinator overlay, the host opens a Coordinator listener on private loopback port 8301:
FUNCTION_HOST_KEY_FILE, never from the environment, and compared as fixed-size digests in constant time;Failures and logging.
Retired host client. The generated host client and its build step are retired from the Dockerfile, Compose, the run scripts, the chart's cluster test, CI and the guides.
Networks. In every Compose composition the function host's namespace has no network, and its only route out is its relay to BReg. Machine clients that need the issuer run in their own relay namespace.
The network test renders every composition with each runner's own file order. It fails on:
CI runs it whenever a recipe file or a release candidate overlay changes.
Coordinator proof. CI runs the coordinator profile on pull requests. In that run, a Coordinator workflow calls a function on the reference host through its listener once the host serves. The release candidate's receipt check requires that proof's exact output.
Tests
function-parity.test.mjsbuilds the permit-review functions unchanged, plus a test function that reads BReg. Bothrstack dev's function host and the reference host serve them against one stub BReg, directly and through the dev gateway.Acceptand the 4 MiB limit.host.test.mjscovers:functions.test.mjs,test_coordinator_prepare.pyandtest_function_host_network.pyare new.operator-steps.test.mjsrefuses any recipe file, runner or guide that names the host client, and pins the runner order and guide counts.Run locally on the pushed head, all passing:
test_ci_changes.pytest_candidate_host_smoke.pyAlso clean: shellcheck, actionlint and
git diff --check.The Compose and k3d runs, including the coordinator profile and the browser journey, are left to this PR's full CI.
Intended differences from
rstack devThe parity test pins the first five:
rstack devanswers 404.rstack dev's HTTP client adds on its own (Accept-Encoding,Accept-Language,Sec-Fetch-Mode,User-Agent).Not pinned: for
Response.error(),rstack devanswers 500 with an empty body, and the reference host answers 500 with its generic message.Security review notes
This changes the reference host's trust boundary.
rstack dev.data:included. It is not a sandbox: a function has Node builtins, so reviewed code could still build and run source by other means.Not in this PR
@registrystack/client/holder-functionexport stays. No recipe uses it now.