-
Notifications
You must be signed in to change notification settings - Fork 217
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
[Merged by Bors] - node, api: split out private api and rework api configuration #4213
Conversation
Codecov Report
@@ Coverage Diff @@
## develop #4213 +/- ##
=======================================
Coverage 76.3% 76.3%
=======================================
Files 240 240
Lines 25086 25078 -8
=======================================
- Hits 19151 19145 -6
+ Misses 4728 4726 -2
Partials 1207 1207
... and 17 files with indirect coverage changes Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
One important moment, Instead of doing some complicated separation of endpoints within the Service, I propose to move them to another Service (e.g. |
sure, if thats what you prefer i will move them |
@brusherru actually does it makes sense if i remove Shutdown/StartSync completely, and move UpdatePoetServers to Smeshing api. and move Node to the list of public services? |
@dshulyak yes, sounds good to me! And much better than one more service! :) |
@brusherru i moved stuff around the way we discussedd |
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.
please update the PR description. thanks
SmesherStreamInterval: defaultSmesherStreamInterval, | ||
PublicServices: []Service{Debug, Gateway, GlobalState, Mesh, Transaction, Node}, | ||
PublicListener: "0.0.0.0:9092", | ||
PrivateServices: []Service{Smesher}, |
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.
it almost feels like we should call this Admin
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.
LGTM
bors merge |
closes: #3883 needs: spacemeshos/api#226 ``` --grpc-json-listener string Socket for the grpc gateway for the list of services in grpc-public-services. If left empty - grpc gateway won't be enabled. --grpc-private-listener string Socket for the list of services specified in grpc-private-services. (default "127.0.0.1:9093") --grpc-private-services strings List of services that must be kept private or exposed only in secure environments. (default [smesher]) --grpc-public-listener string Socket for the list of services specified in grpc-public-services. (default "0.0.0.0:9092") --grpc-public-services strings List of services that are safe to open for the network. (default [debug,gateway,global,mesh,transaction,node]) --grpc-recv-msg-size int GRPC api recv message size (default 10485760) --grpc-send-msg-size int GRPC api send message size (default 10485760) ``` we support two different sockets where services can be enabled. public (default to 0.0.0.0:9092) and private (defaults to 127.0.0.1:9093). by default we run smesher on private, and everything else on public. this can be changed by option above.
bors cancel |
Canceled. |
bors merge |
closes: #3883 needs: spacemeshos/api#226 ``` --grpc-json-listener string Socket for the grpc gateway for the list of services in grpc-public-services. If left empty - grpc gateway won't be enabled. --grpc-private-listener string Socket for the list of services specified in grpc-private-services. (default "127.0.0.1:9093") --grpc-private-services strings List of services that must be kept private or exposed only in secure environments. (default [smesher]) --grpc-public-listener string Socket for the list of services specified in grpc-public-services. (default "0.0.0.0:9092") --grpc-public-services strings List of services that are safe to open for the network. (default [debug,gateway,global,mesh,transaction,node]) --grpc-recv-msg-size int GRPC api recv message size (default 10485760) --grpc-send-msg-size int GRPC api send message size (default 10485760) ``` we support two different sockets where services can be enabled. public (default to 0.0.0.0:9092) and private (defaults to 127.0.0.1:9093). by default we run smesher on private, and everything else on public. this can be changed by option above.
Build failed:
|
bors merge |
closes: #3883 needs: spacemeshos/api#226 ``` --grpc-json-listener string Socket for the grpc gateway for the list of services in grpc-public-services. If left empty - grpc gateway won't be enabled. --grpc-private-listener string Socket for the list of services specified in grpc-private-services. (default "127.0.0.1:9093") --grpc-private-services strings List of services that must be kept private or exposed only in secure environments. (default [smesher]) --grpc-public-listener string Socket for the list of services specified in grpc-public-services. (default "0.0.0.0:9092") --grpc-public-services strings List of services that are safe to open for the network. (default [debug,gateway,global,mesh,transaction,node]) --grpc-recv-msg-size int GRPC api recv message size (default 10485760) --grpc-send-msg-size int GRPC api send message size (default 10485760) ``` we support two different sockets where services can be enabled. public (default to 0.0.0.0:9092) and private (defaults to 127.0.0.1:9093). by default we run smesher on private, and everything else on public. this can be changed by option above.
Build failed: |
bors merge |
closes: #3883 needs: spacemeshos/api#226 ``` --grpc-json-listener string Socket for the grpc gateway for the list of services in grpc-public-services. If left empty - grpc gateway won't be enabled. --grpc-private-listener string Socket for the list of services specified in grpc-private-services. (default "127.0.0.1:9093") --grpc-private-services strings List of services that must be kept private or exposed only in secure environments. (default [smesher]) --grpc-public-listener string Socket for the list of services specified in grpc-public-services. (default "0.0.0.0:9092") --grpc-public-services strings List of services that are safe to open for the network. (default [debug,gateway,global,mesh,transaction,node]) --grpc-recv-msg-size int GRPC api recv message size (default 10485760) --grpc-send-msg-size int GRPC api send message size (default 10485760) ``` we support two different sockets where services can be enabled. public (default to 0.0.0.0:9092) and private (defaults to 127.0.0.1:9093). by default we run smesher on private, and everything else on public. this can be changed by option above.
Build failed: |
bors merge |
closes: #3883 needs: spacemeshos/api#226 ``` --grpc-json-listener string Socket for the grpc gateway for the list of services in grpc-public-services. If left empty - grpc gateway won't be enabled. --grpc-private-listener string Socket for the list of services specified in grpc-private-services. (default "127.0.0.1:9093") --grpc-private-services strings List of services that must be kept private or exposed only in secure environments. (default [smesher]) --grpc-public-listener string Socket for the list of services specified in grpc-public-services. (default "0.0.0.0:9092") --grpc-public-services strings List of services that are safe to open for the network. (default [debug,gateway,global,mesh,transaction,node]) --grpc-recv-msg-size int GRPC api recv message size (default 10485760) --grpc-send-msg-size int GRPC api send message size (default 10485760) ``` we support two different sockets where services can be enabled. public (default to 0.0.0.0:9092) and private (defaults to 127.0.0.1:9093). by default we run smesher on private, and everything else on public. this can be changed by option above.
Build failed: |
bors merge |
closes: #3883 needs: spacemeshos/api#226 ``` --grpc-json-listener string Socket for the grpc gateway for the list of services in grpc-public-services. If left empty - grpc gateway won't be enabled. --grpc-private-listener string Socket for the list of services specified in grpc-private-services. (default "127.0.0.1:9093") --grpc-private-services strings List of services that must be kept private or exposed only in secure environments. (default [smesher]) --grpc-public-listener string Socket for the list of services specified in grpc-public-services. (default "0.0.0.0:9092") --grpc-public-services strings List of services that are safe to open for the network. (default [debug,gateway,global,mesh,transaction,node]) --grpc-recv-msg-size int GRPC api recv message size (default 10485760) --grpc-send-msg-size int GRPC api send message size (default 10485760) ``` we support two different sockets where services can be enabled. public (default to 0.0.0.0:9092) and private (defaults to 127.0.0.1:9093). by default we run smesher on private, and everything else on public. this can be changed by option above.
Pull request successfully merged into develop. Build succeeded:
|
closes: #3883
needs: spacemeshos/api#226
we support two different sockets where services can be enabled. public (default to 0.0.0.0:9092) and private (defaults to 127.0.0.1:9093). by default we run smesher on private, and everything else on public. this can be changed by option above.
🤖 Generated by Copilot at 2abafcf
This pull request refactors the API configuration and implementation to support multiple GRPC servers and services, and adds a new feature to allow smeshers to update and switch between PoET servers. It also updates the tests, logging, and presets to use the new configuration and services. It modifies the following files:
api/config/config.go
,api/grpcserver/grpc.go
,api/grpcserver/grpcserver_test.go
,api/grpcserver/http_server.go
,api/grpcserver/node_service.go
,api/grpcserver/smesher_service.go
,api/grpcserver/transaction_service_test.go
,cmd/base.go
,cmd/node/node_test.go
,cmd/node/node.go
,activation/interface.go
,activation/mocks.go
,api/grpcserver/smesher_service_test.go
,api/node.go
,cmd/bootstrapper/generator_test.go
,cmd/root.go
,config/presets/fastnet.go
,config/presets/testnet.go
,go.mod
, andsystest/parameters/fastnet/smesher.json
.