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

RPC method filtering #5147

Open
3 tasks
LesnyRumcajs opened this issue Jan 16, 2025 · 0 comments
Open
3 tasks

RPC method filtering #5147

LesnyRumcajs opened this issue Jan 16, 2025 · 0 comments
Labels
Type: Task Discrete task to implement

Comments

@LesnyRumcajs
Copy link
Member

LesnyRumcajs commented Jan 16, 2025

Summary

As an intermediary measure to run Forest without an external proxy, the daemon should implement a simple method white/blacklisting, along the lines of what is implemented in the api compare.

/// A filter list that allows or rejects RPC methods based on their name.
#[derive(Default)]
struct FilterList {
allow: Vec<String>,
reject: Vec<String>,
}

It should allow for basic method enabling/disabling. For example, running forest with --rpc-method-filter list.txt which contains !Filecoin.ChainExport should disallow calling such method.

A sample list should be provided that disables such methods.

Completion Criteria

  • A mechanism to enable/disable methods in Forest daemon is implemented,
  • Unit and integration tests are in place,
  • User-facing documentation (for the flag, list format) along with example usage is present.

Additional Links & Resources

@LesnyRumcajs LesnyRumcajs added the Type: Task Discrete task to implement label Jan 16, 2025
@LesnyRumcajs LesnyRumcajs moved this from New to Ready in Forest Backlog 🌲 Jan 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Task Discrete task to implement
Projects
Status: Ready
Development

No branches or pull requests

1 participant