snarkOS
snarkOS copied to clipboard
Add support for REST authorization checks
Motivation
This PR adds support for header authorization checks for record related REST API endpoints.
The username and password for "Basic Authorization" headers can be specified using the --username and --password cli flags. Additionally, a custom port can be selected for the REST server using --rest_port.
This uses the latest rev from snarkVM PR: https://github.com/AleoHQ/snarkVM/pull/1191
Noting that this approach while straightforward is insecure. This is sufficient for a temporary fix. After snarkOS resets, lets update this to a correct design.
Closed in favor of #2020