snarkOS icon indicating copy to clipboard operation
snarkOS copied to clipboard

Add support for REST authorization checks

Open raychu86 opened this issue 3 years ago • 1 comments

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

raychu86 avatar Oct 20 '22 02:10 raychu86

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.

howardwu avatar Oct 20 '22 03:10 howardwu

Closed in favor of #2020

raychu86 avatar Nov 08 '22 02:11 raychu86