Skip to content
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: flagd-provider ssl, socket, deadline, env support #134

Merged
merged 1 commit into from
Nov 23, 2022

Conversation

toddbaert
Copy link
Member

@toddbaert toddbaert commented Nov 18, 2022

This PR adds to flagd-java:

  • env var support getting (config from standard env vars set by the operator)
  • ssl, cert support
  • unix socket support
  • gRPC deadlines

There's also some formatting / spacing changes to bring things in line with the Java SDK.

Closes: #129

EDIT: Interestingly there's a certificate validation issue with this version (the latest) of netty-handler. I'll see what I can do about this but it's not looking great.

https://security.snyk.io/vuln/SNYK-JAVA-IONETTY-1042268

I've added a comment about this to the readme. For our purposes, I think we can live with this vuln for now. The netty authors have addressed it in netty 5, but that's still alpha.

@toddbaert toddbaert force-pushed the feat/flagd-enhancements branch from 1762196 to 022d8c4 Compare November 19, 2022 16:29
final String host = "server.com";
final int port = 4321;

new EnvironmentVariables("FLAGD_HOST", host, "FLAGD_PORT", String.valueOf(port)).execute(() -> {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a pretty cool library for mocking env vars, might be interesting to you @justinabrahms

Copy link
Collaborator

@Kavindu-Dodan Kavindu-Dodan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@toddbaert toddbaert merged commit 34ac374 into main Nov 23, 2022
@github-actions github-actions bot mentioned this pull request Nov 23, 2022
@beeme1mr beeme1mr deleted the feat/flagd-enhancements branch January 3, 2023 20:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[flagd provider] align with configuration in JS and go version, add env support
4 participants