Comments (10)
Hi,
what's the state of this, please? I was thinking of adding this myself.
Thanks
Steve
from grpc-spring-boot-starter.
You are right, it's missing. Will add this tomorrow
from grpc-spring-boot-starter.
Hi @xaqq
Unfortunately, the grpc
doens't have generic API for all providers to specify the address. It means I will need to expose properties per provider for autoconfiguration.. it will take a while, sorry.
from grpc-spring-boot-starter.
Hello @jvmlet
Thank you for confirming my issue.
I will try and see if I manage to find an "in-app" workaround until a proper solution is available.
from grpc-spring-boot-starter.
So I went ahead and forked the project to try to implement (partially) this feature.
You can see the commit here https://github.com/xaqq/grpc-spring-boot-starter/tree/netty-bind-addr
It's limited and apply to Netty only, but this seems to work. I'm not too sure about the order in which the bean are evaluated and if maybe the enabled
property, when set to true
, could conflict with the nettyBindAddress
property.
I noticed the ServerBuilder.forPort()
method but there is no forAddress()
and I don't know what the ServerProvider is. This is why i've scoped my changed to netty only.
from grpc-spring-boot-starter.
Your implementation looks OK, I'll add this functionality to be customizable by all users (OKHttp,Netty and inprocess)
from grpc-spring-boot-starter.
Grpc has its own way to pick up the server builder implementation by using SPI. Need to think how NOT to break this functionality when implementing this feature
from grpc-spring-boot-starter.
Hey @jvmlet , Could you please let me know if you have any further updates on it as I am looking for binding my grpc server services on loopback address (127.0.0.1) and I do not see any way to achieve it.
Thanks.
from grpc-spring-boot-starter.
I'm collecting feature requests for the upcoming versions. This one will be in the list.
from grpc-spring-boot-starter.
It's better later than never ;-)
from grpc-spring-boot-starter.
Related Issues (20)
- Upgrade to grpc 1.57.0
- 5.1.0 changes status exception behaviour HOT 6
- Spring Boot 3 and gRPC HOT 1
- 5.0.0 to 5.1.4 changes status exception behaviour HOT 13
- Upgrade grpc to 1.58
- spring cloud config problem HOT 3
- Does it support mTLS while registering services to Consul ? HOT 1
- Buggy interceptors @Order annotation processing HOT 5
- Spring Security Keycloak integration HOT 5
- Order annotation for @GRpcGlobalInterceptor not working correctly when using 'org.springframework.boot.autoconfigure.AutoConfiguration.imports'
- `SecurityInterceptor` extends a deprecated interface (6.1.4) HOT 3
- actuator/health/grpc endpoint continue reporting grpc services as SERVING even if grpc server has been stopped HOT 1
- Stream closed before write could take place HOT 1
- Using custom implementation for auth token ,How to leverage security context holder to get authentication if token is not changed for subsequent request HOT 1
- Updating spring-boot to 3.2.0 breaks with "An AuthenticationManager is required" HOT 9
- Request level bean creation
- grpc default executor not overriding in server builder
- Security API enhancements #2
- Update grpc dependencies from 1.58.0 to 1.62.* or later
- Update gRPC to 1.63 due to client retry fixed in this version of gRPC HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from grpc-spring-boot-starter.