Skip to content
This repository has been archived by the owner on Jun 11, 2024. It is now read-only.

Add blacklist setting to the RPC config #39

Open
shuse2 opened this issue Jan 11, 2023 · 0 comments
Open

Add blacklist setting to the RPC config #39

shuse2 opened this issue Jan 11, 2023 · 0 comments

Comments

@shuse2
Copy link
Collaborator

shuse2 commented Jan 11, 2023

Description

Add

disabledMethods: ['namespace', 'namespace_method']

to the RPC config, and RPC server should reject if the requested method is in the blacklist or not.
if disabledMethods specifies namespace, it should reject all request to the namespace, and if config specifies namespace_method, it should only reject only that method.
Partial match should not be allowed.

Motivation

Some RPC endpoints are specifically used for validator nodes, and some endpoint should not exposed on the RPC node

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant