-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
gRPC Operator: Macaroon Authentication #22
Comments
I'm more oriented in going with simple perRPC authentication like API KEY |
A requirement we had is that we should not have a single "master" API key for doing everything, from critical stuff like managing wallet funds or withdrawing from market to basic stuff like updating the market price or getting fee report. |
We decided to go with macaroons, since it seems to fit our requirements:
The flow is the following:
|
although we plan to add an encrypted transport on the trader interface (BOTD#2), we need to secure the operator interface, so remote CLIs or GUIs could be built.
We could implement some gRPC interceptors with very basic user and password (or API Key bearer token) or more advanced solutions like macaroons.
https://pkg.go.dev/github.com/lightningnetwork/lnd/macaroons
https://github.com/lightningnetwork/lnd/blob/master/macaroons/README.md
A bit of history on this choice by lnd to use macaroons lightningnetwork/lnd#20
The text was updated successfully, but these errors were encountered: