-
Notifications
You must be signed in to change notification settings - Fork 911
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
plugins/grpc: default value for grpc port #7479
plugins/grpc: default value for grpc port #7479
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ACK 9127f94
9127f94
to
c4915d3
Compare
The change in the behavior appears to cause the |
217a378
to
e4bce57
Compare
The test is starting two nodes and both are now trying to use the default port 9736 for the cln-grpc plugin which is causing one of them to crash |
ec5a53c
to
a2f3b0e
Compare
6285509
to
957a999
Compare
So, when people upgrade they will have a new random port open to the internet? I know @michael1011 wants this, but would it be sufficient to open a localhost-bound port by default in this case? |
7a64585
to
faa814e
Compare
@rustyrussell that's a very valid point. What about adding an option to configure the host on which the plugin will listen and defaulting that to Edit: I can't think of any other sensible option, so let's do that. The only concern is that it's a breaking change for all existing CLNs that have a gRPC port configured and expect the plugin to listen on |
374ab49
to
c6dc9a6
Compare
c6dc9a6
to
3f88c90
Compare
d0c0b7e
to
d5efb27
Compare
d5efb27
to
467fbaa
Compare
@jackstar12 Thanks for the PR. Just FYI, I reordered the commits to move 'set default grpc-host to localhost' before the tests. This ensures that ACK 467fbaa. |
Changelog-Changed: grpc now starts on port 9736 by default
A port should not be opened by default on 0.0.0.0, so change the default to localhost Changelog-Added: `grpc-host` option for grpc plugin
467fbaa
to
9765e5e
Compare
Only problem now is that this will break existing setups which set grpc-port and do an upgrade! Suggest that the default grpc-host be localhost IF the port is not specified, otherwise 0.0.0.0? |
Shouldn't we instead encourage existing users to explicitly configure their |
While the suggestion from @rustyrussell would maintain backward compatibility, it could become burdensome in the future and complicated to explain in the documentation. So, I think it's easier to simply mention the change in the release notes and have all gRPC users verify whether it affects their setup. |
The gRPC server will always start this way. Current port choice is arbitrary, open to suggestions.
closes: #7473