Skip to content

Enforce upgrade-safety gates and migration validation in the contract lifecycle #554

Description

@grantfox-oss

Harden contract upgrades against unsafe migration windows, invariant drift, and re-entry or repeated-init misuse in the upgrade path.

  • Affected files: app/contract/contracts/Folder/src/upgrade_test.rs, app/contract/contracts/Folder/src/guard_test.rs, app/contract/contracts/Folder/src/lib.rs, app/contract/contracts/Folder/src/storage.rs, app/contract/contracts/Folder/src/admin.rs, app/contract/contracts/Folder/src/metadata.rs, app/contract/UPGRADE_SAFETY_GATE_IMPLEMENTATION.md, app/contract/UPGRADE_SAFETY_GATE_TEST_GUIDE.md
  • Acceptance criteria:
    • Upgrade operations are blocked when gate checks fail, invariants are violated, or a migration window is unsafe.
    • Repeated or malicious initializer paths are prevented without breaking legitimate upgrade flows.
    • Team documentation and test coverage describe safe deployment and rollback expectations

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

GrantFox OSSIssue tracked in GrantFox OSSMaybe RewardedIssue may be eligible for a GrantFox rewardThird CampaignCampaign: Third CampaignbugSomething isn't workinggood first issueGood for newcomershelp wantedExtra attention is needed

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions