grafana/pkg/services
Gabriel MABILLE 0ee0a0b7a0
AccessControl: FGAC permissions for orgs endpoint on frontend (#41050)
* AccessControl: FGAC permissions for orgs endpoint on frontend

Protect org update endpoints

add or refactor missing right messages

cover org page

* removing scopes from orgs

* Perform permission control with global org

* Perform the error handling in case of 403

* Simplify frontend code by requiring read access for sure

* Remove roles I added to decrease the number of changes

* Remove the check for server admin to reduce the number of changes

* change error message

* Cleaning todos

* Remove unecessary changes

* Fix tests

* Update test snapshot

* Update pkg/api/roles.go

Co-authored-by: Ursula Kallio <73951760+osg-grafana@users.noreply.github.com>

* Update public/app/features/admin/AdminEditOrgPage.tsx

Co-authored-by: Ursula Kallio <73951760+osg-grafana@users.noreply.github.com>

* Format AdminEditOrgPage for linting

* Update public/app/features/admin/AdminEditOrgPage.tsx

Co-authored-by: Vardan Torosyan <vardants@gmail.com>

* Update public/app/features/admin/AdminEditOrgPage.tsx

Co-authored-by: Alexander Zobnin <alexanderzobnin@gmail.com>

* Update public/app/features/admin/AdminListOrgsPage.tsx

Co-authored-by: Alexander Zobnin <alexanderzobnin@gmail.com>

* Commit suggestions

* Commit suggestion canRead canWrite

* fix typo

Co-authored-by: Ursula Kallio <73951760+osg-grafana@users.noreply.github.com>
Co-authored-by: Vardan Torosyan <vardants@gmail.com>
Co-authored-by: Alexander Zobnin <alexanderzobnin@gmail.com>
2021-11-18 14:10:38 +01:00
..
accesscontrol AccessControl: FGAC permissions for orgs endpoint on frontend (#41050) 2021-11-18 14:10:38 +01:00
alerting Rendering: Add light theme for errors (#41616) 2021-11-17 12:18:47 +01:00
annotations Chore: Replace util.DynMap with structs (#36332) 2021-07-01 10:23:33 +02:00
auth JWT: Increase distance from now in tests (#41794) 2021-11-17 12:03:56 +01:00
cleanup Chore: Add context dashboard version (#41672) 2021-11-17 10:57:37 +01:00
contexthandler Access control: allow using targetOrgId parameter to set organization ID for a request (#41761) 2021-11-17 16:11:56 +01:00
dashboards Add context for GetAlertNotificationUidQuery (#41633) 2021-11-12 14:35:38 +01:00
dashboardsnapshots Encryption: Use secrets service (#40251) 2021-11-04 18:47:21 +02:00
datasourceproxy Plugins: Plugin Store API returns DTO model (#41340) 2021-11-17 12:04:22 +01:00
datasources Encryption: Use secrets service (#40251) 2021-11-04 18:47:21 +02:00
encryption Replace encryption.Service usages by secrets.Service (#41625) 2021-11-12 12:16:39 +01:00
guardian Chore: Refactor GoConvey in the guardian package (#40898) 2021-10-27 07:45:20 -05:00
hooks Migrate to Wire for dependency injection (#32289) 2021-08-25 15:11:22 +02:00
kmsproviders Encryption: Refactor secrets service (#41771) 2021-11-17 11:52:45 +02:00
ldap LDAP: Search all DNs for users (#38891) 2021-09-14 10:49:37 +02:00
libraryelements API: return resource ID when deleting datasource with UID and library element (#41342) 2021-11-05 15:06:14 +01:00
librarypanels Chore: Add alert ctx (#41161) 2021-11-03 14:10:39 +01:00
licensing AccessControl: frontend changes for adding FGAC to licensing (#39484) 2021-10-05 14:54:26 +01:00
live Plugins: Plugin Store API returns DTO model (#41340) 2021-11-17 12:04:22 +01:00
login Encryption: Improve the DX of encryption operations within database transactions (#41654) 2021-11-16 11:51:13 +01:00
multildap Chore: Replace goconvey in multildap package (#40681) 2021-10-20 15:07:37 +02:00
ngalert Alerting: README.md for ngalert 2021-11-18 10:26:42 +00:00
notifications Chore: add context to login (#41316) 2021-11-08 15:53:51 +01:00
oauthtoken Chore: add context to login (#41316) 2021-11-08 15:53:51 +01:00
pluginsettings Encryption: Use secrets service (#40251) 2021-11-04 18:47:21 +02:00
provisioning Provisioning: set stable datasource UID with provisioning (#41769) 2021-11-18 01:18:08 +01:00
quota Alerting: Remove ngalert feature toggle and introduce two new settings for enabling Grafana 8 alerts and disabling them for specific organisations (#38746) 2021-09-29 16:16:40 +02:00
rendering Rendering: Add light theme for errors (#41616) 2021-11-17 12:18:47 +01:00
schemaloader Fix the disjuction of panels (#39412) 2021-10-06 11:39:23 +02:00
search Chore: Propagate context for search (#41010) 2021-10-28 11:29:07 +02:00
searchusers remove the global log error/warn etc functions (#41404) 2021-11-08 17:56:56 +01:00
secrets Grafana CLI Wire Runner (#41012) 2021-11-17 20:43:09 +01:00
serviceaccounts Access control: add roles to fixed groups (#41673) 2021-11-18 09:16:18 +00:00
shorturls Migrate to Wire for dependency injection (#32289) 2021-08-25 15:11:22 +02:00
sqlstore Chore: Add context apikey (#41698) 2021-11-18 09:50:03 +01:00
teamguardian Chore: Refactor GoConvey in teamguardian package (#40896) 2021-10-26 17:59:37 +02:00
updatechecker Plugins: Refactor Plugin Management (#40477) 2021-11-01 10:53:33 +01:00
validations Migrate to Wire for dependency injection (#32289) 2021-08-25 15:11:22 +02:00