grafana/pkg/services/provisioning/alerting
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
..
testdata Expressions: Fixes the issue showing expressions editor (#62510) 2023-01-31 18:50:10 +01:00
config_reader_test.go Chore: Fix goimports grouping in pkg/services (#62420) 2023-01-30 08:21:27 +00:00
config_reader.go Chore: Fix goimports grouping in pkg/services (#62420) 2023-01-30 08:21:27 +00:00
contact_point_provisioner.go Alerting: Add contact point provisioning file export (#71692) 2023-07-20 14:35:56 -04:00
contact_point_types_test.go Chore: Fix goimports grouping in pkg/services (#62420) 2023-01-30 08:21:27 +00:00
contact_point_types.go Alerting: Update alerting module to 20230418161049-5f374e58cb32 + refactoring (#66622) 2023-04-25 13:39:46 -04:00
mute_times_provisioner.go Alerting: decouple api models from domain\dto models: separate Provenance status + converters (#63594) 2023-02-27 17:57:15 -05:00
mute_times_types.go Alerting: Add file provisioning for mute timings (#52936) 2022-08-01 14:19:33 -04:00
notification_policy_provisioner.go Alerting: Add file provisioning for notification policies (#52877) 2022-08-01 19:14:57 +02:00
notification_policy_types_test.go Tests: use t.Setenv to set env vars (#69516) 2023-06-05 11:31:03 +02:00
notification_policy_types.go Chore: use any rather than interface{} (#74066) 2023-08-30 18:46:47 +03:00
provisioner.go Alerting: Support for simplified notification settings in rule API (#81011) 2024-02-15 09:45:10 -05:00
rules_provisioner.go Alerting: Update provisioning API to support regular permissions (#77007) 2024-03-22 15:37:10 -04:00
rules_types_test.go Alerting: Support for simplified notification settings in rule API (#81011) 2024-02-15 09:45:10 -05:00
rules_types.go Alerting: Support for simplified notification settings in rule API (#81011) 2024-02-15 09:45:10 -05:00
text_templates_types.go Docs: Rename Message templates to Notification templates (#59477) 2023-01-18 17:26:34 +00:00
text_templates.go Alerting: decouple api models from domain\dto models: separate Provenance status + converters (#63594) 2023-02-27 17:57:15 -05:00
types.go Alerting: Remove dependency on alerting package in definitions (#65390) 2023-03-29 13:34:59 -04:00