Skip to content

chore(release): select native 9842d98 (#31, #34, #33) for signer 1.0.10 - #12

Merged
mstattma merged 2 commits into
feat/trusted-vsi-functionalfrom
release/native-9842d98
Nov 10, 2026
Merged

mstattma merged 2 commits into
feat/trusted-vsi-functionalfrom
release/native-9842d98

Conversation

@mstattma

Copy link
Copy Markdown

Moves the signer 1.0.10 native pin from 11f1212 to 9842d98, the feat/trusted-vsi-functional head of castlabs/c2pa-rs. It adds castlabs/c2pa-rs#33 [fix(sdk): Adopt upstream soft-binding byte normalization]: JSON soft-binding byte arrays and b64'…' values are stored as CBOR byte strings, which signer contentauth#94, CLI contentauth#44 and demo contentauth#78 need. Plus castlabs/c2pa-rs#34's audit exceptions, which are CI policy only.

  • The pin changes in the release lock, the release and paired workflows, the release-tooling constant and schemas, and the docs. The release body mentions the soft-binding normalization.
  • Cargo.lock is byte-identical (SHA-256 10fcb5c1…), so Performance improvement when signing using file paths. contentauth/c2pa-python#34's time-boxed crypto-bigint exception, which expires 2026-12-04, still matches the assessed lock.
  • The release tooling tests pass locally (36). The paired Linux/Windows qualification runs on this PR in CI. Local native builds aren't possible on this host (disk).

Next: after merge, a manual non-publishing Castlabs VSI release run on the branch tip builds and tests both wheels. The castlabs-v0.37.13+signer.1.0.10 tag, which creates the draft release, is a separate step.

…contentauth#33) for signer 1.0.10

The 1.0.10 native now also carries castlabs/c2pa-rs#33, the upstream
soft-binding byte normalization, merged after contentauth#34 on feat/trusted-vsi-functional.
Cargo.lock is unchanged (SHA-256 10fcb5c1...), so contentauth#34's audit exception
assessment still applies.
@mstattma

Copy link
Copy Markdown
Author

@cl-percy review

@mstattma

Copy link
Copy Markdown
Author

Paired Linux/Windows qualification (non-publishing, trusted_vsi_only) dispatched for a50223f, the same way as #11: https://github.com/castlabs/c2pa-python/actions/runs/42782411039

@mstattma

Copy link
Copy Markdown
Author

Paired qualification passed for a50223f + native 9842d98 (run 42782411039): Linux libc2pa_c.so and Windows c2pa_c.dll both succeeded. @BibinBaby444 please review. After merge, the remaining steps are the non-publishing release build on the branch tip and the release tag, which creates a draft release only.

@BibinBaby444 BibinBaby444 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

@mstattma Approve at a50223f. Native 9842d98 is exactly c2pa-rs contentauth#31, contentauth#34 and contentauth#33 on top of the previously selected 11f1212, and its source tree is byte-identical to the contentauth#33 head I approved. Every pin and the version agree. A native built from it passes signer contentauth#94's byte-string probe, and your paired run passed for this exact pair on Linux and Windows. This is safe for 1.0.10. I have three P3s, all about docs and tests.

What native 9842d98 contains:

  • 11f1212..9842d98 holds only these commits:
  • Both merges are clean.
    • cedd271 is the plain merge of 3699aa0 and 11f1212. Its tree is 0b8f427, the tree contentauth#34's description names.
    • 9842d98 is the plain merge of cedd271 and 1a65d3a. Its tree is identical to 1a65d3a, the head I approved on contentauth#33.
  • The diff from 11f1212 touches nine files:
    • contentauth#34's three: deny.toml, the deadline step in tier-1a.yml, and docs/security/native-1.0.10-audit-exceptions.md;
    • contentauth#33's six: CHANGELOG.md, docs/usage.md, sdk/src/assertions/mod.rs, soft_binding.rs, builder.rs and sdk/tests/v2_api_integration.rs.
  • Cargo.lock is byte-identical (SHA-256 10fcb5c1…). So no dependency changed, and contentauth#34's exception covers the graph it assessed.
  • Review:
    • I approved contentauth#31 at 11f1212 and contentauth#33 at 1a65d3a, which are the merged heads.
    • contentauth#34 has no review on GitHub. It changes no library code: three deny.toml ignores with reasons, a step that fails the audit job from 2026-12-04, and a document. It is the crypto-bigint exception I accepted on 5 November. I read all three files for this review.
    • So nothing unreviewed reaches the library.
  • The native's CI at 9842d98 is green, including the license and vulnerability audit.

P3:

  1. The status lines are out of date.
    • Where:
      • "blocked on native review/merge": README.md:131, docs/release-notes.md:7-8, docs/usage.md:33, docs/trusted-vsi-python-contract.md:21;
      • "does not manually build native code or dispatch qualification": README.md:164-166, docs/release-notes.md:25-26, docs/trusted-vsi-python-contract.md:339-341.
    • Scenario:
      • contentauth#31, contentauth#33 and contentauth#34 are merged, and so is #11, the draft PR these lines mean.
      • This exact pair passed the paired job in a manual dispatch, run 42782411039. On the pull-request run, the paired job was skipped again, as on #11.
    • Fix: say the native is merged. Name run 42782411039 as the paired run for a50223f + 9842d98. Say what remains: the non-publishing release run on the branch tip after merge, then the tag. If this merges without it, please record it in an issue so it isn't lost.
  2. Nothing in this repository checks the soft-binding change the release text announces.
    • Where: scripts/castlabs_release.py:49-50 (RELEASE_BODY); tests/.
    • Scenario:
      • No test in tests/ signs or reads a soft binding.
      • Your paired run gives the same counts on Linux and Windows as the earlier receipt (run 41531470285): 288 focused, 933 non-threaded, 54 threaded, and 288 for the installed wheel.
      • I ran this head's focused and non-threaded tests against a native built from 11f1212, which has no contentauth#33. They pass as well: 288 focused and 933 non-threaded, the same tests with the same outcomes as on the 9842d98 native.
    • Impact: the wheel's own qualification would pass a native without contentauth#33. Only signer contentauth#94 catches it, through its installed-native test and its runtime check, and only after the signer repins.
    • Fix: add one test to the qualification set. It signs a c2pa.soft-binding whose value is [0, 128, 255] and requires the stored value to be the byte string 00 80 ff. Signer contentauth#94's check does exactly this, so it can be copied.
  3. The audit sentence still has no advisory IDs (carried over from my #11 review, P3 2).
    • Where: RELEASE_BODY (scripts/castlabs_release.py:54-55), README.md:123-124, docs/usage.md:35-36, docs/release-notes.md:20-21, docs/trusted-vsi-python-contract.md:18-19.
    • Scenario: they all say "crypto-bigint 0.5.5 remains unfixed and the existing RSA cargo-deny ignore remains". Since contentauth#34, the native has a written record for both, with the IDs and the review date.
    • Fix: in RELEASE_BODY, name RUSTSEC-2026-0387 (accepted until review on 2026-12-04) and RUSTSEC-2023-0071, and say both are in the bundled native library. Have the four docs link to c2pa-rs docs/security/native-1.0.10-audit-exceptions.md instead of repeating the sentence.

Release: this is the 1.0.10 native agreed for the byte-value change. After it merges, the steps are:

  • the non-publishing release run on the branch tip, then the castlabs-v0.37.13+signer.1.0.10 tag;
  • then signer contentauth#94 moves its pin to this wheel, together with the complete-asset exact-version check;
  • then CLI contentauth#44 and demo contentauth#78 repin.

No 1.0.10 tag or release exists yet (the latest is castlabs-v0.37.13+signer.1.0.9). So reusing the version for the new native relabels nothing.

What I checked:

  • The diff: 11 files, one commit on the current base 2c35184. merge-tree is clean, git diff --check is clean, and no file has CR line endings.
  • Pins:
    • 9842d981997840ff8787005b8146a2f07a58431c is in all of these: the lock, both schemas, RUST_COMMIT, the three native checkouts in the release workflow, the paired workflow, the tooling test and the docs.
    • 11f1212 appears nowhere in the tree.
    • Version 0.37.13+signer.1.0.10 is unchanged and the same in pyproject.toml:7, src/c2pa/c2pa.py:14, the lock, the schemas and the workflows (tag filter, wheel and bundle names, expected version).
  • Release tooling:
    • validate-lock passes.
    • validate-sources for a tag event passes against a real checkout of 9842d98. That covers the commit, the Cargo.lock digest, the workspace version 0.92.0-dev and the Python version.
    • For a manual event it refuses, as designed, until this head is the branch tip.
    • The tooling and build tests pass: 68 at the base, 68 here.
  • Mutation: I put 11f1212 back into one place at a time:
    • each of the three release-workflow checkouts;
    • the paired workflow;
    • each schema, the lock and the constant.
    • Each mutant fails at least one tooling test.
  • Native build: c2pa-c-ffi from 9842d98, debug, --locked, Rust 1.96.0, --no-default-features with the lock's features (rust_native_crypto,http,add_thumbnails,file_io,unstable_live_video).
  • Native identified by behaviour. I signed with my own throwaway key and read the stored CBOR with my own JUMBF reader, using this PR's Python source:
    • 9842d98: [0,128,255] is stored as the byte string 00 80 ff. "00ff" stays text. "b64'AID/'" becomes bytes.
    • 11f1212: an integer array, text and text.
  • Signer contentauth#94's check (signer 0a7aad5, this PR's Python source, test-only shim for the complete-asset version check, loaded library checked in each run):
    • New native: test_installed_native_passes_the_byte_string_probe passes. With tests/test_soft_binding_native_guard.py, 6 passed.
    • 11f1212 native: that test fails with "the installed c2pa native would not write soft-binding values as CBOR byte strings", as it should. The other 5 pass.
    • Signer contentauth#94's soft-binding, session, parent, spec, complete-asset, VSI and trusted-VSI files on the new native: 1980 passed, 167 skipped. By node ID, that is identical to my run yesterday on the native built from contentauth#33's head.
  • This repository's suites, Python 3.12.3, in the paired workflow's environment, compared by node ID:
    • This head with the 9842d98 native: 288 focused, the ladder harness, 933 non-threaded (with the release smoke required) and 54 threaded, all passed.
    • The base 2c35184 with the 11f1212 native: the same counts. No test changes outcome.
  • CI: your dispatch, run 42782411039, ran the paired job for exactly a50223f and 9842d98 (the job log records both SHAs).
    • Linux and Windows: 288 focused, the ladder harness, 933 non-threaded, 54 threaded.
    • It also built the wheel and qualified the installed wheel: 288 passed.
    • On the pull-request runs, release tooling, format and version reading pass. The paired, wheel and unit jobs were skipped.
  • AL1 security architecture (signer contentauth#114): nothing here makes a statement in it wrong. Its component table describes signer 1.0.8 with c2pa-python 0.37.13+signer.1.0.8 / native 6021100. When the filing moves to 1.0.10, that row becomes 0.37.13+signer.1.0.10 / 9842d98.
  • Not run: the release-profile manylinux build; on my side, Windows and the wheel build with the installed-wheel check (your run covers them); Python 3.10, 3.11 and 3.13, and the publishing release run.

…ent status and advisory IDs

- Release smoke signs a soft binding with value [0, 128, 255] and requires the
  stored CBOR byte string h'0080ff' (castlabs/c2pa-rs contentauth#33); an older native
  stores the integer array and fails.
- Status text: native merged, paired run 42782411039, tag push creates the
  draft release.
- Audit sentence names RUSTSEC-2026-0387 (review 2026-12-04) and
  RUSTSEC-2023-0071 and links the native audit exceptions.
@mstattma

Copy link
Copy Markdown
Author

@BibinBaby444 Your three P3s are fixed in 0b32367:

  1. The status text now says the native is merged, cites paired run 42782411039, and says the tag push builds and tests the release and creates the draft.
  2. test_soft_binding_byte_array_is_stored_as_a_cbor_byte_string in tests/test_castlabs_release_smoke.py signs [0, 128, 255] and requires the stored 65 'value' 43 00 80 ff byte string, not the array. It runs in the paired job and in every installed-wheel job. On a local old native it sees the array form, so it discriminates.
  3. The release body and the four docs name RUSTSEC-2026-0387 (review 2026-12-04) and RUSTSEC-2023-0071, and the docs link the native audit exceptions.

Paired run for 0b32367 + 9842d98: https://github.com/castlabs/c2pa-python/actions/runs/42832524477. Linux and Windows pass (934 non-threaded = 933 + the new test). Merging per owner instruction; the release goes out from the tag.

@mstattma
mstattma merged commit 4565759 into feat/trusted-vsi-functional Nov 10, 2026
26 checks passed
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.

2 participants