Repository navigation
Conversation
Signed-off-by: Jeremi Joslin <jeremi@joslin.fr>
Signed-off-by: Jeremi Joslin <jeremi@joslin.fr>
Signed-off-by: Jeremi Joslin <jeremi@joslin.fr>
Signed-off-by: Jeremi Joslin <jeremi@joslin.fr>
Signed-off-by: Jeremi Joslin <jeremi@joslin.fr>
Signed-off-by: Jeremi Joslin <jeremi@joslin.fr>
Signed-off-by: Jeremi Joslin <jeremi@joslin.fr>
Signed-off-by: Jeremi Joslin <jeremi@joslin.fr>
Signed-off-by: Jeremi Joslin <jeremi@joslin.fr>
Signed-off-by: Jeremi Joslin <jeremi@joslin.fr>
Signed-off-by: Jeremi Joslin <jeremi@joslin.fr>
Signed-off-by: Jeremi Joslin <jeremi@joslin.fr>
Signed-off-by: Jeremi Joslin <jeremi@joslin.fr>
Signed-off-by: Jeremi Joslin <jeremi@joslin.fr>
Signed-off-by: Jeremi Joslin <jeremi@joslin.fr>
Signed-off-by: Jeremi Joslin <jeremi@joslin.fr>
Signed-off-by: Jeremi Joslin <jeremi@joslin.fr>
Signed-off-by: Jeremi Joslin <jeremi@joslin.fr>
Signed-off-by: Jeremi Joslin <jeremi@joslin.fr>
Signed-off-by: Jeremi Joslin <jeremi@joslin.fr> (cherry picked from commit 0ce005b78b72f0ee74946ac338d9a98915224781)
Signed-off-by: Jeremi Joslin <jeremi@joslin.fr> (cherry picked from commit a6fb970cff0279d89e2fdda8b62bdb8319473e9c)
Signed-off-by: Jeremi Joslin <jeremi@joslin.fr> (cherry picked from commit eda8527801989cad0022abda0962707b6610cb05)
Signed-off-by: Jeremi Joslin <jeremi@joslin.fr> (cherry picked from commit 0a8db954f5131de825a4536f270796a1652f60c1)
Signed-off-by: Jeremi Joslin <jeremi@joslin.fr>
Signed-off-by: Jeremi Joslin <jeremi@joslin.fr>
Signed-off-by: Jeremi Joslin <jeremi@joslin.fr>
Signed-off-by: Jeremi Joslin <jeremi@joslin.fr> (cherry picked from commit c3f5e84685f3fcc6a1a5e5cf7623da5e75f1fdbb)
Signed-off-by: Jeremi Joslin <jeremi@joslin.fr> (cherry picked from commit 18fde180c61313327d806120c52a21b4b6b3d4aa)
Signed-off-by: Jeremi Joslin <jeremi@joslin.fr> (cherry picked from commit 8695c6a0e68a64d12a0f31562ceb86833c45c565)
Signed-off-by: Jeremi Joslin <jeremi@joslin.fr>
… links Signed-off-by: Jeremi Joslin <jeremi@joslin.fr>
…d reason Coordinator provision discarded the secret error for its two URL members and suggested a PEM file for a URL. It now gives the shared reason and the fix the error names, as every other provision tool does. Refs #2882. Signed-off-by: Jeremi Joslin <jeremi@joslin.fr>
Signed-off-by: Jeremi Joslin <jeremi@joslin.fr>
Signed-off-by: Jeremi Joslin <jeremi@joslin.fr>
Signed-off-by: Jeremi Joslin <jeremi@joslin.fr>
A holder binding now names its kind. A target binding keeps the reviewed shape: one existing Record, its reviewed condition, and a refusal when either is missing. A create binding is for an Action that makes one new Record, such as register-business: the submission names no target and no condition, and the command carries only the attempt key and the prepared input. The new Record's owner comes only from the verified caller. A page that names an owner is refused by the host's parser, and a function that hard-codes an owner or a record ID fails the strict preparation projection with no Action call. Only one new Record answers: the receipt must name a Record at its first revision, so an existing Record's revision or a missing receipt leaves the attempt unresolved, and a same-key retry returns the same Record. Cancellation, deadlines, product refusals and spent keys behave as for a target binding. The tests ran red against the target-only handler first. Signed-off-by: Jeremi Joslin <jeremi@joslin.fr>
…binding proof Fold Lane 1's review of 1c7231d5c. The register-business plan fixes the new business's registering office, and BReg's Action target row boundary refuses a registrar from another office. The synthetic product now does the same: it plans the office and refuses a north registrar with no Record, which a new case covers. The earlier wording that BReg derives the owner from the caller's credential overclaimed. Neither the page nor the function can name the owner; the Action decides it. The receipt comment now says what revision 1 proves: the Record has not changed since it was created. BReg's idempotency per subject and key gives the single effect. Signed-off-by: Jeremi Joslin <jeremi@joslin.fr>
…failed Lane 1's native witness on the business-registration project shows the row policy's check on the Action target's row boundary refusing a north registrar's register-business create with 412 precondition.failed, not 403. The synthetic product now answers the same. Signed-off-by: Jeremi Joslin <jeremi@joslin.fr>
The high review of 771cfe211..1c7231d5c found no P1. This folds its P2s and P3s, tests first. - P2-1: the doc comment says what the binding gives. It minimises the arguments prepare receives, but prepare runs in the invoker's process and can reach what that process can, including the next caller's request. Use it only for trusted, reviewed function code, and run unreviewed functions outside the invoker's process. - P2-2: the handler is stateless, so a refused same-key retry after an unresolved attempt reads as an ordinary refusal. The doc comment states the keep-the-key rule, and a test shows that a page keeping the key through an expired-sign-in refusal ends with one Record. - P2-3: the hard-coded applicant TODO is now a test that pins the refusal: 502 and no Action call. - P3: prepare receives a signal that follows the caller and the deadline. The binding's kind, parsers and invoke are read once at construction. Attempt keys are lowercased before forwarding. New tests cover a create receipt naming a non-UUID record, a synchronous deadline overrun, timer and listener cleanup, prepare receiving the host projection rather than the raw body, and the caller signal reaching invoke and prepare. Tests written after the existing code were proven by mutation: keeping the abort listener, forwarding the key unlowercased, and reading the kind late each fail their test. Signed-off-by: Jeremi Joslin <jeremi@joslin.fr>
Add one subpath export, @registrystack/client/holder-function, to the existing @registrystack/client package. It adds no new npm package name. A trusted host uses createHolderActionHandler to invoke one generated BReg Action for a signed-in person, with a declared function that only prepares the input. The export is pre-1.0. The README states its limits: the binding minimises the function's arguments but does not isolate it, so it suits trusted, reviewed function code only. A created Record's owner comes from the host's parser and the BReg Action, and an unresolved answer must keep the original attempt key and body. The package test pins the export and imports the built module. Signed-off-by: Jeremi Joslin <jeremi@joslin.fr>
- P1-1: CI runs the package tests before the build, so the export test now checks that the build includes holder-function.ts and imports the source module, not dist. It passes with dist moved aside. - R1: the README credits the owner guarantee to the host's preparation parser, which admits only the Action's inputs, and to the BReg Action. - R2: BReg scopes attempt keys per issuer, subject and key, and a create binding's invoke returns the Record the Action created. - R4: one deadline timer ends the race and aborts the preparation's own signal, so no AbortSignal.timeout timer is left running. A new test shows the preparation signal aborted at the deadline. The cleanup test counts the deadline timers it starts and clears, and clears a leak itself, so removing clearTimeout fails the test instead of hanging it. Both were proven by mutation. - R5: the binding, submission and command types a host implements are exported. Signed-off-by: Jeremi Joslin <jeremi@joslin.fr>
Fold the final high review's two nits. The create binding's doc comment says the owner guarantee holds while the host's preparation parser admits only the Action's inputs. The deadline test now wires a counting invoke into the handler under test and asserts it was never called. Signed-off-by: Jeremi Joslin <jeremi@joslin.fr>
gitleaks' generic-api-key rule flags a UUID literal assigned to a variable named idempotencyKey. Rename the test constant to attemptId in both holder binding test files, as Lane 1 did, with no allowlist change. gitleaks finds no leak in either file; the previous create test file is flagged. Signed-off-by: Jeremi Joslin <jeremi@joslin.fr>
Fold the binding review's open findings. - P2-3: unconditional tests show that a 5xx answer, an unreadable 2xx, a 4xx without a problem body and a caller abort after dispatch each give 502 holder-action.outcome-unresolved. Host invoke errors that fail one condition each (refused, settled, 4xx) make every condition of the refusal guard load-bearing. - P3-4: tests for the content type a cross-site form can send, the strong-tag and type checks on a target submission, and no-store on every answer. - P3-6: the revision comment says a revision 1 receipt names a Record the attempt key inserted, and that a replay returns it unchanged. - P3-7: create binds only to an Action that inserts a Record. - P3-8: the handler checks only the bearer's shape, so it must sit behind the Session gateway, and its path is the browser-facing one. - The create branch no longer reads binding.kind a second time. These tests come after the code, so each was proven by mutation: the four refusal-guard mutants, content type, strong tag, both type checks, no-store, the deadline abort and the timer clear all fail the suite. Signed-off-by: Jeremi Joslin <jeremi@joslin.fr>
The recheck noted that an unconditioned patch commits only under current-revision concurrency. Under the default condition-required, BReg refuses it and the handler relays the refusal. Signed-off-by: Jeremi Joslin <jeremi@joslin.fr>
This was referenced Dec 2, 2026
| with HTTPServer(("127.0.0.1", 0), TimestampHandler) as server: | ||
| scheme = "http" | ||
| if tls is not None: | ||
| server.socket = tls.wrap_socket(server.socket, server_side=True) |
Comment on lines
+226
to
+257
| runtime.write_text(f"""\ | ||
| apiVersion: id.registrystack.org/formats/render/runtime/v1alpha1 | ||
| kind: RenderRuntimeConfig | ||
| listener: | ||
| bind: 127.0.0.1:{port} | ||
| package: | ||
| root: {json.dumps(str(directory / 'package'))} | ||
| secretProviders: | ||
| file: | ||
| root: {json.dumps(str(directory / 'secrets'))} | ||
| authentication: | ||
| oidc: | ||
| issuers: | ||
| fixture: | ||
| issuer: {ISSUER} | ||
| audience: {AUDIENCE} | ||
| allowedClients: [{CLIENT}] | ||
| jwksSource: | ||
| type: static | ||
| documentRef: secret:file/jwks.json | ||
| audit: | ||
| path: {json.dumps(str(audit))} | ||
| assuranceProfile: {assurance} | ||
| signing: | ||
| seals: | ||
| ministry: | ||
| signer: | ||
| {signer} | ||
| certificateChainFile: {json.dumps(str(directory / 'chain.pem'))} | ||
| {timestamp_settings} | ||
| allowedClients: [{CLIENT}] | ||
| """) |
| role = request("GET", "auth/approle/role/render-seal/role-id", 200) | ||
| secret = request("POST", "auth/approle/role/render-seal/secret-id", 200) | ||
| (directory / "role-id").write_text(role["data"]["role_id"]) | ||
| (directory / "secret-id").write_text(secret["data"]["secret_id"]) |
jq 1.7, on the hosted runners, refuses an object value written as a sum without parentheses. jq 1.8 accepts it, so the Documents hook sink fixture passed locally and failed in CI. Signed-off-by: Jeremi Joslin <jeremi@joslin.fr>
The ctl-report registration's example is the completed identity facts report, which shares the explain report's apiVersion and kind. Read the explain example directly and keep the registration check for apiVersion and kind. Signed-off-by: Jeremi Joslin <jeremi@joslin.fr> (cherry picked from commit 66e7aac)
The job check now applies the signed-event origin policy that activation always applied, and that policy refuses a base URL with a path. Signed-off-by: Jeremi Joslin <jeremi@joslin.fr>
A CA bundle is a public document, so a group- or world-readable one is read rather than refused by the secret mode rule. Signed-off-by: Jeremi Joslin <jeremi@joslin.fr>
Signed-off-by: Jeremi Joslin <jeremi@joslin.fr>
The signed-event origin policy, now applied at check as at activation, refuses loopback as a private range. The loopback PostgreSQL source does not need it. Signed-off-by: Jeremi Joslin <jeremi@joslin.fr>
Member
Author
|
Replaced by #2928, the one v0.51.0 pull request (all three lanes replayed onto v0.50.0 and folded). |
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.
Replaces #2885; rebased on main after v0.50.0 (700e8ea).
This pull request collects the v0.51.0 work on the local development runtime (
rstack dev), the service previews, operator journeys and Registry Session.Draft status. All planned work for this lane is carried and reviewed, and targeted local checks pass on this head. It stays a draft while full hosted CI runs. v0.51 pull requests do not merge before the v0.50.0 release source is cut.
Expected CI red. Release manifest validation for
registry-stack-beta-62.yaml(and the historical manifest test that validates it) reports thatidentifier_catalog.sha256andentry_countdo not match. This branch adds schema identifiers to the catalogue, and the v0.50 release manifest stays pinned to the catalogue it was cut with. Any other red is a defect to fix here.What each issue delivers
journey.promote.no-input.registry-sessiongenerates one checked, loopback-only Envoy configuration with stable routes and filters and exact numeric upstreams.registry-sessionfor Linux amd64, Linux arm64 and macOS arm64 from v0.51.0. It is a standalone release asset, not anrstackcomponent. It has no installer or image, and the frozen nightly inventories are unchanged.secretProviders.file.mountPolicy: compose-native, for Compose's native secret mounts. Every runtime reads static JWKS and CA bundles as public documents. Evidence and both wallet adapters refuse the setting, and saved CLI connection and task connection files do not accept it.dev.yamlanddev-journeys.yamlfrom the scaffold without overwriting them. A fresh scaffold, the starter source and the reader directory after the tutorial are byte-identical, and the first BReg to change-a-registry replay passes. The "Preview a business registration service" page stays a draft here and is published after release verification, once it has been replayed against the published tag and npm client.evidencectl provision) with split roles. No new serving mode.rstack dev checkreads saved Casework and BReg identity-facts reports structurally, with bounded, redacted diagnostics.@registrystack/clientexportsholder-function, so a trusted host can run a holder's BReg Action itself while the declared function only prepares projected inputs and holds no credential. The operated proof ran on a proof overlay of the reference host, not the shipped recipe. The shipped reference host change follows in v0.52.Authorization,CookieorProxy-Authorization. The typed client keeps the caller's credential per request. Carried with the W1 range.service.invoke-function/v1: a named service function call with no product authority, a function-host key, and the managedrstack devwiring. Includes a development-only Coordinator to Casework review-producer binding.dev.yamldeclares products with the same mapping asservice.yaml, token audiences move toaudienceskeyed by project ID, and a directory holds exactly one inventory.rstack dev checkreports refusals at the authored location.Breaking changes and migrations
rstack updateto v0.51.0 from v0.44.0 to v0.50.0. Thoserstackversions do not recognise the newregistry-sessionrelease asset and refuse the update. Run the v0.51.0rstackinstaller as for a first installation, naming the components you use. Later updates work from v0.51.0. v0.47.0 handled the language server the same way.rstack dev checktakes either a project directory or--owner-report FILE --owner-report-format ..., not both.dev.yamlproduct inventory (Use one authored product inventory shape for dev and service plans #2894).rstack devrefuses the old list form withrstack.dev.products-list. Replace each- {product: KIND, project: PATH, audience: AUDIENCE}entry withproducts.KIND.projects.KIND.path: PATH(BReg, Coordinator, Evidence) orproducts.KIND.path: PATH(other products), and move the audience toaudiences.KIND: AUDIENCE. Whenservice.yamldeclaresproducts, keep onlyaudiencesindev.yaml.Security review notes
These changes touch authentication, release provenance, deployment defaults or secret handling. Each had an independent high review, and a second independent review where stated.
Session route inventory and Envoy assembly (#2853, #2870)
Managed Scheduling task-grant binding (#2844)
dev.yaml. Reusing private key material under a different key ID or file is refused.appointment-observerevent, and 503 when the status service is unavailable.Compose native secret mounts and public documents (#2882)
mountPolicy: compose-nativeis an explicit production setting. It admits only a root-owned, single-link regular file with mode exactly0444under the declared root. Startup andcheckreportplatform.posture.compose-native-secret-mount. Default production still refuses that shape.provisiontools and theregistry-mcpandregistry-sessionchecks print the explicit setting. Public-document refusals are worded for public documents, and the Evidence store-provision schema is regenerated.0444shape. A root-owned0440file is still refused, so stage its own files at0400or0600.mountPolicy. Its description also states that a public document may be group or world readable.One product inventory (#2894)
rstack/devsecurity and restricting members move from/products/*/audienceto/audiences/*.audiencesis required, each value is a non-empty external identifier, and a missing or extra audience is refused, as before. The configuration conventions lint reports no unrecorded findings and no errors.service.yaml, and the inventory owner is not read on the role or grant path.service.yamllink outside the development directory and names the path as written, not the link target. A browser preview takes its products only fromservice.yaml.dev.yamlfixtures before and after the change. Each resolves to the same product, project and audience set, every other key is unchanged, and the two previews keep theirservice.yamlinventory. The ignoredcompare_dev_fixture_token_shapestest was not used, because its pinned baseline predates the roles migration and cannot decode a roles-era plan.Holder function binding (#2835)
holder-functionexport lets the trusted host hold the person's credential and perform the declared BReg Action, while the application function receives only declared projected inputs and holds no credential.Preview handler credentials (#2866)
Authorization,CookieorProxy-Authorization. Two interleaved calls prove per-request credential isolation in the typed client.Coordinator service functions and the review-producer binding (W1, #2888)
rstack devper run and never reaches a product.CI workflow
Verified
release/scriptsunittest file, including the Session roster, unit ownership, component manifest, registry release and plans, and the release source model.registry-rstackrelease manifest tests and clippy.registry-rstack-devlibrary tests.registry-platform-configtests, including the new secret-file decision table and filesystem cases.checkrun with root-owned0444mounts in a containerNot verified
registry-sessionpayloads on Linux arm64 and macOS. That needs the release run.