GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — feat(id): refuse hosted import on CSE-choice mismatch (#3810 slice 4c) by dezren39 · Pull Request #13313 · developing-today/code

Conversation

@dezren39

@dezren39 dezren39 commented Nov 23, 2026 •
edited by blacksmith-sh Bot
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

Summary

Next slice of #3810 (tracked under #2852 slice 4, spec section 6 + section 7): import verification now checks the client-side-encryption choice, and the ingest verification-token gate pins it too.

  • Fix: verify_import step 1 accepted any CSE statement that was consistently signed: a manifest claiming encryption over a plaintext-stored binding (or vice versa) verified, and ingest would store the payloads under the wrong interpretation — decrypt-wrong or downgrade opaque payloads. It now returns the new typed refusal ExportError::CseChoiceMismatch when manifest and binding record disagree (spec section 7: the flag changes only by re-encrypting via export/import, so disagreeing halves do not describe one stored data set). ingest_import refuses a verification token naming a different CSE choice before any write.
  • Tests (4 new): both mismatch directions, an unsigned flag flip (still fails as ManifestSignatureInvalid — the choice is authenticated, not decorative), and a mismatched-choice token refused pre-write with nothing landed.

Evidence

Failing-first oracle: manifest_cse_choice_mismatching_the_binding_is_refused failed on origin/main as Ok(verified…), not a compile error; passes after the fix.

cargo test -p id --lib -- hosted_export:: hosted_ingest:: hosted_binding:: on the laptop at d59896c0ff7 (post-merge with origin/main): 60 passed, 0 failed. Re-ran post-merge hosted_export:: hosted_ingest::: 21 passed, 0 failed.

Not verified here: full-workspace clippy — the shared build cache holds rustc-1.99.0 artifacts incompatible with this checkout's 1.99.1 toolchain (E0514, unrelated crates); relies on nightly CI. No new test files, so no suite-registry change.

Merge Danger

Low. Additive typed error variant + two narrow checks; no behavior change for consistent exports (all pre-existing tests pass unmodified). Adjacent-line overlap with open #13196 (same files, step-2 hunks) — semantic overlap is nil; merge order irrelevant.

Refs #3810, #2852.

{
  "direct_parent": null,
  "links": [],
  "lineage": {
    "design": null,
    "roadmap_item": null,
    "priority": null
  },
  "pm_meta": 1,
  "provenance": {
    "queue_id": null,
    "scheduled_start": null,
    "picked_up_at": null,
    "work_started_at": null,
    "created_at": "2026-11-23T13:19:51Z",
    "session_id": "ses_e5df7cef342ffeyozi9v2CbybJ",
    "lane": null,
    "host": "amd",
    "worktree": "/home/user/git/lane-oc-code-02-3810-cse-parity",
    "model": null,
    "lane_start_issues": [],
    "workspace_ref": {
      "kind": "worktree",
      "id": "/home/user/git/lane-oc-code-02-3810-cse-parity",
      "repo": "developing-today/code",
      "branch": "lane-oc-code-02-3810-cse-parity",
      "sha": "d59896c0ff7476843101f5025063515059271b14"
    },
    "auth_subject": "oc-code-05",
    "stamped_by": "fleet 0.1.0 (native)"
  }
}

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

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

chatgpt-codex-connector[bot] reacted with thumbs up emoji
All reactions
  • 👍 1 reaction
oc-code-02
feat(id): refuse hosted import on CSE-choice mismatch (slice 4c of #2852
d59896c
, #3810)

verify_import step 1 gains ExportError::CseChoiceMismatch: a manifest
whose client_side_encryption differs from the binding record it
travels with does not describe one stored data set (spec section 7:
the flag changes only by re-encrypting via export/import). The choice
is manifest-signed, so an unsigned flip still fails as
ManifestSignatureInvalid. ingest_import's verification-token gate now
pins the CSE choice too, refusing before any write.

Tests (failing-first: CseChoiceMismatch case failed on origin/main as
Ok/verified): both mismatch directions, unsigned flag flip,
token-with-different-choice refused pre-write.

Evidence: cargo test -p id --lib -- hosted_export:: hosted_ingest::
hosted_binding:: => 60 passed, 0 failed, on the laptop.

Refs #3810, #2852.
@coderabbitai

coderabbitai Bot commented Nov 23, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

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 15 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: b366a814-e17e-4360-9a72-25db220ddfd8
Commits

Reviewing files that changed from the base of the PR and between 54683fb and 5eec105.

Files selected for processing: 2

  • pkgs/id/src/hosted_export.rs
  • pkgs/id/src/hosted_ingest.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

  • X
  • Mastodon
  • Reddit
  • LinkedIn
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@dezren39 dezren39 mentioned this pull request Nov 23, 2026
id: implement signed-object export/import for hosted ID stores (from #2046/#2852 slice 4) #3810
Closed
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 23, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-23T13:21:46.025483Z d59896c PR opened
ℹ️ 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.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@dezren39 dezren39 mentioned this pull request Nov 23, 2026
id: reject hosted imports with a mismatched unkeyed-export token #13389
Closed
@dezren39

dezren39 commented Nov 23, 2026

Copy link
Copy Markdown
Member Author

Filed the distinct adjacent gap as #13389: ingest compares the verified token’s binding/key/counts but does not bind its unkeyed_export trust flag to the export. The repro confirms a keyed token authorizes an unkeyed export that verify_import(..., false) refuses. This is separate from the CSE-choice mismatch addressed here.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@dezren39 dezren39 mentioned this pull request Nov 24, 2026
AUDIT-7 Lane 1 follow-up: rebase-and-merge queue for 90 blocked PRs (batches A–H) #13903
Closed
@dezren39
Merge origin/main into lane-oc-code-02-3810-cse-parity
5eec105
Keep both ingest guards: main unkeyed_export trust check plus
PR client_side_encryption choice check (complementary fields,
both pinned on token and manifest). Doc comment covers both.
Keep both test blocks: PR cse-choice refusal plus main
keyed/unkeyed pair.

Verified: cargo test -p id --lib hosted_ 91 passed (incl. both
new guards). Pre-existing main breakage untouched by this
merge: content_removal target does not compile (#14073).
@dezren39
dezren39 merged commit 68a1966 into main Nov 24, 2026
1 check passed

Uh oh!

There was an error while loading. Please reload this page.

@dezren39
dezren39 deleted the lane-oc-code-02-3810-cse-parity branch November 24, 2026 04:23
@dezren39

dezren39 commented Nov 24, 2026

Copy link
Copy Markdown
Member Author

Batch A verification record (lane code-i):

  • Merge-main-in kept both ingest guards (main unkeyed_export trust check + PR client_side_encryption choice check — complementary, both pinned on token and manifest); doc covers both; both test blocks kept.
  • Verified: cargo test -p id --lib hosted_ 91 passed, including the PR cse-choice refusal and both main unkeyed tests. Full -p id run still blocked by pre-existing main breakage id: tests/content_removal.rs does not compile against id::groups::Event (missing field at) #14073 (content_removal target, untouched by this merge).
  • Merged as 68a1966.
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@dezren39 dezren39 mentioned this pull request Nov 24, 2026
id: implement hosted provisioning + SSO→ID binding (from spec #2258) #2852
Closed
3 of 5 tasks
This was referenced Nov 27, 2026
id: bind hosted import verification tokens to the exact export #16053
Closed
id: bind hosted import verification tokens to the exact export #16054
Closed
Audit programme: seven-lane review of PRs, issues and designs (2026-11-23) #13871
Open
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

1 participant

@dezren39
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.