Skip to content
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

nit: No-Auth Options #33

Open
carlaKC opened this issue Aug 17, 2023 · 5 comments
Open

nit: No-Auth Options #33

carlaKC opened this issue Aug 17, 2023 · 5 comments
Assignees
Labels
Low Priority nit Small nitpicks that are picked up in testing.
Milestone

Comments

@carlaKC
Copy link
Contributor

carlaKC commented Aug 17, 2023

As we're a testing tool, it's possible that people will be running their node without auth (eg for LND - no macaroons).

We should be able to configure and handle this case as it's pretty common in testing.

@carlaKC carlaKC added this to the MVP milestone Aug 17, 2023
@carlaKC carlaKC added nit Small nitpicks that are picked up in testing. Low Priority labels Aug 17, 2023
@carlaKC carlaKC removed this from the MVP milestone Aug 18, 2023
@carlaKC carlaKC added this to the V3 milestone Mar 27, 2024
@bjohnson5
Copy link
Contributor

@carlaKC I do not have the option to assign this to myself, but I will start looking into how to implement this. This will be helpful for running a big network with lots of nodes that do not need authentication.

@bjohnson5
Copy link
Contributor

@carlaKC It looks like the limiting factor here (at least for lnd) is that the tonic_lnd crate does not support creating an RPC client without a macaroon file. The tonic_lnd::connect function requires a valid macaroon path. Any thoughts on how to get around that other than just opening an issue on tonic_lnd?

@carlaKC
Copy link
Contributor Author

carlaKC commented Apr 22, 2024

@carlaKC It looks like the limiting factor here (at least for lnd) is that the tonic_lnd crate does not support creating an RPC client without a macaroon file.

Thought this might be the case :( I think we can go ahead an open an issue and perhaps @okjodom can help us out on the fedimint/tonic side 🙏

@bjohnson5
Copy link
Contributor

@carlaKC @okjodom Ok sounds good, I submitted an issue (fedimint/tonic_lnd#21). In the meantime, a workaround is that you can create one macaroon file and use it as a default for all RPC calls. This will satisfy tonic_lnd and if the lnd nodes are using the no-macaroons option they will not check the macaroon anyway.

@carlaKC
Copy link
Contributor Author

carlaKC commented Apr 22, 2024

@carlaKC @okjodom Ok sounds good, I submitted an issue (fedimint/tonic_lnd#21). In the meantime, a workaround is that you can create one macaroon file and use it as a default for all RPC calls. This will satisfy tonic_lnd and if the lnd nodes are using the no-macaroons option they will not check the macaroon anyway.

Sounds reasonable to me! Perhaps we can set it up so that we switch in that fake macaroon file if the sim file doesn't specify macaroon so it happens seamlessly(ish) for the end user? Would also be good to nicely catch the error where somebody forgets a macaroon but it's actually required so we can provide a reasonable error message back.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Low Priority nit Small nitpicks that are picked up in testing.
Projects
None yet
Development

No branches or pull requests

2 participants