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

🔧 Restrict amount of WASI imports #137

Open
FranklinWaller opened this issue Mar 4, 2025 · 0 comments
Open

🔧 Restrict amount of WASI imports #137

FranklinWaller opened this issue Mar 4, 2025 · 0 comments
Labels
type: chore 🔧 No production code change

Comments

@FranklinWaller
Copy link
Member

🔧 Chore

In vm-imports we are allowing all WASI imports to function. However since the overlay node is now also in TS we need to restrict the amount the overlay node can do.

In vm-imports.ts:

getImports(wasiImports: object): WebAssembly.Imports {
		return {
			// TODO: Data requests should not have this many imports
			// we should restrict it to only a few
			...wasiImports,
@FranklinWaller FranklinWaller added the type: chore 🔧 No production code change label Mar 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: chore 🔧 No production code change
Projects
None yet
Development

No branches or pull requests

1 participant