[FEATURE] Default labeling rule for security based tenancy labeling #4402
Open
Labels
enhancement
New feature or request
triaged
Issues labeled as 'Triaged' have been reviewed and are deemed actionable.
Is your feature request related to a problem?
As part of the effort to introduce multi-tenancy as a construct in OpenSearch (opensearch-project/OpenSearch#13341), we are introducing a labeling service to attach tenancy labels to search requests. Plugins can define their rules to compute labels based on the given request and thread context. We need to add a "default" labeling rule in security plugin to get the tenancy information if the cluster is using security plugin as their auth method as part of opensearch-project/OpenSearch#13374
What solution would you like?
Add a default labeling rule so that we can attach user info in a request.
What alternatives have you considered?
We can also maintain all rules in the core repo, but it would be better to let plugins implement their own rules, which would get registered with the RuleBasedLabelingService in core.
Do you have any additional context?
Please see
opensearch-project/OpenSearch#13341
opensearch-project/OpenSearch#13374
The text was updated successfully, but these errors were encountered: