Skip to content

Conversation

@mraszyk
Copy link
Contributor

@mraszyk mraszyk commented Nov 25, 2025

This PR prevents replay attacks after canister migration by waiting at least 6 minutes: 5 minutes and 30 seconds (maximum ingress expiry enforced by ingress validator) and 30 seconds (to account for a clock drift between the two subnets).

@github-actions github-actions bot added the fix label Nov 25, 2025

for _ in 0..100 {
// advance time by a lot such that the task which waits 5m can succeed quickly.
// advance time by a lot such that the task which waits 5m and 30s can succeed quickly.
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
// advance time by a lot such that the task which waits 5m and 30s can succeed quickly.
// advance time by a lot such that the task which waits 6m can succeed quickly.

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant