grafana/pkg/services/ngalert/api
Yuriy Tseretyan ad25e2a20c
Alerting: Update RBAC for alert rules to consider access to rule as access to group it belongs (#49033)
* update authz to exclude entire group if user does not have access to rule
* change rule update authz to not return changes because if user does not have access to any rule in group, they do not have access to the rule
* a new query that returns alerts in group by UID of alert that belongs to that group
* collect all affected groups during calculate changes
* update authorize to check access to groups
* update tests for calculateChanges to assert new fields
* add authorization tests
2022-06-01 10:23:54 -04:00
..
test-data Alerting: Modify endpoint for testing a datasource rule using the UID (#48070) 2022-05-17 14:10:20 +03:00
tooling Alerting: Endpoints for provisioning mute timings (#49635) 2022-05-26 14:24:34 -05:00
api_admin.go Alerting: send alerts to external, internal, or both alertmanagers (#40341) 2022-02-01 20:36:55 -03:00
api_alertmanager_test.go Indicate whether templates are provisioned (#49025) 2022-05-18 13:52:30 -05:00
api_alertmanager.go Unified Alerting: Validate PostableSilence API. (#46892) 2022-04-27 15:55:47 +08:00
api_prometheus_test_fixtures.go Alerting: Display query from grafana-managed alert rules on /api/v1/rules (#45969) 2022-03-14 10:39:20 +00:00
api_prometheus_test.go Alerting: Fix anonymous access to alerting (#49203) 2022-05-19 09:22:26 -04:00
api_prometheus.go Alerting: Update RBAC for alert rules to consider access to rule as access to group it belongs (#49033) 2022-06-01 10:23:54 -04:00
api_provisioning_test.go POST routes to PUT routes (#48828) 2022-05-06 14:33:30 -05:00
api_provisioning.go Alerting: Endpoints for provisioning mute timings (#49635) 2022-05-26 14:24:34 -05:00
api_ruler_test.go Alerting: Update RBAC for alert rules to consider access to rule as access to group it belongs (#49033) 2022-06-01 10:23:54 -04:00
api_ruler_validation_test.go Alerting: validate rules and calculate changes in API controller (#45072) 2022-02-23 11:30:04 -05:00
api_ruler_validation.go Alerting: validate rules and calculate changes in API controller (#45072) 2022-02-23 11:30:04 -05:00
api_ruler.go Alerting: Update RBAC for alert rules to consider access to rule as access to group it belongs (#49033) 2022-06-01 10:23:54 -04:00
api_testing_test.go Secrets: Implement basic unified secret store service (#45804) 2022-04-25 13:57:45 -03:00
api_testing.go Alerting: Modify endpoint for testing a datasource rule using the UID (#48070) 2022-05-17 14:10:20 +03:00
api.go Alerting: Provisioning GET routes for mute timings (#49044) 2022-05-17 13:42:48 -05:00
authorization_test.go Alerting: Update RBAC for alert rules to consider access to rule as access to group it belongs (#49033) 2022-06-01 10:23:54 -04:00
authorization.go Alerting: Update RBAC for alert rules to consider access to rule as access to group it belongs (#49033) 2022-06-01 10:23:54 -04:00
fork_ruler.go Alerting: modify ruler endpoints for proxying using the datasource UID (#48046) 2022-05-05 14:58:32 +03:00
forked_admin.go Alerting: Split grafana and lotex routes (#44742) 2022-02-04 12:42:04 -05:00
forked_am.go Alerting: modify alertmanager endpoints for proxying using the datasource UID (#47978) 2022-04-29 10:25:22 +03:00
forked_prom.go Alerting: modify prometheus endpoints for proxying using the datasource UID (#48052) 2022-05-06 15:05:02 -04:00
forked_provisioning.go Alerting: Endpoints for provisioning mute timings (#49635) 2022-05-26 14:24:34 -05:00
forked_testing.go Alerting: Split grafana and lotex routes (#44742) 2022-02-04 12:42:04 -05:00
generated_base_api_alertmanager.go Alerting: modify alertmanager endpoints for proxying using the datasource UID (#47978) 2022-04-29 10:25:22 +03:00
generated_base_api_configuration.go Alerting: update authorization logic to use proper legacy roles when fine-grained access is disabled (#46931) 2022-03-24 17:13:47 -04:00
generated_base_api_prometheus.go Alerting: modify prometheus endpoints for proxying using the datasource UID (#48052) 2022-05-06 15:05:02 -04:00
generated_base_api_provisioning.go Alerting: Endpoints for provisioning mute timings (#49635) 2022-05-26 14:24:34 -05:00
generated_base_api_ruler.go Alerting: modify ruler endpoints for proxying using the datasource UID (#48046) 2022-05-05 14:58:32 +03:00
generated_base_api_testing.go Alerting: Modify endpoint for testing a datasource rule using the UID (#48070) 2022-05-17 14:10:20 +03:00
lotex_am.go Alerting: modify alertmanager endpoints for proxying using the datasource UID (#47978) 2022-04-29 10:25:22 +03:00
lotex_prom.go Alerting: modify prometheus endpoints for proxying using the datasource UID (#48052) 2022-05-06 15:05:02 -04:00
lotex_ruler_test.go Alerting: modify ruler endpoints for proxying using the datasource UID (#48046) 2022-05-05 14:58:32 +03:00
lotex_ruler.go Alerting: modify ruler endpoints for proxying using the datasource UID (#48046) 2022-05-05 14:58:32 +03:00
promql_compat_test.go Alerting/testing promql extraction (#34665) 2021-05-25 11:54:50 -04:00
promql_compat.go Alerting: check upstream response content type in lotex proxy (#34760) 2021-05-27 14:12:29 +03:00
testing.go Alerting: Remove mis-behaving fake and fix masked test failure in AM config API (#47747) 2022-04-13 19:31:57 -05:00
util_test.go Alerting: Rename Recipient path parameter to DatasourceID (#47949) 2022-04-20 16:20:17 +03:00
util.go Alerting: modify prometheus endpoints for proxying using the datasource UID (#48052) 2022-05-06 15:05:02 -04:00