Skip to content

Conversation

@ilbertt
Copy link
Member

@ilbertt ilbertt commented Nov 26, 2025

Description

Prepares the check_canister_ranges to support the certificate returned by the new versions of the call and read_state APIs.

This is basically a porting of https://github.com/dfinity/agent-rs/pull/672/files#diff-463e496396a1c352674f5d6dfe40ccb2527b1460c1e38662ecd3010743cda49cR977-R1000.

How Has This Been Tested?

Since we are not supporting the new API versions, all the certificate checks should fall into the lookupCanisterRangesFallback case, so all existing tests should still work.

Checklist:

  • My changes follow the guidelines in CONTRIBUTING.md.
  • The title of this PR complies with Conventional Commits.
  • I have edited the CHANGELOG accordingly.
  • I have made corresponding changes to the documentation.

@ilbertt ilbertt requested a review from a team as a code owner November 26, 2025 14:25
@github-actions
Copy link
Contributor

github-actions bot commented Nov 26, 2025

size-limit report 📦

Path Size
@icp-sdk/core 91 B (0%)
@icp-sdk/core/agent 50.63 KB (+0.65% 🔺)
@icp-sdk/core/candid 13.31 KB (0%)
@icp-sdk/core/identity 20.52 KB (0%)
@icp-sdk/core/identity/secp256k1 33.77 KB (0%)
@icp-sdk/core/principal 4.44 KB (0%)

@ilbertt ilbertt merged commit fb7e944 into main Dec 2, 2025
27 checks passed
@ilbertt ilbertt deleted the luca/new-certificates-ranges branch December 2, 2025 13:46
ilbertt added a commit that referenced this pull request Dec 2, 2025
# Description

Follow-up of #1221.
ilbertt added a commit that referenced this pull request Dec 2, 2025
# Description

Switches the agent to using `/api/v4` for update (call) requests. Should
validate certificates using #1221.

Blocked by #1227.

# How Has This Been Tested?

The mock replica and the url assertion tests have been updated to use
v4. I'll update the mock replica to return a v4 certificate in a
follow-up PR.
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.

3 participants