Skip to content

lnrpc: allow invoice.macaroon to read onchain transactions#2327

Merged
wpaulino merged 1 commit intolightningnetwork:masterfrom
ottosuess:invoice_macaroon_permissions
Oct 24, 2019
Merged

lnrpc: allow invoice.macaroon to read onchain transactions#2327
wpaulino merged 1 commit intolightningnetwork:masterfrom
ottosuess:invoice_macaroon_permissions

Conversation

@ottosuess
Copy link
Copy Markdown
Contributor

This should fix #2236

The invoice macaroon has permissions to create off-chain & on-chain requests but it can only check for off-chain payments using the LookupInvoice, ListInvoices & SubscribeInvoices calls.

This pr enables the SubscribeTransactions and GetTransactions calls for the invoice.macaroon

rpcserver.go Outdated
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps this should be added as an additional permission? Nothing uses the address permission at the moment, but there could a RPC added in the future that does.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@wpaulino
Copy link
Copy Markdown
Contributor

wpaulino commented Feb 2, 2019

LGTM after squashing the commits.

@ottosuess
Copy link
Copy Markdown
Contributor Author

do I have to squash or are you squashing on merge?

@ottosuess ottosuess force-pushed the invoice_macaroon_permissions branch from e4fc96a to c7c85ff Compare February 7, 2019 17:18
@ottosuess
Copy link
Copy Markdown
Contributor Author

squashed 🔥

@joostjager joostjager added this to the 0.9.0 milestone Oct 23, 2019
Copy link
Copy Markdown
Collaborator

@guggero guggero left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 💯

@ottosuess ottosuess requested a review from wpaulino October 24, 2019 08:03
@wpaulino wpaulino removed their request for review October 24, 2019 13:48
@wpaulino wpaulino merged commit a469d5d into lightningnetwork:master Oct 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

invoice macaroon - missing permissions

4 participants