Skip to content

Remove deprecated Python SDK compatibility shims - #8939

Open
Amaury Chamayou (achamayou) wants to merge 1 commit into
microsoft:mainfrom
achamayou:achamayou-issue-8861-remove-deprecated-python-sdk-compatibili-ec494c
Open

Amaury Chamayou (achamayou) wants to merge 1 commit into
microsoft:mainfrom
achamayou:achamayou-issue-8861-remove-deprecated-python-sdk-compatibili-ec494c

Conversation

@achamayou

Copy link
Copy Markdown
Member

Removes the deprecated Python SDK compatibility shims ahead of the 8.0 major release so callers cannot accidentally rely on legacy entry points that bypass stricter receipt verification or obscure where signature APIs live.

Specifically:

  • Drops ccf.cose.verify_receipt in favor of ccf.receipt.verify_cose.
  • Drops _DEPRECATED_SIGNATURE_REEXPORTS and __getattr__ from ccf.ledger in favor of direct imports from ccf.signatures.
  • Updates API and migration documentation and adds a .changes entry for 8.0.

Safety and compatibility

Breaking Python SDK API removal planned for 8.0: callers using ccf.cose.verify_receipt must migrate to ccf.receipt.verify_cose, and callers importing signature constants, exceptions, or spki_from_cert from ccf.ledger must import them from ccf.signatures.

Closes #8861

Remove the deprecated ccf.cose.verify_receipt function and the deprecated
ccf.ledger signature re-export shim ahead of 8.0, update documentation and
migration notes, and add unit tests verifying their removal.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 1c45d2f3daad42b4a44ec57e571de96c
@achamayou
Amaury Chamayou (achamayou) requested a review from a team as a code owner December 4, 2026 08:21
Copilot AI balanced review requested due to automatic review settings December 4, 2026 08:21

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 Approval recommended

No active review issues block the removal of the deprecated Python SDK compatibility APIs.

No open issues 🎉

What changed in this PR

Removes deprecated Python SDK compatibility APIs for CCF 8.0, directing callers to stricter receipt verification and the dedicated signatures module.

Changes:

  • Removes ccf.cose.verify_receipt and deprecated ccf.ledger signature re-exports.
  • Adds regression tests confirming the removed APIs are unavailable.
  • Updates API documentation, migration guidance, and release notes.

Custom instructions used

Repository and change-description guidance supplied in the review context; no additional instruction files loaded.

File Description
python/​tests/​test_receipt.py Checks that the legacy receipt verifier is absent.
python/​tests/​test_ledger.py Checks that deprecated signature re-exports are absent.
python/​src/​ccf/​ledger.py Removes the signature compatibility shim.
python/​src/​ccf/​cose.py Removes the deprecated receipt verifier.
doc/​use_apps/​verify_tx.rst Removes obsolete legacy-verifier guidance.
doc/​releases/​migration_7_x_to_8_x.rst Documents removed APIs and replacements.
doc/​audit/​python_library.rst Removes the deleted API from generated documentation.
.changes/​remove-python-compatibility-shims.removed.md Records removals and links migration guidance.

Review effort: Balanced

This branch has not been deployed

No deployments
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.

Remove deprecated Python SDK compatibility shims in 8.0

2 participants