Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade to Wasmer 5 and refactor Gatekeeper #2374

Merged
merged 10 commits into from
Feb 10, 2025
Merged

Upgrade to Wasmer 5 and refactor Gatekeeper #2374

merged 10 commits into from
Feb 10, 2025

Conversation

chipshort
Copy link
Collaborator

closes #2286

While updating wasmer, I decided to change the Gatekeeper to handle whole proposals of operators without having to list all their instructions. Please review that change carefully. The Gatekeeper is somewhat security relevant.

Unfortunately this new wasmer version requires us to bump the CI's min Rust version to 1.81, which is uncomfortably close to 1.82 (which currently doesn't work for compiling contracts unless we merge #2346 or Wasmer implements it)

I also had to fix some stuff in the CI because of the wasmer bump.

Copy link
Member

@aumetra aumetra left a comment

Choose a reason for hiding this comment

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

Uhh, I mean it looks fine from my perspective. I really like how Bytecode Alliance refactored the wasmparser.

Metering was fixed, right?

Apart from that I don't really have any questions really. So here's the approval:

Copy link
Member

@webmaster128 webmaster128 left a comment

Choose a reason for hiding this comment

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

🐎

@webmaster128 webmaster128 changed the title Update wasmer and refactor Gatekeeper Upgrade to Wasmer 5 and refactor Gatekeeper Feb 10, 2025
@chipshort chipshort merged commit f93e5aa into main Feb 10, 2025
39 checks passed
@chipshort chipshort deleted the co/wasmer-update branch February 10, 2025 14:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Use wasmer::middlewares::metering
3 participants