ethersphere/bee

Remove Restrictions from Bee API Endpoints

NoahMaizels opened this issue · 0 comments

Summary

For the Bee API, change it so that all endpoints are accessible by default, and only become restricted once the --restricted option is set to true.

Motivation

There are historical reasons the endpoints are restricted by default, but after doing some investigation it seems that the reasons are not known or documented and it is a potential point of confusion for newcomers. The authentication feature is not commonly used and is marked as experimental, so its usage should not be required. Currently there is no way to use the Bee API for all typical node functions without enabling authentication, so it requires of both the Bee APIs and Debug API for normal operations.

Moreover, the --restricted when turned off should un-restrict the restricted endpoints, as would be the intuitive function of this option.