grafana/pkg/services/ngalert/tests/fakes
Yuri Tseretyan b9abb8cabb
Alerting: Update provisioning API to support regular permissions (#77007)
* allow users with regular actions access provisioning API paths
* update methods that read rules
skip new authorization logic if user CanReadAllRules to avoid performance impact on file-provisioning
update all methods to accept identity.Requester that contains all permissions and is required by access control.

* create deltas for single rul e 

* update modify methods
skip new authorization logic if user CanWriteAllRules to avoid performance impact on file-provisioning
update all methods to accept identity.Requester that contains all permissions and is required by access control.

* implement RuleAccessControlService in provisioning

* update file provisioning user to have all permissions to bypass authz

* update provisioning API to return errutil errors correctly

---------

Co-authored-by: Alexander Weaver <weaver.alex.d@gmail.com>
2024-03-22 15:37:10 -04:00
..
config.go Alerting: Introduce initial common receiver service (#81211) 2024-02-01 14:42:59 -05:00
kvstore.go Alerting: Add GetFullState method to FileStore (#78701) 2023-11-28 15:34:45 +01:00
provisioning.go Alerting: Refactor provisioning tests/fakes (#81205) 2024-01-24 17:15:55 -05:00
receivers.go Alerting: Receivers API (read only endpoints) (#81751) 2024-02-05 20:12:15 +02:00
rules.go Alerting: Update provisioning API to support regular permissions (#77007) 2024-03-22 15:37:10 -04:00