docs: secure canister upgrade guide#57
Conversation
Covers pre/post-upgrade hooks, stable memory patterns (Motoko persistent actor and Rust stable structures), Candid interface compatibility rules, snapshot-based rollback workflow, schema evolution, local testing procedures, and controller safety. Written as a security checklist with actionable patterns for production upgrades.
Review: Secure UpgradesMust fix
Suggestions
Verified
|
…low and schema evolution encoding
|
Feedback addressed:
|
Summary
persistent actorvs Rustic-stable-structureswith concrete code examplespre_upgradeserialization (instruction-limit trap risk) and theskip_pre_upgradeemergency pathserde(default)+Bound::UnboundedSync recommendation
informed by portal
building-apps/canister-management/upgrade.mdx,.sources/cdk-rs, and icskillscanister-security