-
Notifications
You must be signed in to change notification settings - Fork 52
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
Allow for defaulting to private attributes #192
Comments
Your rationale for wanting this makes sense. However, there are some issues regarding any kind of change to the user data model, making it tricky for us to do so on a per-SDK basis. In the server-side SDKs, the user model basically belongs to the SDK in the sense that the SDK is doing all the flag evaluation logic, and the SDK is also responsible for applying the private attribute logic. So in that sense, we could add this behavior in Ruby even if none of the other SDKs nor the LaunchDarkly services know what However, that's not the case for the client-side SDKs, which send the user properties to LaunchDarkly. If they tried to do that with a user that has |
In other words, if we did add this feature in Ruby, we would have to be very clear in stating that it will only work in Ruby code, and not if the same user properties are passed to any other kind of LaunchDarkly-enabled code. We might decide that that is OK, it's just not a kind of change we've ever done before, so I wanted to be clear on why that is. |
Another option would be to add the publicAttributeNames option to the SDK configuration, rather than to the per-user properties. I'm not sure if that would be adequate in your use case, or if you need to be able to set it differently for each user. |
Hey @eli-darkly, that makes a lot of sense. The I'm comfortable maintaining this with a custom solution for now as I understand the desire to make SDKs reasonably in sync. Is there any way to make this a feature request for the LD SDKs generally? |
@michaeldbianchi I think the best way to submit a general product-level feature request is just via the support form - you can include a link to this issue so you don't have to explain it all over again, and then they will add it to the issue tracker for feature requests. That also keeps track of who made the request, so that if it does get implemented in the future, we can bring it to your attention. |
This has been added as a feature request for launchdarkly sdks in general. I'll close this ruby-specific issue |
…date update ruby-eventsource version for parsing efficiency fix
Hey hey 👋
Is your feature request related to a problem? Please describe.
No. We would like to be able to assume user attributes are private unless explicitly marked public. This would reduce the likelihood of accidentally exposing customer data.
Describe the solution you'd like
Some mechanism to have all attributes defaulted to private attributes with the ability to mark something as public.
Specifically, we could still use the
all_attributes_private
configuration setting, but add in additional logic in LaunchDarkly::UserFilter#private_attr? to allow for an attribute to be explicitly marked as public.Example Usage:
Describe alternatives you've considered
Unsure. The existing model either relies too much on any given developer's perfection or doesn't allow for any metrics in LD at all.
Additional context
N/A - But I'd be willing to help with a PR to push this through. For now, we are creating a custom class inheriting from LDClient and injecting this behavior in a sub-optimal way.
The text was updated successfully, but these errors were encountered: