grafana/pkg/services
Karl Persson 2fd7031102
Access Control: Add fine-grained access control to explore (#35883)
* add fixed role for datasource read operations

* Add action for datasource explore

* add authorize middleware to explore index route

* add fgac support for explore navlink

* update hasAccessToExplore to check if accesscontrol is enable and evalute action if it is

* add getExploreRoles to evalute roles based onaccesscontrol, viewersCanEdit and default

* create function to evaluate permissions or using fallback if accesscontrol is disabled

* change hasAccess to prop and derive the value in mapStateToProps

* add test case to ensure buttons is not rendered when user does not have access

* Only hide return with changes button

* remove internal links if user does not have access to explorer

Co-authored-by: Ivana Huckova <30407135+ivanahuckova@users.noreply.github.com>
2021-07-02 14:43:12 +02:00
..
accesscontrol Access Control: Add fine-grained access control to explore (#35883) 2021-07-02 14:43:12 +02:00
alerting Chore: Improve save dashboard error messages (#35780) 2021-06-16 14:56:55 +02:00
annotations Chore: Replace util.DynMap with structs (#36332) 2021-07-01 10:23:33 +02:00
auth Instrumentation: Start tracing database requests (#34572) 2021-05-27 13:55:33 +02:00
cleanup Chore: Refactor short url api test (#35051) 2021-06-01 20:34:59 +02:00
contexthandler Instrumentation: add more tracing in the auth context handler. (#34939) 2021-05-31 21:39:28 +02:00
dashboards Dashboards: Add IsFolder field into models.GetDashboardQuery (#36214) 2021-07-01 11:40:38 +03:00
datasourceproxy Datasource: Shared HTTP client provider for core backend data sources and any data source using the data source proxy (#33439) 2021-05-19 23:53:41 +02:00
datasources API: Add by UID routes for data sources (#29884) 2021-01-13 13:16:27 -05:00
guardian Permissions: Fix inherited folder permissions can prevent new permissions being added to a dashboard (#33329) 2021-04-28 14:42:18 +02:00
hooks API: replace SendLoginLogCommand with LoginHook (#28777) 2020-11-06 10:01:13 +01:00
ldap IPv6: Support host address configured with enclosing square brackets (#31226) 2021-02-15 17:55:41 +01:00
libraryelements Chore: Replace util.DynMap with structs (#36332) 2021-07-01 10:23:33 +02:00
librarypanels LibraryPanels: Fixes error when importing plugin dashboard (#34557) 2021-05-24 09:31:34 +02:00
licensing CDN: Adds support for serving assets over a CDN (#30691) 2021-02-01 10:13:09 +01:00
live live: add allowed_origins option (#36318) 2021-07-01 09:30:09 +03:00
login Login: Replace command dispatch by explicit call (#32088) 2021-03-18 17:16:56 +01:00
multildap Chore: Enable errorlint linter (#29227) 2020-11-19 14:47:17 +01:00
ngalert Alerting: Add additional newlines to Microsoft Teams notification message where necessary (#36126) 2021-06-24 20:52:00 +05:30
notifications dont consider invalid email address a failed email (#33671) 2021-05-04 12:07:50 +02:00
oauthtoken Chore: Configure go-ruleguard via golangci-lint (#28419) 2020-12-11 11:45:17 +01:00
provisioning Slack: Use chat.postMessage API by default (#32511) 2021-04-22 16:00:21 +02:00
quota Quota: Do not count folders towards dashboard quota (#32519) 2021-05-12 23:44:46 +02:00
rendering Renderer: add version information (#34964) 2021-06-04 14:33:49 +03:00
schemaloader [Dashboard] Revert feature toggle trimdefaults (#34888) 2021-05-28 22:29:30 +02:00
search bus: add ctx for all signed in user queries (#33970) 2021-05-18 18:24:42 +02:00
shorturls Chore: Refactor short url api test (#35051) 2021-06-01 20:34:59 +02:00
sqlstore Chore: Replace util.DynMap with structs (#36332) 2021-07-01 10:23:33 +02:00
teamguardian chore: avoid aliasing imports in services (#22499) 2020-02-29 13:35:15 +01:00
validations Plugins: Requests validator (#30445) 2021-02-03 20:47:45 +01:00