Skip to content

Don't require all macaroons to use loopd #299

Closed

Description

@gkrizek

Currently users are required to specify a directory for LND's macaroons with --lnd.macaroondir. This can be problematic or annoying if you aren't running loopd on the same server that's running LND. I would suggest the ability to use a single macaroon (like admin.macaroon) to make it easy to use. Eventually once the macaroon baking changes land in LND we could even bake a macaroon specific for loop.

Activity

  1. Kixunil commented on Oct 2, 2020

    @Kixunil
    Contributor

    It's really strange why admin.macaroon is not sufficient. Baking specific macaroons is already possible (I did it for BTCPayServer for instance).

  2. Kixunil commented on Oct 26, 2020

    @Kixunil
    Contributor

    I just figured out I'm blocked on this since I separated the macaroons into different directories to improve security. Any chance to get this working?

  3. guggero commented on Oct 26, 2020

    @guggero
    Contributor

    The admin macaroon would be more than enough. But it's a feature (or bug, depending on the context) of the lndclient library that it wants to make sure you have all required subservers activated in lnd and the macaroons baked for them.

    This certainly isn't optimal and I started working on a fix that allows you to specify a single, custom macaroon that contains all required permissions. That can be the admin.macaroon or one baked specifically for loop.

  4. gkrizek commented on Oct 26, 2020

    @gkrizek
    Author

    @guggero awesome! I like that idea. This problem exists in Faraday and therefore LiT too. I'm guessing fixing it for one fixes them all?

  5. guggero commented on Oct 26, 2020

    @guggero
    Contributor

    Yes, it will be fixed in all projects that use lndclient, though it will need a separate PR in each of them to enable the feature.

  6. Kixunil commented on Jan 4, 2021

    @Kixunil
    Contributor

    Since the changes needed were merged into the library, this should now be easy, right? If so and you don't have the time to do it soon, I could take a look at it. (Disclaimer: I'm not a Go developer.)

  7. guggero commented on Jan 4, 2021

    @guggero
    Contributor

    I'll see if I can get to creating a PR for this in the next few days. If there isn't a PR up until end of week, feel free to try yourself.

  8. Kixunil commented on Jan 4, 2021

    @Kixunil
    Contributor

    Thanks!

  9. added a commit that references this issue on Feb 5, 2021
    2a089d1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions