grafana/pkg/services/ngalert/provisioning
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
..
accesscontrol_test.go Alerting: Update provisioning API to support regular permissions (#77007) 2024-03-22 15:37:10 -04:00
accesscontrol.go Alerting: Update provisioning API to support regular permissions (#77007) 2024-03-22 15:37:10 -04:00
alert_rules_test.go Alerting: Update provisioning API to support regular permissions (#77007) 2024-03-22 15:37:10 -04:00
alert_rules.go Alerting: Update provisioning API to support regular permissions (#77007) 2024-03-22 15:37:10 -04:00
compat.go Alerting: Introduce initial common receiver service (#81211) 2024-02-01 14:42:59 -05:00
config_test.go Alerting: Update provisioning services that handle Alertmanager configuraiton to access config via storage (#79814) 2024-01-05 16:15:18 -05:00
config.go Alerting: Mute timing service tests (#79817) 2024-01-06 00:26:15 +02:00
contactpoints_test.go Alerting: Fix panic in provisioning filter contacts by unknown name (#83070) 2024-02-19 17:30:13 +02:00
contactpoints.go Alerting: Fix panic in provisioning filter contacts by unknown name (#83070) 2024-02-19 17:30:13 +02:00
errors.go Alerting: MuteTiming service return errutil + GetTiming by name (#79772) 2024-01-12 21:23:44 +02:00
mute_timings_test.go Alerting: Fix MuteTiming Get API to return provenance status (#80494) 2024-01-13 00:16:54 +02:00
mute_timings.go Alerting: Fix MuteTiming Get API to return provenance status (#80494) 2024-01-13 00:16:54 +02:00
notification_policies_test.go Alerting: Refactor provisioning tests/fakes (#81205) 2024-01-24 17:15:55 -05:00
notification_policies.go Alerting: Update provisioning services that handle Alertmanager configuraiton to access config via storage (#79814) 2024-01-05 16:15:18 -05:00
persist_mock.go Chore: Simplify function signature for GetLatestAlertmanagerConfiguration (#79392) 2023-12-12 13:49:54 +01:00
persist.go Chore: Simplify function signature for GetLatestAlertmanagerConfiguration (#79392) 2023-12-12 13:49:54 +01:00
provenance.go Alerting: Allow provenance disable in alerting provisioning API (#63650) 2023-04-18 15:10:36 +02:00
provisioning_store_mock.go Chore: Simplify function signature for GetLatestAlertmanagerConfiguration (#79392) 2023-12-12 13:49:54 +01:00
provisioning_test.go Chore: Update test database initialization (#81673) 2024-02-09 09:35:39 -05:00
quota_checker_mock.go Chore: Simplify function signature for GetLatestAlertmanagerConfiguration (#79392) 2023-12-12 13:49:54 +01:00
templates_test.go Alerting: Return provenance of notification templates (#82274) 2024-02-15 14:35:54 -05:00
templates.go Alerting: Stop persisting user-defined templates to disk (#83456) 2024-03-04 20:12:49 +02:00
testing.go Alerting: Update provisioning API to support regular permissions (#77007) 2024-03-22 15:37:10 -04:00