Skip to content

id: F12.17 module trust gate — admin trust list + install-time signature check (#1069, partial) - #4088

Merged
dezren39 merged 3 commits into
mainfrom
queue/4945-1069-module-trust
Nov 2, 2026
Merged

dezren39 merged 3 commits into
mainfrom
queue/4945-1069-module-trust

Conversation

@dezren39

@dezren39 dezren39 commented Nov 2, 2026 •

Copy link
Copy Markdown
Member

Partial implementation of #1069 (F12.17 module trust), from task 4945. This PR lands the trust-gate core; the remaining #1069 acceptance items are split out on #1069 (compiler-version provenance + journal-recorded trust decisions) so this verified slice does not sit unmerged.

What lands

  • Admin trust list for module signing keys: repeatable serve --world-module-trust-key <hex> CLI flag, wired through ServeOptions/ServeWorlds into WorldService::with_module_trust_keys.
  • Signature verification at module install (install_wasm_reserved): when the trust list is non-empty, an unsigned, untrusted-key, or bad-signature upload is refused with the new InstallError::UntrustedModule ("module signature is not trusted" on the session surface). Signatures are Ed25519 over a domain-separated BLAKE3 digest (developing-today/id-world-module/v1\0 + digest), carried as an optional signature field on the install frame (ModuleSignature { public_key, signature }, hex).
  • Empty trust list preserves today's behavior exactly (no refusal).

Tests

  • module_trust_list_allows_empty_refuses_unsigned_and_accepts_trusted_signer (world_session): empty list loads, non-empty list refuses unsigned, trust-listed signer installs.
  • module_trust_keys_are_repeatable_and_require_world_mode (cli parse).
  • Prior queue claim (task 4945) reported targeted tests passed; CI on this PR is the verification surface.

Not in this PR (split on #1069)

Refs #1069, task 4945.


View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need.

…ure check (#1069, partial)

Lands the implementation found uncommitted in this worktree so it is
preserved on the branch: --world-module-trust-key (repeatable, hex
Ed25519, requires --world) flows ServeOptions -> ServeWorlds ->
WorldService.with_module_trust_keys; InstallBegin carries an optional
ModuleSignature (Ed25519 over the domain-separated BLAKE3 digest of
the module bytes); install paths refuse with InstallError::
UntrustedModule when the trust list is non-empty and the artifact is
unsigned, untrusted, or badly signed; empty list keeps legacy
behavior. Includes CLI parse test + world_session trust tests.

REMAINING for #1069 (not in this commit): compiler-version field in
observed module provenance, and journal-recorded trust decisions
(accepted/refused + key + module). Tests for this slice not yet run
when committed — see task 4945 checkpoints for the verdict.
@dezren39
dezren39 requested a review from a team as a code owner November 2, 2026 00:25
@coderabbitai

coderabbitai Bot commented Nov 2, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 39 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 52b6570b-af7c-4ee2-a31a-6820bde9fe01
Commits

Reviewing files that changed from the base of the PR and between ee98763 and 8462b06.

Files selected for processing: 9
  • doc/2026-11-02T00-31-45Z_design_module_trust/2026-11-02T00-31-45Z_design_module_trust.md
  • pkgs/id/contract/shell-contract.v1.json
  • pkgs/id/src/cli.rs
  • pkgs/id/src/commands/serve.rs
  • pkgs/id/src/main.rs
  • pkgs/id/src/shell_contract/tests.rs
  • pkgs/id/src/world_session/mod.rs
  • pkgs/id/src/world_session/tests.rs
  • pkgs/id/src/world_session/types.rs
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 2, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-02T00:33:58.733429Z 8462b06 New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: fceea9d597

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread pkgs/id/src/world_session/mod.rs Resolved
Comment thread pkgs/id/src/commands/serve.rs Resolved
Comment thread pkgs/id/src/cli.rs Resolved
Comment thread pkgs/id/src/world_session/types.rs Resolved
…st exemption, startup combo guard, shell-contract signature field, F12.17 design record (#1069)
@dezren39
dezren39 merged commit 34ba1ab into main Nov 2, 2026
15 of 32 checks passed
@dezren39
dezren39 deleted the queue/4945-1069-module-trust branch November 2, 2026 05:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant