grafana/pkg/services
Ieva ef4c2672b3
Access control: SQL filtering for annotation listing (#47467)
* pass in user to attribute scope resolver

* add SQL filter to annotation listing

* check annotation FGAC permissions before exposing them for commenting

* remove the requirement to be able to list all annotations from annotation listing endpoint

* adding tests for annotation listing

* remove changes that got moved to a different PR

* unused var

* Update pkg/services/sqlstore/annotation.go

Co-authored-by: Ezequiel Victorero <evictorero@gmail.com>

* remove unneeded check

* remove unneeded check

* undo accidental change

* undo accidental change

* doc update

* move tests

* redo the approach for passing the user in for scope resolution

* accidental change

* cleanup

* error handling

Co-authored-by: Ezequiel Victorero <evictorero@gmail.com>
2022-04-11 13:18:38 +01:00
..
accesscontrol Access control: SQL filtering for annotation listing (#47467) 2022-04-11 13:18:38 +01:00
alerting Chore: Remove bus (#47511) 2022-04-08 16:15:06 +02:00
annotations Access control: SQL filtering for annotation listing (#47467) 2022-04-11 13:18:38 +01:00
auth Chore: Remove context.TODO() (#43409) 2021-12-22 11:02:42 +01:00
cleanup Chore: Remove bus.Dispatch from cleanup service (#45401) 2022-02-15 14:56:19 +01:00
comments Access control: SQL filtering for annotation listing (#47467) 2022-04-11 13:18:38 +01:00
contexthandler Chore: Remove bus from contexthandler (#47458) 2022-04-08 10:33:19 +02:00
dashboardimport Plugins: Refactor GetPluginDashboards/LoadPluginDashboard (#46316) 2022-03-10 18:38:04 +01:00
dashboards Chore: Remove bus (#47511) 2022-04-08 16:15:06 +02:00
dashboardsnapshots Chore: Remove bus (#47511) 2022-04-08 16:15:06 +02:00
datasourceproxy Datasource: Fixes storing of secureJSONData when creating/updating datasource (#45290) 2022-02-11 15:52:14 +01:00
datasources Chore: Remove bus (#47511) 2022-04-08 16:15:06 +02:00
encryption Replace encryption.Service usages by secrets.Service (#41625) 2021-11-12 12:16:39 +01:00
featuremgmt UsageStats: track enabled features (#47407) 2022-04-08 12:42:33 +02:00
guardian Access control: use uid for dashboard and folder scopes (#46807) 2022-03-30 15:14:26 +02:00
hooks Migrate to Wire for dependency injection (#32289) 2021-08-25 15:11:22 +02:00
kmsproviders Encryption: Refine secrets-related commands (#45201) 2022-02-23 16:04:53 +01:00
ldap LDAP: Use an interface instead of a bus to get group teams (#42165) 2022-02-01 12:03:21 +01:00
libraryelements Chore: Remove bus from alerting rule (#47508) 2022-04-08 14:30:25 +02:00
librarypanels Chore: Remove bus from alerting rule (#47508) 2022-04-08 14:30:25 +02:00
licensing Access control: Move licensing actions to licensing package (#46588) 2022-03-16 14:37:19 +01:00
live Chore: Remove bus from live package (#46803) 2022-03-21 20:34:19 +01:00
login SAML: Allow disabling of SAML signups (#47481) 2022-04-08 18:47:07 -04:00
multildap remove bus from login (#44995) 2022-02-09 17:17:09 +01:00
ngalert 47470: Add additional delay to silences in test. (#47482) 2022-04-08 14:52:08 +08:00
notifications Chore: Remove bus (#47511) 2022-04-08 16:15:06 +02:00
oauthtoken Chore: Remove bus from oauthtoken (#46811) 2022-03-21 21:13:57 +01:00
plugindashboards Chore: Remove bus (#47511) 2022-04-08 16:15:06 +02:00
pluginsettings Plugins: Add plugin settings DTO (#46283) 2022-03-18 20:49:13 +01:00
provisioning Chore: Remove bus from dashboards provisioning (#47495) 2022-04-08 13:56:38 +02:00
query Propagate all headers (#43812) 2022-01-07 12:45:26 -07:00
queryhistory Query history: Search in comments (#46761) 2022-04-08 09:35:34 +02:00
quota Update quota service to accept context (#45186) 2022-02-10 22:17:50 +01:00
rendering Rendering: periodically refresh remote plugin version (#45505) 2022-02-18 20:25:01 +04:00
schemaloader FeatureFlags: define features outside settings.Cfg (take 3) (#44443) 2022-01-26 09:44:20 -08:00
search Chore: Remove bus (#47511) 2022-04-08 16:15:06 +02:00
searchusers Bus: Tests cleanup (#46025) 2022-03-02 11:05:31 +01:00
searchV2 Removing plugin list panel (#46914) 2022-04-07 09:54:27 +02:00
secrets Encryption: Make DEKs cache TTL & cleanup interval configurable (#46042) 2022-03-16 20:05:13 +01:00
serviceaccounts Access Control: Support other attributes than id for resource permissions (#46727) 2022-03-21 17:58:18 +01:00
shorturls Migrate to Wire for dependency injection (#32289) 2021-08-25 15:11:22 +02:00
sqlstore Access control: SQL filtering for annotation listing (#47467) 2022-04-11 13:18:38 +01:00
store Storage: add basic storage service (#46604) 2022-03-17 10:19:23 -07:00
teamguardian ValidatedQueries: start of validated queries API (#44731) 2022-03-07 09:33:01 -09:00
thumbs Previews: fix crawler in multi-org deployments (#46967) 2022-03-29 13:40:11 +01:00
updatechecker Analytics: Enable grafana and plugin update checks to be operated independently (#46352) 2022-04-06 10:50:21 +02:00
validations Migrate to Wire for dependency injection (#32289) 2021-08-25 15:11:22 +02:00