bytecodealliance / bytecodealliance/cap-std

Change `Pool` to hold a callback instead of a set of grants?

Ouverte
#339 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
Langage dominant
Rust
Étoiles
821
Forks
57
Merge moyen
1 h 16 min
PR mergées (30 j)
4

Description

In https://github.com/bytecodealliance/wasmtime/pull/7662, there is discussion that a callback would be more useful than a simple set of allowed addresses. If that's true for Wasmtime, then it's true for cap-std in general, so we should consider migrating cap-std in that direction too.

The current code that maintains a list of allowed addresses could be factored out into a utility that users could use to implement the callback if they need that functionality.

Guide de contribution

Ouvrir le guide de contribution

Piste de recherche

Read the discussion in Wasmtime PR 7662, then inspect cap-std's current code that maintains the list of allowed addresses. Determine whether Pool should accept a callback and whether the existing address-list behavior should become a reusable utility; done requires a settled API direction and corresponding implementation scope.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Évaluation

Stack technique
rust
Domaine
security
Type d'issue
Refactorisation
Difficulté
5/5
Temps estimé
Plus d'une semaine
Activité
À l'abandon
Clarté
À clarifier
Accessibilité débutants
25/100

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.