Yue Dong created ATLAS-3916:
-------------------------------
Summary: Get metrics according to the user permissions
Key: ATLAS-3916
URL: https://issues.apache.org/jira/browse/ATLAS-3916
Project: Atlas
Issue Type: New Feature
Components: atlas-core
Affects Versions: 2.1.0, 2.0.0
Reporter: Yue Dong
Attachments: Captura-de-pantalla-de-2020-08-11-10-20-06.png
I have two user groups: admin who has access to all tables and reader can only
see public data and module A tables. So I have configured Atlas to use a simple
authorizer with a little variation, which is to hide entities that are not
accessible to the user.
The searches and displaying results work properly.
The only problem I find is that the metrics. In the elements of search by type,
it indicates the number of all the entities of each type in the system. And
this is not consistent with the search result of a reader user.
!Captura-de-pantalla-de-2020-08-11-10-20-06.png!
I have verified that these numbers come from the getMetrics method, which is
not secured so it does not obtain the numbers according to the users'
configuration. Am I missing something? Is there any way to change these numbers?
Maybe it'd be nice to have something that allows to modify the querys of the
metrics based on security and authorization, like
AtlasAuthorizer.scrubSearchResults in search methods.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)