grafana/pkg/services/provisioning
Matthew Jacobson 32f06c6d9c
Alerting: Receiver API complete core implementation (#91738)
* Replace global authz abstraction with one compatible with uid scope

* Replace GettableApiReceiver with models.Receiver in receiver_svc

* GrafanaIntegrationConfig -> models.Integration

* Implement Create/Update methods

* Add optimistic concurrency to receiver API

* Add scope to ReceiversRead & ReceiversReadSecrets

migrates existing permissions to include implicit global scope

* Add receiver create, update, delete actions

* Check if receiver is used by rules before delete

* On receiver name change update in routes and notification settings

* Improve errors

* Linting

* Include read permissions are requirements for create/update/delete

* Alias ngalert/models to ngmodels to differentiate from v0alpha1 model

* Ensure integration UIDs are valid, unique, and generated if empty

* Validate integration settings on create/update

* Leverage UidToName to GetReceiver instead of GetReceivers

* Remove some unnecessary uses of simplejson

* alerting.notifications.receiver -> alerting.notifications.receivers

* validator -> provenanceValidator

* Only validate the modified receiver

stops existing invalid receivers from preventing modification of a valid
receiver.

* Improve error in Integration.Encrypt

* Remove scope from alert.notifications.receivers:create

* Add todos for receiver renaming

* Use receiverAC precondition checks in k8s api

* Linting

* Optional optimistic concurrency for delete

* make update-workspace

* More specific auth checks in k8s authorize.go

* Add debug log when delete optimistic concurrency is skipped

* Improve error message on authorizer.DecisionDeny

* Keep error for non-forbidden errutil errors
2024-08-26 10:47:53 -04:00
..
alerting Alerting: Add Create and Update methods to Template service (#91981) 2024-08-20 15:23:01 -04:00
dashboards Alerting: Export and provisioning rules into subfolders (#77450) 2024-05-31 11:09:20 +03:00
datasources Correlations: Migrate config type to root (#91855) 2024-08-26 08:02:48 -05:00
plugins Chore: Bump Go to 1.23.0 (#92105) 2024-08-21 11:40:42 -04:00
utils Chore: Remove Result from dashboard models (#61997) 2023-01-25 10:36:26 +01:00
values Chore: use any rather than interface{} (#74066) 2023-08-30 18:46:47 +03:00
provisioning_mock.go Alerting: Remove legacy alerting (#83671) 2024-03-14 15:36:35 +01:00
provisioning_test.go Provisioning: Allow startup when there are dashboard provisioning failures (#92201) 2024-08-23 11:48:42 +02:00
provisioning.go Alerting: Receiver API complete core implementation (#91738) 2024-08-26 10:47:53 -04:00