-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
Role Management - Deprecated Elasticsearch Index Privileges #46609
Comments
Pinging @elastic/kibana-security |
For inspiration (or maybe examples of what not to do!), I have a draft PR that illustrates what deprecated roles might look like in the UI. The screenshots don't translate to this scenario 1:1, but it should give you a good idea of what I was going for: |
@bizybot I heard through the grape-vine that you'd be working on deprecating the index-pattern privileges in Elasticsearch. Would you mind letting us know when you have an idea of how it'll be expressed via the API? |
Hi @kobelb :) yes we are working on deprecating the index pattern privileges in Elasticsearch.
I guess this would help UI to show the alternatives and whether the alternatives are exact replacement. |
I spoke to @kobelb earlier today and he suggested that the likely behaviour for the UI is to have a visual indicator for deprecated privileges (e.g. color) with a descriptive tooltip. |
@tvernum I preferred the representation instead of the description as that would be easier for migration programs (if automated outside ES). If we go by description then the migration program needs to parse the string to know alternatives and work with it, are we okay with that? Thank you. |
I'd prefer the alternative/suggestion approach as well for internationalization efforts. As far as I know, ES can only return messages in English, but the Kibana UI has to be translatable to a number of different languages. If we display a full description from ES to the end-user, it will always be in English, regardless of their chosen language. If, on the other hand, ES returns an alternative role name, we can craft the message within Kibana, which will be translated correctly. The only piece that won't be translated is the alternative role name itself, which is fine as far as our i18n efforts are concerned. |
@bizybot Just a couple of small thoughts:
|
Thank you @legrego for your comment.
I was suggesting either one of those, sorry I did not explain it in my response. I think the final outcome might be different when put through review.
When So far in Elasticsearch, we have avoided documentation links in the error messages, it becomes difficult to maintain the link and I agree. I think mentioning that you need to refer to the docs should be okay here as we are also giving them some alternative or suggestions and then redirecting them to the documentation for more details. WDYT? |
If I think my original question about not providing any actionable information was poorly worded too -- I understand we'll likely have an alternative, but we won't be able to explain the nuanced differences between the deprecated privilege and the replacement privilege, which is why I was asking for a link to docs. I don't need the link as part of the deprecation response you send -- we can maintain that link ourselves within Kibana.
I agree they can be hard to maintain -- that being said, Kibana has many links to our documentation site to help explain concepts in more detail, so I expect we'd do something similar here in the UI. ES doesn't have to worry about constructing this message though. We'll just need the link to the doc page once it's written so that we can reference it. |
No your understanding is perfectly clear. Yes the suggestions might not capture the users requirement. Now whether that is entirely achievable or not it depends. It might simply be assigning action level privileges explicitly to achieve what the user wants.
No worries, yes we would not be able to provide the differences between the replacement alternatives if it is not an exact replacement.
This is good if ES does not send the link as part of response.
I will share the documentation link once the changes are done. Thank you @legrego for your inputs. |
Closing this as "not planned" for now. The ES-Security team is not planning on moving forward with these deprecations, so there is no need for us to track or implement this work. We can re-open this issue if our circumstances change. |
With the forth-coming addition of the create_doc index privilege and the ability to restrict users to only be able to create documents, the @elastic/es-security is intending to deprecate certain index-privileges. We'd like these deprecations to be reflected in the role management screen, so users are aware of which index-privileges are truly deprecated.
The index-privileges are currently displayed in an EuiComboBox. @elastic/eui-design do you have a preference for how we denote a deprecated index-pattern item within the combo-box itself?
Blocked by elastic/elasticsearch#47333
The text was updated successfully, but these errors were encountered: