[feat] Java Core - add native Statsig forward proxy support#38
Open
[feat] Java Core - add native Statsig forward proxy support#38
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This updates Java Core so the existing
SpecAdapterConfigpath can be used for native forward proxy support with the gRPC websocket adapter.The main changes are:
with_grpcin the Java FFI build pathThis PR does not add a new forward-proxy-specific Java API. It keeps
SpecAdapterConfigandsetSpecAdapterConfigs(...)as the public surface.Changes
SpecAdapterType.DATA_STORESpecAdapterType.NETWORK_HTTPSpecAdapterType.NETWORK_GRPC_WEBSOCKETAuthenticationMode.NONEAuthenticationMode.TLSAuthenticationMode.MTLS"http"/"grpc"stringswith_grpcfeature forwarding instatsig-ffistatsig_ffiwithwith_grpcProxyConfigunchanged; this remains generic outbound HTTP proxy config onlyVerification
Successful testing completed locally:
./tore test java --no-docker./tore build java --os macos --arch arm64 --skip-docker-buildLocal forward proxy validation against a running proxy
http://127.0.0.1:50051https://127.0.0.1:50052https://127.0.0.1:50052For the local forward proxy runtime validation, Java Core successfully:
network_grpc_websocketconfigSpecReady=trueAdditional local validation:
openssl s_client