-
Notifications
You must be signed in to change notification settings - Fork 51
feat(flagd): Add features to customize auth to Sync API server (authorityOverride and clientInterceptors) #1260
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
Conversation
Signed-off-by: Maks Osowski <[email protected]>
Relates to open-feature/flagd#1554 |
I think this is a good idea, but I believe it's been implemented slightly differently in JS: https://github.com/search?q=repo%3Aopen-feature%2Fjs-sdk-contrib%20authority&type=code This isn't yet an option specified in the flagd provider spec but it would be great if we could be consistent. Do you think we could match the param name there? And also add a matching environment variable? If we implement it twice, it might be worth adding to the flagd spec. |
Hey @toddbaert, this is interesting. So the JS uses So, should we try to be consistent across providers, and inconsistent with the given language idioms? Or, should the language take precedence? |
@cupofcat In most cases, I would prefer to stick with language idioms. However, one of the reasons we standardize these options is so they can be easily configured in "cloud-native" workloads via env-vars, regardless of language (the OpenFeature Operator does this, for example). Having a different env var per language would make this tricky for admins, and if we are going to be consistent with the env vars, we should also make sure the option name and env var match. So in the end, I would prefer we pick a single option and env var name for all implementations. Perhaps the one implemented in JS isn't ideal, so we could change it since we are still sub 1.0 and pick something ideal if we need. What is your opinion? |
@toddbaert I see your point. In this case I am OK with going with default authority. It looks like Python gRPC also uses default and it looks that this is, in fact, how the impl names this - https://github.com/grpc/grpc/blob/b73dbd94df4bd9f9362d16b76f34e4c7c2358409/include/grpc/impl/channel_arg_names.h#L151 So, I will go ahead and change this to Edit: Actually, perhaps the field should also be called Edit2: After more thinking, almost every option already is about gRPC so I think gRPC prefix is not needed. So |
…e env var Signed-off-by: Maks Osowski <[email protected]>
Thanks @cupofcat |
This PR