Skip to content

fix: run ingress filter in StateMachine tests - #1047

Merged
mraszyk merged 16 commits into
masterfrom
mraszyk/sm-ingress-filter
Aug 23, 2024
Merged

mraszyk merged 16 commits into
masterfrom
mraszyk/sm-ingress-filter

Conversation

@mraszyk

@mraszyk mraszyk commented Aug 21, 2024 •

Copy link
Copy Markdown
Contributor

This MR runs ingress filter in StateMachine tests to avoid critical errors of the form execution_environment_unfiltered_ingress.

The ingress filter performs a bunch of checks for every ingress message before this ingress message is accepted for execution. In particular, the checks include:

  • canister_status on the management canister can only be called by controllers (this does not include the canister itself requesting its own status via an ingress message as a canister would request its status via an inter-canister call in production); hence, the controllers of canisters with no controllers can only be retrieved via a canister_info call proxied through an intermediate canister;
  • ingress messages cannot request the canister_info and fetch_canister_logs endpoint;
  • ingress messages to empty/stopped canisters are rejected.

@github-actions github-actions Bot added the fix label Aug 21, 2024
Comment thread rs/execution_environment/tests/dts.rs Resolved
@mraszyk
mraszyk added this pull request to the merge queue Aug 23, 2024
Merged via the queue into master with commit 8d3fdc9 Aug 23, 2024
@mraszyk
mraszyk deleted the mraszyk/sm-ingress-filter branch August 23, 2024 20:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants