swapper-org / NodeChain

Nodechain is a service that allows you to create nodes on a blockchain and connect to them natively through APIs. The goal is to allow the user to build their own nodes natively without having to rely on external services.
MIT License
7 stars 5 forks source link

Create authorization for admin endpoints #97

Closed bridgedragon closed 2 years ago

bridgedragon commented 2 years ago

Feature Request

Feature Description

A new Authorization header should be created (https://developer.mozilla.org/es/docs/Web/HTTP/Headers/Authorization) in the connector. Now all admin endpoints are exposed, and it can't be filtered by nginx, as docker bypasses the localhost identification.

Connector will create a master authorization key that will be displayed in logs. New endpoints will be created for authorization keys to be added, and revoked.

Use Case(s)

Protecting administrator endpoints.