-
Notifications
You must be signed in to change notification settings - Fork 45
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
feat: support gRPC over proxy #949
feat: support gRPC over proxy #949
Conversation
Added a new config option `AUTHORITY_OVERRIDE` which will allow users to override system generated `authority`. This will be useful when running gRPC sync service behind proxy e.g. envoy istio etc ``` $ grpcurl -vv -plaintext -format=json -authority flagd-sync.service 127.0.0.1:9211 list flagd.sync.v1.FlagSyncService flagd.sync.v1.FlagSyncService.FetchAllFlags flagd.sync.v1.FlagSyncService.GetMetadata flagd.sync.v1.FlagSyncService.SyncFlags ``` Signed-off-by: Pradeep <[email protected]>
Signed-off-by: Pradeep <[email protected]>
56a0ea1
to
375c205
Compare
Devils advocate: should this be something that the intervening proxy in question re-writes in the response? I would suspect there's configuration support for this kind of thing in the proxy in question. I'm not 100% convinced adding it to flagd is really the correct path. |
as per my initial investigation I didn't find a way around .. but if it's big concerns will explore more |
I think this is more of an infrastructural concern, and not something we want configured in the provider if possible. I would check if any of this doc can help you:
If you can configure this in your proxy it will reduce maintenance burden for the flagd-provider, but also I think it will be a more efficient solution for you since it will keep this configuration close to the proxy it's related to. If you can't get anywhere with this, please follow up here and we can merge this change. |
I completely agree with point and concerns raise, will try my best to convince our mesh team have global static mapping or some other way to map flagd path to sync service cluster. |
@beeme1mr and @toddbaert we manage to fix the mapping part of proxy config, so closing this PR :) thanks for all the help and support +100 |
Thank you @pradeepbbl ! Hopefully this PR and discussion will help people in the future with similar challenges! |
This PR
Added a new config option
AUTHORITY_OVERRIDE
which will allow users to override systemgenerated
authority
. This will be useful when running gRPC sync service behind proxy e.g. envoy, istio etcRelated Issues
N/A
Notes
grpcurl sample using envoy proxy
Flagd Provider Logs:
Follow-up Tasks
N/A
How to test
TBD