feat: allow composite queries to call the management canister query methods - #342
Open
mraszyk wants to merge 2 commits into
Open
feat: allow composite queries to call the management canister query methods#342mraszyk wants to merge 2 commits into
mraszyk wants to merge 2 commits into
Conversation
…ethods Reflect dfinity/ic#10987: composite query methods and their callbacks can call the management canister query methods canister_status, canister_metrics, fetch_canister_logs, and list_canisters. Such a call is not routed based on the method name and the argument: it is always executed against the state of the subnet hosting the calling canister and can thus only target canisters hosted by that subnet. The access control is the same as for the corresponding query call submitted by a user, with the calling canister as the caller. Calls to all other management canister methods are rejected.
|
🤖 Here's your preview: https://k7oic-piaaa-aaaam-ai7uq-cai.icp0.io |
mraszyk
marked this pull request as ready for review
August 12, 2026 13:35
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Reflect dfinity/ic#10987: composite query methods and their callbacks can call the management canister query methods
canister_status,canister_metrics,fetch_canister_logs, andlist_canisters.Such a call is not routed based on the method name and the argument: it is always executed against the state of the subnet hosting the calling canister and can thus only target canisters hosted by that subnet. The access control is the same as for the corresponding query call submitted by a user, with the calling canister as the caller. Calls to all other management canister methods are rejected.